/* 🔷 Estilos Generales */
body {
    font-family: 'Alata', sans-serif;
    overflow-x: hidden;
}


/* 🔷 Prevenir Scroll Horizontal sin Afectar la Estructura */
body, html {
    padding: 0;
    margin: 0;
    overflow-x: hidden; /* Evita scroll lateral */
}

.section-title{
    /* padding-top: 20vh; */
    padding-bottom: 3vh;
}

.section-title2{
    padding-bottom: 5vh;
    font-size: 2.5rem; /* Hacer el título más grande */
    font-weight: bold;
    color: #6A1B9A;
    margin-bottom: 30px;
}


p{
    font-size: 1rem; /* Texto más legible */
    max-width: 100%; /* Limitar el ancho del texto */
    line-height: 1.4;
}

/* Ajustar Contenedor del Texto para Mejor Fluidez */
.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}
/* 🔥 Hacemos que el navbar tenga un fondo semitransparente */
.navbar {
    background: rgba(0, 0, 0, 0.6); /* 🔥 Negro semitransparente */
    padding: 10px 20px;
    transition: background 0.3s ease-in-out;
    backdrop-filter: blur(10px); /* 🔥 Aplica desenfoque */
    -webkit-backdrop-filter: blur(10px); /* 🔥 Compatibilidad con Safari */
}

/* 🔥 Cambia el color del texto a blanco */
.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
}

/* 🔥 Hacemos que el botón "Empezar ahora" resalte más */
.navbar .btn-primary {
    background: #ffffff;  /* 🔥 Blanco para contraste */
    color: #7B1FA2 !important;/* 🔥 Un morado fuerte */
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

/* 🔥 Efecto hover en el botón */
.navbar .btn-primary:hover {
    background: #ff4081; /* 🔥 Un rosa vibrante */
    color: white;
}


/* Navbar cuando hace scroll */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.7); /* 🔥 Más oscuro cuando se desliza */
}


/* Ajuste del logo */
.navbar-brand img {
    height: 40px;
}

/* Estilos del menú */
.navbar-nav .nav-link {
    color: #333; /* Color oscuro para visibilidad */
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

/* Cambia color al pasar el mouse */
.navbar-nav .nav-link:hover {
    color: #007bff; /* Azul */
}

/* Botón "Empezar ahora" */
.navbar-nav .btn-primary {
    font-weight: bold;
    border-radius: 20px;
    padding: 8px 16px;
}


/* 🔷 Hero con Video de Fondo */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to right, #4E1F6F, #7A1F5F); /* 🔥 Un degradado más suave */
    background-image: url(../img/bg_img.jpg);
    background-repeat: no-repeat;
    background-size: cover;
   
}

/* 📌 Asegurar que el párrafo tenga espacio */
.hero p {
    margin-bottom: 30px; /* 📌 Asegura que el botón no toque el texto */
}
.title-above{
    font-size: 1rem;
    opacity: .5;

}
.hero-btn {
    position: absolute;
   
}

/* 🔥 Mejoramos el color del botón */
.hero-btn {
    display: inline-block;
    background: #E91E63; /* Color llamativo */
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 20px; /* 📌 Espacio entre el párrafo y el botón */
    border: none; /* 📌 Elimina el borde azul en algunos navegadores */
    outline: none; /* 📌 Evita el borde de selección en navegadores */
    cursor: pointer; /* 📌 Asegura que el cursor sea de botón */
}

/* 🔥 Efecto hover */
.hero-btn:hover {
    background: #C2185B; /* Tono más oscuro */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}


/* Ajuste del video */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que cubra toda la pantalla */
    transform: translate(-50%, -50%);
}

/* Capa oscura para mejorar la legibilidad del texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Ajusta la opacidad */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    max-width: 45%; /* 🔥 Evita que el texto invada la imagen */
    margin-left: 5%;
    margin-right: auto; /* Empuja el texto a la izquierda */
    text-align: left;
    z-index: 2;
    padding: 20px;
}


.hero-title {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* 🔥 Un leve efecto para mejorar la lectura */
}




/* Logo ajustable */
.logo-white {
    min-width: 150px;
    max-width: 200px;
}

/* 🔷 Estilos de Secciones */
.section {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    min-height: 600px;
    position: relative;
}

/* 🔷 Contenedor de los Paneles */
/* Asegurar que los paneles usen todo el ancho */

