@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'DM Sans';
    font-weight: 400;
}

/* Contenedor principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-section, .benefits, .service-section, .faq-container, .courses-container {
    margin-bottom: 160px; /* Espacio uniforme entre secciones */
    margin-top: 160px;
}

/* Estilos del header */
.header {
    background-color: #f5f7fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    padding: 5px 10%;
    position: relative;
}

/* Logo */
.header .logo {
    cursor: pointer;
}

.header .logo img {
    margin-top: 10px;
    height: 70px;
    width: auto;
    transition: all 0.3s;
}

.header .logo img:hover {
    transform: scale(1.2);
}

/* Menú de navegación */
.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style:none;
    display: flex;
}

.nav-links li {
    padding: 0 20px;
}

.nav-links li a {
    
    color: #036eb6;
    text-decoration: none;
}

.nav-links li a:hover {
    color: #d97a7a;
}

/* Botones */
.menu-buttons {
    display: flex;
}

.menu-buttons .btn {
    margin-left: 20px;
}

.menu-buttons button {
    
    color: #e8f0f8;
    padding: 9px 25px;
    background: #d97a7a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

.menu-buttons button:hover {
    background-color: #e2f1f8;
    color: #d97a7a;
    transform: scale(1.1);
}

/* MENÚ HAMBURGUESA */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background: #036eb6;
    width: 30px;
    height: 4px;
    margin: 5px;
    border-radius: 5px;
    transition: 0.3s;
}

/* RESPONSIVE: Ocultar el menú y mostrar la hamburguesa */
@media screen and (max-width: 900px) {
    .nav {
        display: none;
        position: absolute;
        top: 85px;
        right: 0;
        background: #f6faf6;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
        padding: 0;
    }

    .nav-links li {
        padding: 10px 0;
    }

    /* Botones dentro del menú hamburguesa */
    .menu-buttons {
        flex-direction: column;
        margin-top: 15px;
    }

    .menu-buttons .btn {
        margin: 10px 0;
    }

    /* Mostrar menú hamburguesa */
    .hamburger {
        display: flex;
    }

    /* Mostrar el menú cuando está activo */
    .nav.active {
        display: flex;
    }
}

.hero-section {
    height: 600px;
    padding: 20px;
    /* margin-left: 40px;
    margin-right: 40px; */
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 40px;

    background-image: url('../img/wave_pink.svg');
    /* Ruta a tu imagen SVG */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;

}

.hero-section img {
    width: 350PX;
    height: 600px;
}


.hero-section h1 {
    font-size: 3.3rem;
    margin-bottom: 8px;
    color: #021526;
}

.hero-content {
    margin-left: 40px; /* Puedes ajustar este valor */
}

.hero-content-span {
    color: #cd7681;
}


.hero-section p {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #021526;
}



