/*
 * -----------------------------------------------------
 * Estilos Generales
 * -----------------------------------------------------
 */
body {
    font-family: 'Roboto Condensed', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
}

/* ---------------------------------- */
/* 2. Barra de Navegación           */
/* ---------------------------------- */
.header {
    background-color: #ffffff;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .logo {
    display: flex;
    align-items: center;
}

.header .logo img {
    height: 40px;
    margin-right: 10px;
}

.header .logo span {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.5em;
    color: #5D12D2;
}

.header .nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header .nav-links a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header .nav-links a:hover {
    color: #5D12D2;
}

.nav-button {
    background: linear-gradient(90deg, #6C1FD7, #4A129E);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(108, 31, 215, 0.4);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 31, 215, 0.5);
}

/*
 * -----------------------------------------------------
 * 3. Sección Hero
 * -----------------------------------------------------
 */
/*
 * -----------------------------------------------------
 * 3. Sección Hero - OPTIMIZADO PARA MÓVILES
 * -----------------------------------------------------
 */
.hero {
    color: white;
    padding: 120px 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    background-image: url('../../assets/img/home/fondo_banner.png');

    /* ESTRATEGIA OPTIMIZADA PARA BACKGROUND */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;

    /* Ajustes para Responsividad */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    /* Altura mínima consistente */
}

/* Media Queries específicas para móviles */
@media (max-width: 1200px) {
    .hero {
        padding: 100px 0;
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
        min-height: 400px;
        background-position: top center;
        /* Enfoca la parte superior en móviles */
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
        min-height: 350px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        background-position: center center;
        /* O top center según tu imagen */
    }
}

/* Overlay para mejor legibilidad */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Contenido del Hero */
.hero h1 {
    font-size: 2.2em;
    line-height: 1.1;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    text-align: left;
    font-size: 1.4rem;
    margin-right: auto;
    margin-left: 10%;
}

/* Ajustes responsive para el contenido */
@media (max-width: 1200px) {
    .hero .container {
        margin-left: 8%;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8em;
        text-align: center;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1em;
        text-align: center;
        max-width: 100%;
        line-height: 1.4;
    }

    .hero .container {
        margin-left: 5%;
        margin-right: 5%;
        text-align: center;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6em;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .hero .container {
        margin-left: 0;
        margin-right: 0;
        font-size: 1rem;
    }
}

.cta-button-banner {
    display: inline-block;
    background-color: #3004E1;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(232, 63, 111, 0.4);
    position: relative;
    z-index: 2;
}

.cta-button-banner:hover {
    transform: translateY(-3px);
    background-color: #A601B3;
    color: #ffffff;
}

/* Ajustes del botón para móviles */
@media (max-width: 768px) {
    .cta-button-banner {
        padding: 12px 25px;
        font-size: 0.95em;
    }
}

/*
 * -----------------------------------------------------
 * 4. Secciones de Contenido
 * -----------------------------------------------------
 */
section {
    padding: 60px 0;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #5D12D2;
}

.features {
    background-color: #ffffff;
    padding: 60px 0;
}

.features h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #5D12D2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: #f9f9f9;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-item img {
    width: 80%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 5px;
    color: #5D12D2;
    font-weight: 700;
    line-height: 1.2;
    padding: 0 20px;
}

.feature-item p {
    font-size: 1em;
    color: #333333;
    padding: 0 20px;
    text-align: center;
}

.testimonials-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: white;
    padding: 60px 30px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card p {
    margin: 20px 0 25px 0;
    font-style: normal;
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

.testimonial-card .author {
    font-weight: 700;
    font-style: normal;
    color: #5D12D2;
    display: block;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.testimonial-card .location {
    font-size: 0.95em;
    color: #666666;
    font-style: normal;
}

/* Estilos para el círculo morado con el ícono */
.testimonial-card::before {
    content: '';
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: linear-gradient(90deg, #A601B3, #3004E1);
    background-image: url('../assets/img/home/logo_perfil.png');
    background-size: 80% 80%, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-clip: padding-box, border-box;
    background-origin: content-box, border-box;
    border: 4px solid #A601B3;
}

.cta-alt {
    background: linear-gradient(to right, #6c05cd, #FF6B8B);
    color: white;
    text-align: center;
    border-radius: 20px;
    padding: 50px 20px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(232, 63, 111, 0.3);
}

.cta-alt h2 {
    color: white;
    font-size: 2em;
    margin-bottom: 10px;
}

.cta-alt .cta-button {
    background-color: white;
    color: #6c05cd;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ---------------------------------- */
/* 5. Carrusel de Imágenes            */
/* ---------------------------------- */
.image-carousel-section {
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 80%;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, #6C1FD7, #4A129E);
    color: white;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.carousel-nav-button:hover {
    transform: translateY(-50%) scale(1.1);
}

.prev-button {
    left: 15px;
}

.next-button {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator-dot.active {
    background-color: #6c05cd;
}

/*
 * -----------------------------------------------------
 * 7. Responsividad
 * -----------------------------------------------------
 */
@media (max-width: 992px) {
    .hero {
        padding: 150px 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0;
        /* Ajustamos el fondo para que cubra toda la pantalla en móviles */
        background-size: 100% 100%;
        background-attachment: scroll;
        /* Para evitar efectos extraños al hacer scroll */
    }

    .hero .container {
        /* Hacemos que el contenedor ocupe el 100% del ancho */
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        /* Aseguramos que el padding no desborde */
        text-align: center;
        /* Centramos el contenido de texto */
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2em;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1em;
        max-width: 90%;
        margin: 0 auto 20px auto;
    }

    .cta-button-banner {
        padding: 12px 25px;
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 1.8em;
    }
}