.feature-box:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
#ctMoreInf {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: space-between;
    align-items: stretch;
}
.custom-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto;
    margin-right: auto;
}

.custom-container2 {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto;
    margin-right: auto;
    padding-top: 60px;
}


/* Paneles en Estado Inicial */
.feature-box {
    text-align: center;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease-in-out;
    border-radius: 0; /* 🔥 Eliminamos los bordes redondeados */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-grow: 1;
    flex-basis: 25%; /* Todos los paneles ocupan el mismo ancho */
}

/* 🎨 Colores Distintivos para cada Panel 
#panel1 {
    background: rgba(196, 168, 103, 1); /* Amarillo 
}

#panel2 {
    background: rgba(195, 108, 143, 1); /* Rosa 
}

#panel3 {
    background: rgba(86, 136, 205, 1); /* Azul 
}

#panel4 {
    background: rgba(143, 103, 199, 1); /* Morado 
}*/


#panel1 {
    background: linear-gradient(to bottom, #574E4D, #3F3A38); /* Morado grisáceo elegante */
}

#panel2 {
    background: linear-gradient(to bottom, #794C74, #5A3657); /* Vino oscuro/morado */
}

#panel3 {
    background: linear-gradient(to bottom, #4B5F8F, #344366); /* Azul oscuro con mejor contraste */
}

#panel4 {
    background: linear-gradient(to bottom, #5B3F78, #432B5C); /* Morado profundo más elegante */
}

.item-number{
    font-size: 2rem;
    color: white;
}