.hero-section button {
    padding: 1em 2.1em;
    border-radius: 50px;
    margin: 8px;
    border: none;
    background-color: #378ca4;
    color: #fff;
    font-weight: 800;
    font-size: 0.85em;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-section button:hover {
    background-color: #e2f1f8;
    color: #d97a7a;
    transform: scale(1.05); /* Efecto de crecimiento leve */
}


/* Responsive */
@media (max-width: 885px) {
    .hero-section {
        margin-top: 10px;
        flex-direction: column;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
        text-align: center;
        width: 100%;
    }

    .hero-section p {
        text-align: center;
        width: 100%;
    }

    
    .hero-section img {
        width: 250PX;
        height: 400px;
    }
}


/* Sección Beneficios */
.benefits {
    padding: 50px 20px;
    text-align: center;
    margin-top: 75px;
}

.benefits-h2{
padding: 30px;
margin-bottom: 30px;
font-weight: 500;
font-size: 3em;

}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.benefit {
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 100%;
    max-width: 250px;
    margin-bottom: 40px;
}

.benefit-icon{
width: 2.5em;
height: 2.5em;
margin-bottom: 10px;
}

.benefit h3{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}
.benefit p{
    font-size: 16px;
    font-weight: 200;
}

.destacado {
    background-color: #f8d7da;
}

.benefit:hover {
    background-color: #f8d7da; /* Rosa suave */
    transition: background-color 0.3s ease;
}

@media screen and (max-width: 1024px) {
    .benefits-h2 {
        font-size: 2.5em;
        padding: 20px;
    }

    .benefit {
        max-width: 300px;
    }

    .benefit h3 {
        font-size: 18px;
    }

    .benefit p {
        font-size: 15px;
    }
}

/* Ajustes para pantallas pequeñas (móviles) */
@media screen and (max-width: 768px) {
    .benefits-container {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Menor espacio entre tarjetas */
    }

    .benefits-h2 {
        margin-top: 60px;
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .benefit {
        max-width: 90%;
        padding: 15px;
    }

    .benefit-icon {
        width: 2em;
        height: 2em;
    }

    .benefit h3 {
        font-size: 18px;
    }

    .benefit p {
        font-size: 14px;
    }
}

/* Ajustes para pantallas muy pequeñas (móviles verticales) */
@media screen and (max-width: 480px) {
    .benefits-h2 {
        margin-top: 60px;
        font-size: 1.8em;
        padding: 15px;
    }

    .benefit {
        max-width: 95%;
        padding: 10px;
    }

    .benefit-icon {
        width: 1.8em;
        height: 1.8em;
    }

    .benefit h3 {
        font-size: 16px;
    }

    .benefit p {
        font-size: 13px;
    }
}


/* Contenedor para centrar el botón */
.btn-container {

    text-align: center;
    margin-top: 30px; /* Espacio superior para separar del contenido */
}

/* Estilos del botón */
.btn-mas-info {
    padding: 1em 2.1em;
    border-radius: 50px;
    margin: 8px;
    border: none;
    background-color: #378ca4;
    color: #fff;
    font-weight: 800;
    font-size: 0.85em;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block; /* Mantiene el centrado */
    
}


.btn-mas-info:hover {
    background-color: #e2f1f8;
    color: #d97a7a;
    transform: scale(1.05); /* Efecto de crecimiento leve */
}

/* Sección Testimonios */
.courses-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Tarjeta principal */
.course {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    max-width: 100%;
    margin: 20px;
    overflow: hidden;
    width: 700px;
    transition: transform 0.3s ease;
}

.course:hover {
    transform: scale(1.05); /* Efecto hover */
}

/* Contenido de la tarjeta */
.course-preview {
    background-color: #cd7681;
    color: #fff;
    padding: 30px;
    max-width: 250px;
    flex-shrink: 0;
}

.course-info {
    padding: 30px;
    position: relative;
    width: 100%;
}

.course h2 {
    letter-spacing: 1px;
    margin: 10px 0;
    font-size: 24px;
}

.course-info h5 {
    letter-spacing: 1px;
    font-size: 18px;
    margin-bottom: 5px;
}

.course-info h6 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.course-info p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Nuevo contenedor para ícono y nombre juntos */
.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.course-icon {
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.course-icon img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.profile h5 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* === Nuevo contenedor para las opiniones === */
.testimonials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px; /* Espacio entre el párrafo y el bloque de opiniones */
}

.avatars {
    display: flex;
    gap: 5px;
}

.avatars img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #f0f0f0; /* Borde blanco para mejor visibilidad */
}

.testimonial-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* === Responsive Design === */
@media screen and (max-width: 768px) {
    .course {
        flex-direction: column; /* Coloca las secciones una debajo de otra */
        width: 90%; /* Ajusta el ancho para móviles */
        text-align: center;
    }

    .course-preview {
        max-width: 100%;
        padding: 20px;
    }

    .course-info {
        padding: 20px;
    }

    .course h2 {
        font-size: 20px;
    }

    .course-info h5 {
        font-size: 16px;
    }

    .course-info h6 {
        font-size: 12px;
    }

    .course-info p {
        font-size: 14px;
    }

    .testimonials {
        flex-direction: column; /* En móviles, apila los avatares y el texto */
        align-items: center;
        margin-top: 15px;
    }

    .avatars {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .course {
        width: 100%; /* Ocupa todo el ancho en móviles pequeños */
    }

    .course h2 {
        font-size: 18px;
    }

    .course-info h5 {
        font-size: 14px;
    }

    .course-info h6 {
        font-size: 12px;
    }

    .course-info p {
        font-size: 12px;
    }

    .testimonials {
        margin-top: 10px; /* Ajuste de espacio en móviles pequeños */
    }

    .avatars img {
        width: 25px;
        height: 25px;
    }

    .testimonial-text {
        font-size: 12px;
    }
}


/* Sección Servicios */


/* Section Styles */
.service-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Card Styles */
.card-container {
    width: 100%;
    max-width: 400px;
    background-color:FCFCFC;
    border-radius: 15px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; 
}

.card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.hero-image-container {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

.hero-image {
    width: 100%;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    max-height: 200px;
    transition: transform 0.3s ease-in-out;
}

.hero-image:hover {
    transform: scale(1.05);
}
/*Card content*/

.main-content {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    
}

.main-content h1 {
    text-align: left;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #112332;
    font-weight: 900;
}

.main-content p {
    text-align: left;
    font-size: 0.8rem;
    color: black;
    margin-bottom: 0.5rem;
}

.flex-row {
  
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 0.5rem;
}

.flex-row p {
    margin: 0;
    color:  #112332;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.service-section .see-more-btn {
    text-align: left;
    display: inline-block;
    margin-top: auto; /* Empuja el botón hacia abajo */
    padding: 5px 15px;
    background-color: none;
    color: #ce7d87;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s, transform 0.3s, padding 0.3s, font-size 0.3s;
}

.service-section .see-more-btn:hover {
    background-color: #efdddf;
    transform: scale(1.05);
}

    .card-container {
        max-width: 90%;
        margin: 0 auto;
    }


/* Media Queries  */



/* Tablets (481px - 768px) */
@media (max-width: 768px) {
    .service-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-section .card-container {
        max-width: 90%;
        padding: 1.2rem;
    }

    .service-section .see-more-btn {
        width: 90%;
        padding: 4px 12px;
        font-size: 0.85rem;
        text-align: center;
    }
}

/* Laptops (769px - 1024px) */
@media (max-width: 1024px) {
    .service-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }

    .service-section .card-container {
        max-width: 350px;
        padding: 1.5rem;
    }
}

/* Desktop (1025px and above) */
@media (min-width: 1025px) {
    .service-section {
        grid-template-columns: repeat(4, 1fr);
    }

    .service-section .card-container {
        max-width: 350px;
    }
}

/* Ajustes para pantallas grandes */
@media (min-width: 1440px) {
    .service-section {
        max-width: 1400px;
    }

    .service-section .card-container {
        max-width: 400px;
    }
}

@media (min-width: 600px) {
    body {
        font-size: 18px;
    }
}


/* Sección Preguntas Frecuentes */
.faq-container {
    max-width: 800px; /* Limit the width for better readability */
    margin: 50px auto; /* Center the container and add vertical spacing */
    padding: 20px;
    font-family: 'Arial, sans-serif';
    color: #333; /* Base text color */
  }
  
  /* Style for the main title */
  .faq-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50; /* Dark blue color for the title */
  }
  
  /* Style for each FAQ item */
  .faq-item {
    border-bottom: 1px solid #ddd; /* Light gray border between items */
    overflow: hidden; /* Hide overflowing content */
  }
  
  /* Style for the question buttons */
  .faq-question {
    background-color: #ecf0f1; /* Light gray background */
    width: 100%;
    padding: 20px;
    text-align: left;
    font-size: 18px;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease; /* Smooth background transition on hover */
  }
  
  /* Hover effect for question buttons */
  .faq-question:hover {
    background-color: #d0d7de; /* Slightly darker gray on hover */
  }
  
  /* Style for the arrow icon */
  .faq-question .arrow {
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease; /* Smooth rotation transition */
  }
  
  /* Rotate the arrow when the question is active (expanded) */
  .faq-question.active .arrow {
    transform: rotate(180deg); /* Rotate arrow 180 degrees */
  }
  
  /* Style for the answer sections */
  .faq-answer {
    max-height: 0; /* Initially hide the answer */
    overflow: hidden;
    transition: max-height 0.3s ease; /* Smooth transition for expanding */
    background-color: #fff; /* White background for answers */
  }
  
  /* Style for the answer text */
  .faq-answer p {
    padding: 20px;
    font-size: 16px;
    line-height: 1.5; /* Increase line height for better readability */
    color: #555; /* Slightly lighter text color for answers */
  }
  
  /* Harmonious color palette for the body background */
  body {
    background-color: #f5f7fa; /* Very light blue-gray background */
  }

/* Footer */

footer {
    background-color: #F3F9FF;
    color: #021526;
    padding: 30px 0;
    border-top: 2px solid #ccc;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

.container-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col {
    flex: 1;
    margin: 0 20px;
    min-width: 250px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.footer-col:hover {
    transform: translateY(-5px);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.footer-col h2 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-para {
    font-size: 14px;
    margin-bottom: 20px;
    color: #555;
}

.contact-section {
    display: flex;
    flex-direction: column;
}

.contact-info {
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-icon {
    width: 20px;
    margin-right: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.map-image {
    width: 100%;
    max-width: 300px; /* Aumentar tamaño máximo del mapa */
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.map-image:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}

/* Línea divisoria */
.footer-line {
    margin: 20px auto;
    width: 80%;
    border: 0.5px solid #021526;
    opacity: 0.5;
}

/* Derechos reservados */
.footer-bottom {
    text-align: center;
    padding: 10px 0;
    background-color: #F3F9FF;
    color: #021526;
    font-size: 14px;
    font-weight: 400;
}

.footer-bottom p {
    margin: 0;
}

/* Media Queries para pantallas grandes (pantalla completa) */
@media (min-width: 1200px) {
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrar los elementos dentro de cada columna */
    }
    .footer-col h2, .footer-col p {
        text-align: center; /* Centrar textos */
    }
    .map-image {
        max-width: 400px; /* Aumentar el tamaño máximo del mapa en pantalla completa */
    }
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    .container-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-col {
        margin-bottom: 20px;
    }
    .contact-section {
        align-items: center;
    }
    .map-image {
        max-width: 90%; /* Ajustar tamaño en móviles */
    }
}