/* Cuando un Panel está Expandido */
.feature-box.active {
    flex-basis: 70%;
    background: white !important; /* 🔥 Vuelve a ser blanco al expandirse */
    padding: 30px;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Cuando un Panel NO está Expandido */
.feature-box:not(.active) {
    flex-basis: 10%;
}

/* 🔷 Footer */
.footer-container {
    background: #380138;
    color: white;
    padding: 50px 20px;
    font-size: 0.875rem; /* Disminuye el tamaño de fuente en 2 puntos */
}
.footer-container h2 {
    font-weight: 500; /* Menos negrita */
    color: rgba(255, 255, 255, 0.9); /* Blanco con menor intensidad */
    padding-top: 20px; /* Más separación superior */
}

.footer-container p {
    font-weight: 400; /* Reducir peso de la fuente */
    color: rgba(255, 255, 255, 0.8); /* Hacer el blanco menos intenso */
    font-size: 0.85rem; /* Reducir tamaño del texto */
    line-height: 1.2; /* Mejorar legibilidad */
}

.footer-container h5 {
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-container a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-container a:hover {
    color: #E91E63;
}

.input-line {
    width: 100%;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: white;
    padding: 8px;
    margin-bottom: 15px;
    font-size: 16px;
    outline: none;
}

.input-line::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Botón outline */
.btn-outline {
    display: inline-block;
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 30px;
    text-align: center;
    font-size: 16px;
    transition: 0.3s;
    width: 100%;
}

.btn-outline:hover {
    background: white;
    color: #2C1E5D;
    cursor: pointer;
}

/* Estilos del reCAPTCHA */
.g-recaptcha {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

hr {
    border: 0.5px solid rgba(255, 255, 255, 0.3);
}

/* Diseño responsivo */
@media (max-width: 768px) {
    .footer-container {
        text-align: center;
    }
    .g-recaptcha {
        justify-content: center;
    }
}

.hero-mobile-img {
    display: none; /* Oculto por defecto */
    max-width: 150px; /* Ajustamos el tamaño */
    margin: 0 auto 15px; /* Centramos y damos un poco de espacio */
}



/* 🔷 Fondos para Personajes a la Izquierda */
.bg-left {
    background-position: left center;
    background-size: 100%;
    background-repeat: no-repeat;
    background-color: #C4A867;
}

.bg-lefta {
    background-position: left center;
    background-size: 100%;
    background-repeat: no-repeat;
    background-color: #5688CD;
}

/* 🔷 Fondos para Personajes a la Derecha */
.bg-right {
    background-position: right center;
    background-size: 100%;
    background-repeat: no-repeat;
    background-color: #C36C8F;
}

.bg-righta {
    background-position: right center;
    background-size: 100%;
    background-repeat: no-repeat;
    background-color: #8F67C7;
}




/* 🔷 Responsivo: Ajustes en Móviles */
@media (max-width: 768px) {
    .logo-white {
        min-width: 90px;
        max-width: 120px;
    }
      .hero-mobile-img {
        display: block; /* 🔥 Se muestra solo en móvil */    
        min-width: 80%;
    }
    
    .hero-content {
        max-width: 100%; /* 🔥 Texto ocupa todo el ancho */
        text-align: center;
        margin: 0 auto;
        padding: 30px;
        text-align: center; /* 🔥 Centramos el texto */
    }
    .hero::after {
        content: "";
        background-size: contain;
        width: 100%;
        height: 200px;
        display: block;
        margin-top: 20px;
    }

 #ctMoreInf {
        display: flex;
        flex-direction: column;
        align-items: stretch; /* 🔥 Evita espacios vacíos */
        width: 100%;
    }

    .feature-box {
        width: 100%;
        max-width: 100%;
        min-height: 150px; /* 🔥 Asegura que no se colapsen demasiado */
        margin: 0;
    }

    .feature-box.active {
        width: 100%;
        min-height: 250px; /* 🔥 Hace que el panel expandido sea más alto */
    }

    .panel-content {
        display: none;
    }

    .feature-box.active .panel-content {
        display: block;
    }
    .proceso-ia {
        padding: 20px 20px;
    }

    .section-title {
        font-size: 2rem; /* Un poco más pequeño en móvil */
    }

    .proceso-img {
        max-width: 120px; /* Ajustar tamaño de imagen en móviles */
    }

    .proceso-title {
        font-size: 1.5rem;
    }

    .proceso-text {
        font-size: 1rem;
        max-width: 100%;
    }

    .bg-left {
    background-position: left center;
    background-size: 200%;
    background-repeat: no-repeat;
    background-color: #C4A867;
}

.bg-lefta {
    background-position: left center;
    background-size: 200%;
    background-repeat: no-repeat;
    background-color: #5688CD;
}

/* 🔷 Fondos para Personajes a la Derecha */
.bg-right {
    background-position: right center;
    background-size: 200%;
    background-repeat: no-repeat;
    background-color: #C36C8F;
}

.bg-righta {
    background-position: right center;
    background-size: 200%;
    background-repeat: no-repeat;
    background-color: #8F67C7;
}
}
/* 📱 Ajustes específicos para tablets (iPad y similares) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content {
        max-width: 90%; /* 🔥 Un poco más ancho en tablets */
        text-align: center;
        margin: 0 auto;
        padding: 30px;
    }

    /* 🔥 Hacemos que el personaje sea más grande en tablets */
    .hero-mobile-img {
        display: block;
        max-width: 450px; /* 🔥 Aumentamos el tamaño */
        margin: 20px auto;
    }

    /* 🔥 Aumentamos el tamaño del título */
    .hero-title {
        font-size: 2.5rem; /* Antes estaba más pequeño */
    }

    /* 🔥 Ajustamos el párrafo */
    .hero-content p {
        font-size: 1.2rem;
    }

    /* 🔥 Botón más grande */
    .hero-btn {

        font-size: 1.2rem;
        padding: 12px 24px;
    }
}


/* 📌 Alinear a la derecha en pantallas grandes */
@media (min-width: 1025px) { 
    .hero-btn {
        left: auto;
        right: 0;
    }
}

/* 📱 Centrar en móviles y tablets */
@media (max-width: 1024px) { /* iPads y móviles */
    .hero-btn {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        display: block;
        margin: 20px auto; /* Centrado */
        text-align: center;
    }
}


.proceso-ia {
    padding: 20px 0; 
    background: #F5F5F5;
    text-align: center;
}

.proceso-img {
    max-width: 300px; /* Aumentamos tamaño de imágenes */
    margin-bottom: 30px;
}

.proceso-title {
    font-size: 1.25rem; /* Hacemos los títulos más grandes */
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.proceso-text {
    font-size: 1rem; /* Texto más legible */
    color: #555;
    max-width: 100%; /* Limitar el ancho del texto */
    display: flex;
    text-align: justify;
    line-height: 1.4;
}


.podcast-section {
    background: #E91E63; /* Color vibrante */
    color: white;
    text-align: center;
    padding: 40px 0;
}

.podcast-text {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.podcast-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.podcast-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.podcast-time {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.8;
}

/* 🔊 Animación del icono de sonido */
@keyframes soundAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.sound-icon.playing {
    animation: soundAnimation 1s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .podcast-text {
        font-size: 1.2rem;
    }

    .podcast-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

.ia-personas {
    text-align: center;
    padding: 0px 20px 20px 20px;
    background: linear-gradient(to right, #2f075b, #27092d); /* 🔥 Fondo degradado elegante */
    color: white;
}

.ia-personas .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.ia-personas .grid-item .content {
    padding: 40px; /* Añade más aire alrededor del contenido de cada tarjeta */
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

/* 📌 GRID en Desktop */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
   
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.grid-item img {
    width: 100%; /* La imagen ocupa todo el ancho disponible */
    height: auto; /* Mantiene la proporción */
    display: block;
    object-fit: cover; /* Evita distorsión y mantiene el encuadre */
}

.grid-item:hover {
    transform: translateY(-5px);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* 📌 BOTÓN CTA */
/* 🔷 Botones CTA en el Footer */
.cta-container {
    display: flex;
    flex-direction: row; /* Coloca los botones en la misma fila */
    gap: 15px;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap; /* Permite que se ajusten en pantallas pequeñas */
}

.cta-call,
.cta-whatsapp {
    background-color: transparent; /* Fondo transparente */
    color: white; /* Texto blanco */
    padding: 12px 20px;
    border: 2px solid white; /* Borde blanco */
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease-in-out;
    flex: 1; /* Asegura que ambos botones tengan el mismo tamaño */
    max-width: 250px;
    margin-bottom: 50px;
}

/* 🔥 Cambio de color en Hover */
.cta-call:hover, .cta-whatsapp:hover {
    background-color: white; /* Fondo blanco en hover */
    color: black; /* Texto negro en hover */
}

/* Cambiar el color del ícono a rosado en hover */
.cta-call:hover .cta-icon,
.cta-whatsapp:hover .cta-icon {
    filter: brightness(0) saturate(100%) invert(30%) sepia(90%) saturate(2000%) hue-rotate(330deg) brightness(90%) contrast(90%); /* Filtro para convertir el ícono en rosado */
}

/* 🔷 Iconos dentro de los botones CTA */
.cta-icon {
    filter: invert(1);
    max-width: 30px;
    max-height: 30px;
}

.cta-icon:hover {
    filter: invert(0);
    max-width: 30px;
    max-height: 30px;
}


/* 📌 RESPONSIVE: Carrusel en Móvil */
@media (max-width: 768px) {
      .cta-container {
        flex-direction: column; /* Cambia los botones a una columna en móviles */
    }
    .grid-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
    }

    .grid-item {
        flex: 0 0 90%;
        scroll-snap-align: center;
    }

    .cta-btn {
        width: 100%;
    }
}



/* 📌 AI MESSAGE */

.ai-message {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: #4061C6; /* Color morado elegante */
    margin-top: 20px;
}

#changing-text {
    color: #E91E63; /* Color resalte */
    transition: opacity 0.8s ease-in-out;
}

.contacto-final {
    background: linear-gradient(to right, #5E35B1, #8E24AA); /* Morado degradado */
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.contacto-final .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
}

.info {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.contact-details {
    flex: 1;
    padding: 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cta-buttons {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-llamada {
    background: #673AB7;
    color: white;
}

.btn-whatsapp {
    background: #4CAF50;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

.mapa {
    margin-top: 20px;
}

/* Estilos para que todas las secciones ocupen el 100% de la altura de la pantalla */
#formacion,
#certificacion,
#operacion,
#soporte {
    height: 100vh;  /* Ocupa toda la altura del viewport */
    display: flex;  /* Para centrar contenido si es necesario */
    color: white; /* Para asegurar contraste */
}

/* Opcional: Ajustar el contenido dentro de cada sección */
#formacion .container,
#certificacion .container,
#operacion .container,
#soporte .container {
    max-width: 90%;
    text-align: center;
}

/* 🔥 Overlay oscuro solo para estas secciones */
#formacion::before, 
#certificacion::before, 
#operacion::before, 
#soporte::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Ajusta la opacidad (0.5 = 50%) */
    z-index: 1;
}

/* Asegurar que el contenido esté por encima del overlay */
#formacion .container, 
#certificacion .container, 
#operacion .container, 
#soporte .container {
    position: relative;
    z-index: 2;
    max-width: 80%;
}

/* Responsive: Ajuste en móviles */
@media (max-width: 768px) {
    #formacion,
    #certificacion,
    #operacion,
    #soporte {
        height: auto; /* Permitir que el contenido defina la altura */
        padding: 50px 20px;
    }
}

.ai-custom-assistant {
    text-align: center;
    padding: 20px 20px;
    color: white;
}

.ai-custom-assistant h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.changing-text {
    color: #ffeb3b;
    transition: opacity 0.5s ease-in-out;
}


/* 🔷 Ajustes para la Grid de Beneficios */
/* 🔷 Estilos de la Sección de Video */
.ai-video-section {
    text-align: center;
     /* padding: 60px 20px 0; */
    color: #2C074E;
}

.ai-video-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.ai-video-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-video-card {
    background: white;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.ai-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.ai-video-container video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}


/* Ajustes Responsive */
@media (max-width: 768px) {
 /* 🔷 Ajuste de la Sección de Video en Móviles */
    .ai-video-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ai-video-container {
        order: -1; /* Mueve el video al inicio */
        max-width: 320px;
    }

    .ai-video-grid {
        width: 100%;
        max-width: 360px;
    }
}

.swiperservicios {
    width: 100%;
    min-height: 450px; /* Ajusta según necesidad */
    padding: 10px 0; /* Añade relleno superior e inferior */
    overflow: hidden; /* Evita desbordamientos */
    margin-bottom: 50px;
}

.swiper-wrapper {
    display: flex;
    align-items: center; /* Centra las tarjetas verticalmente */
    justify-content: center; /* Centra las tarjetas horizontalmente */
    gap: 20px; /* Espacio uniforme entre las tarjetas */
    padding: 0 5px; /* Añade padding para evitar desbordamientos */
    flex-wrap: wrap;
    align-items: stretch;
}

.swiper-slide {
    flex: 1; /* Hace que todas las tarjetas tengan el mismo ancho por defecto */
    transition: all 0.5s ease-in-out;
    background: white;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra inicial */
    min-height: 450px;
    height: clamp(400px, 50vh, 500px); /* Se ajustará entre 400px y 500px según el viewport */
}

/* Ocultar el texto adicional solo en pantallas entre 768px y 1200px */
@media (max-width: 1200px) and (min-width: 768px) {
    .extra-text {
        display: none;
    }
}

.swiper-slide::before {
    content: "\f00c"; /* Código del ícono de check en FontAwesome */
    font-family: "Font Awesome 5 Free"; /* Fuente de FontAwesome */
    font-weight: 900; /* Peso de la fuente para el ícono sólido */
    position: absolute;
    top: 10px; /* Posición desde la parte superior */
    left: 10px; /* Posición desde la izquierda */
    color: #e91e63; /* Color del ícono */
    font-size: 20px; /* Tamaño del ícono */
    opacity: 0; /* Inicialmente invisible */
    transition: opacity 0.3s ease-in-out; /* Transición suave */
    z-index: 20; /* Asegura que esté por encima de otros elementos */
}

.swiper-slide:hover::before {
    opacity: 1; /* Hace visible el ícono al pasar el ratón */
}

.swiper-slide img {
    width: 35%;
    height: auto;
    transition: all 0.3s ease-in-out;
}


/* Estilos para el texto de los planes */
.plan-price {
    padding-top: 10px;;
    margin-top: 10px; /* Espacio arriba del texto */
    font-size: 12px; /* Tamaño de fuente */
    color: #666; /* Color negro */
    text-align: center; /* Centrar texto */
    line-height: 1.5; /* Espaciado entre líneas */
}

.plan-price .price {
    font-size: 1.2rem; /* Tamaño grande para el precio */
    font-weight: bold; /* Texto en negrita */
    color: #666; /* Color negro */
    display: block; /* Hace que el precio esté en una línea separada */
}

/* Estilos para el ribbon - versión más compacta */
.ribbon-container {
    position: relative;
    width: 100%;
    margin-top: auto; /* Empuja el contenedor hacia abajo */
}

.ribbon {
    position: relative;
    background-color: #e91e63; /* Color naranja del ribbon */
    color: white;
    text-align: center;
    padding: 8px 0;
    margin: 0 -10px; /* Extensión más pequeña a los lados */
    z-index: 1;
}

/* Efecto 3D para los extremos del ribbon */
.ribbon:before,
.ribbon:after {
    content: '';
    position: absolute;
    display: block;
    bottom: -10px;
    border: 5px solid #8c1b41; /* Color más oscuro para los pliegues */
    z-index: -1;
}

.ribbon:before {
    left: 0;
    border-right-width: 10px;
    border-left-color: transparent;
}

.ribbon:after {
    right: 0;
    border-left-width: 10px;
    border-right-color: transparent;
}

/* Triángulos para los extremos del ribbon */
.ribbon .price {
    font-size: 1em;
    font-weight: bold;
    color: white;
    display: block;
}

/* Oculta el precio original en el texto */
.price-hidden {
    visibility: hidden;
    height: 0;
    display: block;
}

/* Ajusta el texto debajo del ribbon */
.plan-price {
    text-align: center;
    margin-top: 5px;
    color: #666;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .swiperservicios {
        height: auto; /* Ajustar altura automáticamente */
        padding: 10px; /* Añade padding para evitar desbordamientos */
    }

    .swiper-wrapper {
        flex-direction: column; /* Cambia a columna en móviles */
        align-items: center; /* Centra las tarjetas horizontalmente */
        gap: 10px; /* Espacio uniforme entre las tarjetas */
        padding: 0 5px; /* Añade padding para evitar desbordamientos */
    }

    .swiper-slide {
        flex: 0 0 auto; /* Desactiva el crecimiento flexible */
        width: calc(100% - 20px); /* Cada tarjeta ocupa el 100% del ancho menos el padding */
        margin: 10px 0; /* Espacio entre tarjetas */
        padding: 15px;
        border-radius: 10px;
        transition: all 0.3s ease-in-out; /* Transición suave */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra inicial */
    }

    .swiper-slide.expanded {
        flex: 0 0 auto; /* Mantén el mismo ancho en móviles */
    }

    .swiper-slide img {
        width: 100px; /* Tamaño inicial de la imagen en móviles */
        transition: all 0.3s ease-in-out; /* Transición suave para la imagen */
    }

    .swiper-slide:hover img {
        width: 120px; /* La imagen crece un poco al interactuar */
    }

    .swiper-slide.expanded img {
        width: 120px; /* Tamaño de la imagen expandida en móviles */
    }

    .swiper-slide:hover {
        transform: scale(1.05); /* Ligero aumento de tamaño en hover */
        box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3); /* Sombra suave */
    }

    .ribbon {
        margin: 0 -8px;
        padding: 6px 0;
    }

    .ribbon:before,
    .ribbon:after {
        bottom: -8px;
        border-width: 4px;
    }

    .ribbon .price {
        font-size: 20px;
    }
}

/* 🔷 Botón de Agendamiento con FontAwesome */
.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.cta-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease-in-out;
    max-width: 70%;
    justify-content: center;
}

.cta-btn i {
    font-size: 1.2rem;
}

/* 🔥 Hover con mayor contraste */
.cta-btn:hover {
    background-color: white;
    color: black;
}

 /* 🔷 Estilos para el Popup */
 .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 9999; /* Valor alto de z-index para asegurar que esté por encima de todo */
}

.popup-content {
    background: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 95%;
    position: relative;
    padding-top: 40px;
}

/* 🔷 Estilos del Botón de Cierre */
.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    position: absolute;
    top: 1px;
    right: 1px;
    cursor: pointer;
    color: black;
    transition: color 0.3s ease-in-out;
    z-index: 10000; /* Valor aún más alto para el botón de cierre */
}

.popup-close:hover {
    color: red; /* Resalta en hover */
}

/* 🔷 Estilos del iframe */
.popup-content iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Muestra el popup cuando se activa */
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
    }
    .popup-content {
        max-width: 90%;
    }
}

  /* 🔷 Estilos del Acordeón de FAQs */
        .faq-container {
            max-width: 800px;
            margin: 40px auto;
        }

        .faq-item {
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
            padding: 10px 0;
        }

        .faq-question {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-size: 0.9rem;
            color: white;
        }

        .faq-question i {
            transition: transform 0.3s ease-in-out;
        }

        .faq-answer {
            display: none;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.8);
            margin-top: 10px;
            line-height: 1.5;
        }

        .faq-item.active .faq-answer {
            display: block;
        }

        .faq-item.active .faq-question i {
            transform: rotate(45deg);
        }

        #languageToggle {
            padding: 5px 10px;
            margin-right: 10px;
            border-radius: 4px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
          }
          
          #languageToggle:hover {
            background-color: rgba(255, 255, 255, 0.2);
          }
          
          .language-active {
            background-color: rgba(255, 255, 255, 0.3);
          }
          
          .flag-icon {
            width: 20px;
            height: auto;
            border-radius: 2px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.2);
          }
          
          .hidden {
            display: none;
          }