/* ==================================================================================
                                VARIABLES DE MARCA FORMEX
   ================================================================================== */
:root {
    --fmx-white: #ffffff;
    --fmx-primary: #2a2954;
    --fmx-secondary: #a2bbf9;
    --fmx-lime: #e4efa1;
    --fmx-forest: #385b36;
    --fmx-orange: #eb5b32;
    --fmx-pink: #f9b7c0;
    --fmx-dark: #333333;
    --fmx-light: #f2f2f2;
    --font-main: "Swansea", sans-serif;
}

/* --- 2. --- */
/* ==================================================================================
                                ESTILOS BASE 
   ================================================================================== */
body {
    font-family: var(--font-main);
    background-color: var(--fmx-light);
    color: var(--fmx-dark);
}

.transition {
    transition: all 0.3s ease-in-out;
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* ==================================================================================
                                CLASES DE COLOR Y FONDOS
   ================================================================================== */
.fmx-bg-primary {
    background-color: var(--fmx-primary) !important;
}

.fmx-text-primary {
    color: var(--fmx-primary) !important;
}

.fmx-bg-pink {
    background-color: var(--fmx-pink) !important;
}

.fmx-bg-lime {
    background-color: var(--fmx-lime) !important;
}

/* Añadimos la clase para el fondo secundario (Azul claro) */
.fmx-bg-secondary {
    background-color: var(--fmx-secondary) !important;
    color: var(--fmx-white) !important;
    /* Aseguramos que el texto sea legible sobre el fondo azul claro */
}

/* ==================================================================================
                                CABECERA Y NAVEGACIÓN
   ================================================================================== */
.navbar-brand img {
    height: 50px;
}

.nav-menu-text {
    font-size: 0.9rem;
}

/* Quitar la flechita/punto del menú desplegable de contacto */
#navbarContactDropdown::after {
    display: none !important;
}

.language-selector {
    background: transparent;
    color: var(--fmx-white);
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.language-selector option {
    background-color: var(--fmx-primary);
}

.header-top {
    /* Eliminamos el min-height: 15VH que deformaba la barra */
    min-height: auto;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.header-top .language-selector,
.header-top .d-flex.align-items-center,
.header-top .d-none.d-lg-block {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.header-top-inner {
    width: 100%;
    /* Dejamos que Bootstrap maneje el layout con flex */
}

.header-top .language-selector select {
    height: 42px;
    line-height: 1.2;
}

.header-top .btn {
    min-height: auto;
    /* Ajustado para que no se estire */
    display: inline-flex;
    align-items: center;
}

.header-top-info {
    font-size: 1rem;
}

.header-top-info span {
    line-height: 1.5;
}

.header-top .dropdown-menu {
    z-index: 2050;
}

/* Regla Responsive: Reducimos ligeramente el texto y relleno de los botones en móviles pequeños */
@media (max-width: 575.98px) {
    .header-top .btn {
        font-size: 0.70rem;
        padding: 0.35rem 0.5rem !important;
    }
}

/* ==================================================================================
                                SECCIONES DE LA HOME
   ================================================================================== */
/* NUEVO: Reglas responsive para el Hero en móviles */
@media (max-width: 767.98px) {
    .hero-section {
        /* Redefinimos el fondo para mover el foco a la derecha (80%) donde está la persona */
        background: linear-gradient(rgba(42, 41, 84, 0.1), rgba(42, 41, 84, 0.1));
        background-size: cover;

        /* Reducimos un poco la altura mínima para que no ocupe toda la pantalla del móvil */
        min-height: 50vh;
    }

    .hero-section h1 {
        /* Hacemos el título un poco más pequeño para dispositivos móviles */
        font-size: 2.2rem;
    }
}

/* Sombra de texto para asegurar la lectura sobre imágenes de fondo */
.hero-text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}
/* ==========================================================================
   VIDEO BACKGROUND PARA EL HERO
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden !important; 
    /* La altura que decidas, 60vh o 70vh suele quedar muy bien */
    min-height: 80vh; 
    background-color: var(--fmx-primary); /* Fondo por si el vídeo tarda en cargar */
}
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;      /* Cambiamos min-width por width */
    height: 100%;     /* Cambiamos min-height por height */
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* CAMBIO CLAVE: contain en lugar de cover */
    object-position: center center;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mantenemos el mismo gradiente azul oscuro que tenías en la imagen original */
    background: linear-gradient(rgba(42, 41, 84, 0.4), rgba(42, 41, 84, 0.2));
    z-index: 1;
}

/* Modificamos tu clase .hero-section existente para quitar la imagen de fondo 
   (o dejarla como respaldo temporal mientras carga el vídeo) */
.hero-section {
    background-color: var(--fmx-primary); /* Color de fondo por si falla el vídeo */
}
/* ==================================================================================
                                PIE DE PÁGINA (FOOTER)
    ==================================================================================*/
.footer-main {
    font-size: 0.85rem;
}

.footer-logo {
    width: 70px;
}

.acreditacion-box {
    width: 70px;
    height: 70px;
    border: 2px solid var(--fmx-primary) !important;
    font-size: 0.6rem;
}

.footer-socials {
    font-size: 1.1rem;
}

.footer-legal-section {
    border-color: rgba(42, 41, 84, 0.1) !important;
    font-size: 0.75rem;
}

/* ==================================================================================
                            SECCIÓN LEGAL DEL FOOTER
   ================================================================================== */
.footer-legal-bar {
    font-size: 0.85rem;
    padding-bottom: 1rem;
}

.footer-copyright {
    color: var(--fmx-dark);
    font-weight: 500;
}

.footer-separator {
    color: var(--fmx-primary);
    opacity: 0.4;
    user-select: none;
    /* Evita que el separador sea seleccionable con el ratón */
}

.footer-legal-link {
    color: var(--fmx-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer-legal-link:hover {
    color: var(--fmx-orange);
    text-decoration: underline;
}

/* Diseño Responsive: En pantallas pequeñas apilamos los enlaces y ocultamos los separadores (|) */
@media (max-width: 767.98px) {
    .footer-legal-bar {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .footer-separator {
        display: none !important;
    }

    .footer-copyright {
        margin-bottom: 0.5rem;
    }
}

/* ==================================================================================
                            HOVER PARA EL SELECTOR DE IDIOMAS
   ================================================================================== */
/* Efecto al pasar el ratón por el botón principal (Bandera actual) */
.lang-selector .dropdown-toggle {
    transition: all 0.3s ease;
    padding: 8px 12px !important;
    border-radius: 6px;
}

.lang-selector .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    /* Fondo blanco semitransparente */
    color: var(--fmx-secondary) !important;
}

/* Efecto al pasar el ratón por los idiomas de la lista */
.lang-selector .dropdown-item {
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 4px;
    width: auto;
}

.lang-selector .dropdown-item:hover {
    background-color: var(--fmx-light) !important;
    color: var(--fmx-orange) !important;
    transform: translateX(4px);
}

/* ==================================================================================
                        BOTONES DESTINOS (Naranja a Azul)
   ================================================================================== */
/* Estado normal del botón */
.btn-fmx-orange {
    background-color: var(--fmx-orange);
    color: var(--fmx-white) !important;
    border: 2px solid var(--fmx-orange);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 8px;
    /* Bordes elegantemente redondeados */
    box-shadow: 0 4px 10px rgba(235, 91, 50, 0.3);
    /* Sombra naranja difuminada */
    transition: all 0.3s ease-in-out;
    /* Animación suave para todos los cambios */
}

/* Estado cuando pasas el ratón por encima (Hover) */
.btn-fmx-orange:hover {
    background-color: var(--fmx-primary);
    /* Cambia a tu azul oscuro */
    border-color: var(--fmx-primary);
    color: var(--fmx-white) !important;
    transform: translateY(-5px);
    /* Efecto de levitación (sube 5 píxeles) */
    box-shadow: 0 10px 20px rgba(42, 41, 84, 0.4);
    /* La sombra crece y se vuelve azulada */
}

/* Estado cuando haces clic (Active) */
.btn-fmx-orange:active {
    transform: translateY(-1px);
    /* Baja un poquito al pulsarlo para dar realismo */
    box-shadow: 0 5px 10px rgba(42, 41, 84, 0.4);
}

/* ==================================================================================
                    CLASES AUXILIARES Y COMPONENTES EXTRA
   ================================================================================== */
/* Altura de línea para textos introductorios (Sustituye style="line-height: 1.8;") */
.text-lh-lg {
    line-height: 1.8;
}

/* Imágenes de fondo para los destinos (Sustituye los style de home.php) */
.bg-dest-malaga {
    background: url('../img/malaga/Málaga_General.jpg') center/cover;
    min-height: 400px;
}

.bg-dest-madrid {
    background: url('../img/madrid/Madrid_General.webp') center/cover;
    min-height: 400px;
}

/* Reducimos la altura de las imágenes de los destinos solo en teléfonos móviles */
@media (max-width: 767.98px) {

    .bg-dest-malaga,
    .bg-dest-madrid {
        min-height: 250px;
    }
}

/* Iconos de las banderas (Sustituye los style del array $flags en layout.php) */
.flag-icon {
    width: 20px;
    border-radius: 2px;
}

/* Ancho del menú desplegable de idiomas */
.lang-dropdown-menu {
    min-width: 100px;
}

/* Contenedores de mensajes (Para index.php y courseController.php) */
.error-container {
    text-align: center;
    padding: 50px;
    font-family: sans-serif;
}

.success-container {
    text-align: center;
    padding: 100px;
}

/* ==================================================================================
                            SECCIÓN ACREDITACIONES (Nuevo Diseño)
   ================================================================================== */
.bg-acreditaciones {
    background-color: #f7f7f0;
    /* Tono crema sacado exactamente de tu imagen */
}

.acreditacion-logo {
    max-height: 130px;
    /* Controlamos que ambos logos se vean proporcionados */
    width: auto;
    object-fit: contain;
}

/* ==================================================================================
                            SECCIÓN COLABORACIONES
   ================================================================================== */
.bg-collaborations {
    background-color: #f6f7ed;
    /* Color crema suave calcado de tu diseño original */
}

.collaboration-grid {
    margin-top: 2rem;
}

.collab-logo {
    max-height: 70px;
    /* Altura controlada para que ningún logo destaque por encima de otro */
    max-width: 100%;
    width: auto;
    object-fit: contain;
    /* Evita que las imágenes se deformen */
    transition: transform 0.3s ease;
}

/* Efecto sutil al pasar el ratón */
.collab-logo:hover {
    transform: scale(1.05);
}

/* Ajuste específico para móviles: Logos un poco más pequeños */
@media (max-width: 767.98px) {
    .collab-logo {
        max-height: 55px;
    }
}

/* ==================================================================================
                        PÁGINA CURSOS DE ESPAÑOL (CARRUSEL)
   ================================================================================== */
.carousel-course-img {
    height: 600px;
    object-fit: cover;
    filter: brightness(0.9);
    /* Oscurecemos muy sutilmente la imagen de fondo */
}

/* Caja de texto sobre la imagen */
.carousel-caption-bg {
    background-color: rgba(42, 41, 84, 0.85);
    /* Color corporativo primario (Formex Azul) con 85% de opacidad */
    border-radius: 15px;
    padding: 2.5rem;

    /* Centramos la caja en medio de la pantalla para escritorio */
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: 75%;
}

/* Efecto hover suave para la imagen al pasar el ratón por el carrusel */
.carousel-item:hover .carousel-course-img {
    transform: scale(1.02);
    transition: transform 6s ease;
}

/* Adaptación específica para teléfonos móviles */
@media (max-width: 767.98px) {
    .carousel-course-img {
        height: 450px;
        /* Reducimos la altura de la imagen en móviles */
    }

    .carousel-caption-bg {
        width: 90%;
        padding: 1.5rem;
    }

    .carousel-caption-bg h2 {
        font-size: 1.5rem;
        /* Título un poco más pequeño en móviles */
    }
}


/* ==================================================================================
                    TABLA DE RESUMEN DE CURSOS (Diseño Moderno)
   ================================================================================== */
.course-summary-container {
    border-radius: 12px;
    /* Esquinas más redondeadas */
    background-color: var(--fmx-white);
    box-shadow: 0 10px 30px rgba(42, 41, 84, 0.08) !important;
    /* Sombra amplia, suave y azulada */
    border: 1px solid rgba(42, 41, 84, 0.05);
}

/* Usamos el color naranja de Formex en lugar del salmón para destacar información */
.fmx-text-salmon {
    color: var(--fmx-orange) !important;
    font-weight: 600;
}

/* ==================================================================================
                                FORMULARIO DE CHECKOUT
   ================================================================================== */
.checkout-container {
    max-width: 800px;
    margin: 50px auto;
}

.checkout-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(42, 41, 84, 0.1) !important;
    background-color: var(--fmx-white);
}

.checkout-card-header {
    background-color: var(--fmx-white);
    border-bottom: 1px solid #eee;
    padding: 2rem;
    text-align: center;
}

.checkout-form-label {
    font-weight: 600;
    color: var(--fmx-primary);
    margin-bottom: 0.5rem;
}

.checkout-form-control,
.checkout-form-select {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.checkout-form-control:focus {
    border-color: var(--fmx-secondary);
    box-shadow: 0 0 0 0.25rem rgba(162, 187, 249, 0.25);
}

.btn-checkout-submit {
    background-color: var(--fmx-orange);
    color: var(--fmx-white);
    padding: 1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    margin-top: 1rem;
}

.btn-checkout-submit:hover {
    background-color: var(--fmx-primary);
    color: var(--fmx-white) !important;
    /* Fija el texto en color blanco al hacer hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 41, 84, 0.2);
}

.checkout-section-title {
    font-size: 1.1rem;
    color: var(--fmx-primary);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--fmx-light);
    padding-bottom: 0.5rem;
    font-weight: bold;
}

.checkout-container {
    max-width: 900px;
    margin: 50px auto;
}

.checkout-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(42, 41, 84, 0.1);
}

.checkout-card-header {
    background-color: var(--fmx-white);
    border-bottom: 1px solid #eee;
    padding: 2.5rem;
    text-align: center;
}

.checkout-section-title {
    font-size: 1.2rem;
    color: var(--fmx-primary);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--fmx-secondary);
    padding-bottom: 0.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.checkout-form-label {
    font-weight: 600;
    color: var(--fmx-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.checkout-form-control,
.checkout-form-select {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border-color 0.3s;
}

.checkout-form-control:focus,
.checkout-form-select:focus {
    border-color: var(--fmx-orange);
    box-shadow: 0 0 0 0.2rem rgba(235, 91, 50, 0.1);
}

.btn-checkout-submit {
    background-color: var(--fmx-orange);
    color: var(--fmx-white);
    padding: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    width: 100%;
    border: none;
    transition: 0.3s;
}

.btn-checkout-submit:hover {
    background-color: var(--fmx-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
    SELECTOR DE SEDE (MÁLAGA VS MADRID)
   ========================================================================== */
.checkout-radio-btn {
    border: 2px solid #ddd;
    color: var(--fmx-dark);
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: var(--fmx-white);
    text-align: center;
}

/* Efecto al pasar el ratón */
.checkout-radio-btn:hover {
    border-color: var(--fmx-secondary);
    background-color: rgba(162, 187, 249, 0.1);
}

/* EFECTO CUANDO ESTÁ SELECCIONADO */
.btn-check:checked+.checkout-radio-btn {
    background-color: var(--fmx-primary);
    color: var(--fmx-white);
    border-color: var(--fmx-primary);
    box-shadow: 0 8px 20px rgba(42, 41, 84, 0.2);
    transform: translateY(-2px);
}

/* En teléfonos muy pequeños, ajustamos un poco el tamaño */
@media (max-width: 575.98px) {
    .checkout-radio-btn {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

/* ==================================================================================
                        TARJETAS DE CURSOS (ESTILO MODERN GRID)
   ================================================================================== */
.course-card {
    border-radius: 16px;
    transition: all 0.4s ease;
    background-color: var(--fmx-white);
}

/* Efecto de levitación elegante al pasar el ratón */
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(42, 41, 84, 0.12) !important;
}

/* Contenedor de la imagen recortando los bordes superiores */
.course-card-img-wrapper {
    border-radius: 16px 16px 0 0;
    height: 240px;
}

.course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Zoom suave a la imagen al hacer hover en la tarjeta */
.course-card:hover .course-card-img {
    transform: scale(1.05);
}

/* Etiquetas (Badges) sobre las imágenes */
.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.badge-popular {
    background-color: var(--fmx-orange);
    color: var(--fmx-white);
}

.badge-equilibrado {
    background-color: var(--fmx-secondary);
    color: var(--fmx-primary);
}

.badge-personalizado {
    background-color: var(--fmx-forest);
    color: var(--fmx-white);
}

/* Botón secundario contorneado para las tarjetas */
.btn-outline-fmx-orange {
    color: var(--fmx-orange);
    border: 2px solid var(--fmx-orange);
    background-color: transparent;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-outline-fmx-orange:hover,
.btn-outline-fmx-orange:focus,
.btn-outline-fmx-orange:active {
    background-color: var(--fmx-orange);
    color: var(--fmx-white) !important;
    box-shadow: 0 8px 15px rgba(235, 91, 50, 0.25);
}

/* Ajuste del título dentro de la tarjeta */
.course-card .card-title {
    font-size: 1.4rem;
    line-height: 1.3;
}

/* ==================================================================================
                        ESTILOS DE LA PÁGINA "SOBRE NOSOTROS" (ABOUT)
   ================================================================================== */

.about-hero {
    background-color: #f4f4f4;
    padding: 60px 20px;
    text-align: center;
}

.about-title {
    color: var(--fmx-orange);
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.about-details {
    padding: 50px 20px;
}

.about-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text,
.about-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.about-heading {
    color: var(--fmx-primary);
}

.about-margin-top {
    margin-top: 30px;
}

.about-list {
    line-height: 1.8;
}

.about-image-wrapper {
    text-align: center;
}

.about-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-stats {
    background-color: var(--fmx-primary);
    color: var(--fmx-white);
    padding: 40px 20px;
    text-align: center;
}

.about-stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.about-stat-item h3 {
    font-size: 2.5rem;
    color: var(--fmx-orange);
    margin: 0;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.location-card {
    background: var(--fmx-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
}

.location-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-info {
    padding: 20px;
    text-align: center;
}

.btn-location {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--fmx-primary);
    /* Usa el azul de tu logo */
    color: var(--fmx-white);
    text-decoration: none;
    border-radius: 5px;
}

/* Espaciado para separar la sección de sedes del recuadro azul superior */
.about-locations {
    margin-top: 80px;
    /* Puedes subir o bajar este número si quieres más o menos espacio */
    margin-bottom: 60px;
    /* También añadimos un poco de espacio por debajo */
}

/* ==================================================================================
                    ESTILOS DE LA PÁGINA "DE LAS ESCUELAS" (SCHOOLS)
   ================================================================================== */
.school-header {
    background: var(--fmx-primary);
    color: var(--fmx-white);
    padding: 60px 0;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 50px 0;
}

.address-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.address-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    margin-top: 50px;
}

.teacher-card {
    text-align: center;
}

.teacher-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--fmx-pink);
}

/* ==================================================================================
                        PÁGINA: TEST DE NIVEL (LEVEL TEST)
   ================================================================================== */

.test-header {
    background-color: var(--fmx-primary);
    color: var(--fmx-white);
    padding: 60px 0;
    text-align: center;
}

.test-content {
    margin: 50px auto;
    max-width: 800px;
    text-align: center;
}

.test-instructions {
    margin-bottom: 40px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
}

.test-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: var(--fmx-white);
    padding: 0;
}

/* Este es el estilo del cuadro gris temporal (puedes borrarlo cuando pongas tu iframe real) */
.test-placeholder {
    width: 100%;
    height: 600px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
}

/* ==================================================================================
                                16. ACTIVIDADES Y EXCURSIONES
   ================================================================================== */

/* Clases de fondos corporativos que faltaban */
.fmx-bg-orange {
    background-color: var(--fmx-orange) !important;
    color: var(--fmx-white) !important;
}

.fmx-bg-forest {
    background-color: var(--fmx-forest) !important;
    color: var(--fmx-white) !important;
}

/* Diseño de la etiqueta del precio */
.activity-price-badge {
    background-color: var(--fmx-primary);
    color: var(--fmx-white);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    /* Bordes totalmente redondeados tipo pastilla */
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(235, 91, 50, 0.3);
    /* Sombra naranja suave */
    min-width: 60px;
    text-align: center;
}

/* Efecto al pasar el ratón por cada actividad de la lista */
.activity-list-item {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--fmx-dark);
}

.activity-list-item:hover {
    background-color: rgba(162, 187, 249, 0.15);
    /* Azul secundario muy transparente */
    transform: translateX(5px);
    /* Se mueve un poquito hacia la derecha */
    color: var(--fmx-primary);
    font-weight: 600;
}

.activity-carousel-img {
    height: 50vh;
    /* Ocupa el 50% de la altura de la pantalla */
    min-height: 400px;
    object-fit: cover;
    width: 100%;
    filter: brightness(0.6);
    /* Oscurece las fotos un 40% para que el texto blanco resalte */
}

.activity-carousel-caption {
    bottom: 30%;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    /* Sombra intensa para el texto */
}

/* Estilos para los mini-carruseles de las tarjetas de actividades */
.card-carousel-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 1rem;
    /* Redondea la esquina superior izquierda */
    border-top-right-radius: 1rem;
    /* Redondea la esquina superior derecha */
}

/* Aseguramos que la tarjeta principal también tenga el mismo radio */
.checkout-card {
    border-radius: 1rem;
}

/* ==================================================================================
                            CABECERA FIJA (DOBLE BARRA)
   ================================================================================== */
#header-fijo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    /* Por encima del contenido, igual que sticky-top de Bootstrap */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Compensación para que el contenido no quede tapado por la cabecera fija */
body {
    padding-top: 120px;
    /* Ajusta este valor a la altura real de tus dos barras */
}

/* En móvil la cabecera es más alta porque los botones se apilan */
@media (max-width: 991.98px) {
    body {
        padding-top: 160px;
        /* Ajusta según cómo quede en tu móvil */
    }
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    /* Esto hace que la imagen recorte el sobrante pero mantenga la proporción */
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
    /* Un pequeño efecto de zoom al pasar el ratón */
}

/* ==================================================================================
                            ESTILOS PARA PRIVACY POLICY
   ================================================================================== */
.privacy-card {
    border: none;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    padding: 3rem;
    background-color: var(--fmx-white);
}

.privacy-lead {
    font-size: 1.25rem;
    color: #003366;
    /* Azul Formex */
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.privacy-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.purpose-block {
    margin-bottom: 3rem;
    padding: 1.5rem;
    border-left: 4px solid #00d4ff;
    background-color: #f8f9fa;
    border-radius: 0 0.5rem 0.5rem 0;
}

.purpose-title {
    font-weight: bold;
    color: #003366;
    margin-bottom: 1rem;
}

.privacy-section-title {
    font-weight: bold;
    color: #003366;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.privacy-hr {
    margin: 3rem 0;
    opacity: 0.1;
}

.rights-list-item {
    background-color: transparent !important;
    border-color: #f8f9fa !important;
    padding: 1rem 0 !important;
    display: flex;
    align-items: flex-start;
}

.rights-icon {
    color: #00d4ff;
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.privacy-alert {
    border: none;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    background-color: rgba(0, 212, 255, 0.1);
}

.privacy-alert-icon {
    color: #00d4ff;
    font-size: 2rem;
    margin-right: 1rem;
}

.privacy-alert-text {
    color: #212529;
    opacity: 0.75;
    font-weight: 500;
}

/* ==================================================================================
                            CONDICIONES DE USO (TERMS OF USE)
   ================================================================================== */
.condiciones-card {
    background-color: var(--fmx-white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(42, 41, 84, 0.05);
}

.condiciones-header {
    background-color: var(--fmx-primary);
    color: var(--fmx-white);
    padding: 60px 20px;
}

.header-line {
    width: 80px;
    height: 4px;
    background-color: var(--fmx-orange);
    margin: 20px auto 0;
}

.section-title {
    color: var(--fmx-primary);
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--fmx-secondary);
}

.legal-text {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

.legal-block {
    animation: fadeInLegal 0.8s ease-out forwards;
}

@keyframes fadeInLegal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .condiciones-header h1 {
        font-size: 1.8rem;
    }

    .condiciones-body {
        padding: 30px 20px !important;
    }
}

/* ==========================================================================
    ESTILOS APARTAMENTOS COMPARTIDOS (MODERNO / FUTURISTA)
   ========================================================================== */

/* 1. HERO SECTION */
.apt-hero-section {
    background: url('../img/madrid/Img_madrid3.webp') center/cover no-repeat fixed;
    /* Ajusta a la foto de un piso si tienes */
    min-height: 55vh;
    display: flex;
    align-items: center;
    border-bottom-left-radius: 50px;
    /* Toque moderno curvo */
    border-bottom-right-radius: 50px;
}

.apt-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 41, 84, 0.9) 0%, rgba(42, 41, 84, 0.5) 100%);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

/* 2. TEXTOS Y GRADIENTES */
.text-gradient-light {
    background: linear-gradient(45deg, #ffffff, var(--fmx-secondary));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-dark {
    background: linear-gradient(45deg, var(--fmx-primary), var(--fmx-orange));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apt-badge-glow {
    background-color: rgba(235, 91, 50, 0.2);
    color: var(--fmx-orange);
    border: 1px solid var(--fmx-orange);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(235, 91, 50, 0.4);
}

/* 3. GLASSMORPHISM (Efecto Cristal) */
.apt-glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    transform: translateY(-40px);
    /* Hace que monte sobre el Hero */
}

/* 4. TARJETAS DE SERVICIOS (Futuristic Hover Grid) */
.apt-feature-card {
    background: var(--fmx-white);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.apt-feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(162, 187, 249, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.apt-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(42, 41, 84, 0.1);
    border-color: rgba(162, 187, 249, 0.4);
}

.apt-feature-card:hover::before {
    opacity: 1;
}

.apt-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fmx-secondary), rgba(162, 187, 249, 0.3));
    box-shadow: 0 10px 20px rgba(162, 187, 249, 0.4);
}

.apt-title-line {
    width: 60px;
    height: 4px;
    background: var(--fmx-orange);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(235, 91, 50, 0.5);
}

/* 5. TARJETAS DE HABITACIONES */
.apt-room-card {
    background: var(--fmx-white);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.apt-room-card:hover {
    box-shadow: 0 15px 30px rgba(42, 41, 84, 0.08);
    transform: translateX(10px);
    border-left: 4px solid var(--fmx-orange);
}

/* 6. CAJA DE NORMAS (Cyberpunk/Neon hint) */
.apt-rules-box {
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(42, 41, 84, 0.3);
}

.apt-glow-circle {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--fmx-orange) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(20px);
    animation: pulseGlow 6s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(-50%, -50%);
        opacity: 0.15;
    }

    100% {
        transform: scale(1.2) translate(-40%, -40%);
        opacity: 0.25;
    }
}

.apt-rules-list li {
    font-size: 1.1rem;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.apt-rules-list li:last-child {
    border-bottom: none;
}

/* 7. BOTÓN GLOW */
.apt-btn-glow {
    box-shadow: 0 0 20px rgba(235, 91, 50, 0.5);
}

.apt-btn-glow:hover {
    box-shadow: 0 0 30px rgba(235, 91, 50, 0.8);
}

/* Estilos para la tabla de precios futurista */
.apt-custom-table {
    border-collapse: separate;
    border-spacing: 0;
}

.apt-custom-table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apt-custom-table tbody td {
    border-color: rgba(42, 41, 84, 0.05);
    vertical-align: middle;
    transition: all 0.3s ease;
}

.apt-custom-table tbody tr:hover td {
    background-color: rgba(162, 187, 249, 0.05);
}

.fmx-text-orange {
    color: var(--fmx-orange) !important;
}

/* ==========================================================================
    MODIFICADOR: TABLA FUTURISTA COMPACTA
   ========================================================================== */

/* Reduce los márgenes externos del contenedor de cristal */
.fmx-glass-container-compact {
    margin: 1rem 0 !important;
}

/* Reduce el espacio interno (padding) de las celdas y ajusta un poco el texto */
.fmx-table-compact thead th,
.fmx-table-compact tbody td {
    padding: 0.6rem 1.2rem !important;
    /* Pasamos de 1.2rem a 0.6rem para hacerla más fina */
    font-size: 0.95rem;
    /* Un texto ligeramente más compacto */
}

/* Ajusta el tamaño del precio para que no desentone al ser más compacta */
.fmx-table-compact .fmx-price-highlight {
    font-size: 1.1rem !important;
}

/* ==========================================================================
                HOME FUTURISTA (ESTILO GLASSMORPHISM + HOVER GRID)
   ========================================================================== */

.futuristic-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.futuristic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
    border: 1px solid rgba(0, 123, 255, 0.5);
}

.hero-glass {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, rgba(0, 123, 255, 0.4) 100%);
    padding: 4rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, #00d4ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-futuristic {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    border: none;
    color: var(--fmx-white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-futuristic:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    transform: scale(1.05);
    color: var(--fmx-white) !important;
}

/* ==========================================================================
        AJUSTES EXTRA PARA CURSOS DE INGLÉS (MODERNO)
   ========================================================================== */

/* Asegura que las tarjetas tengan fondo blanco sobre el hover futurista para buena lectura */
.futuristic-card.bg-white {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
}

/* Rediseño ligero para que el texto principal destaque sobre el degradado oscuro de los textos */
.text-gradient-dark {
    background: linear-gradient(45deg, var(--fmx-primary), #00d4ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
            MENÚ DE NAVEGACIÓN FLOTANTE (CONDICIONES GENERALES)
   ========================================================================== */

/* Efecto de desplazamiento suave en toda la página */
html {
    scroll-behavior: smooth;
}

/* El menú flotante estilo cristal (Glassmorphism) */
.fmx-glass-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(42, 41, 84, 0.08);
    transition: all 0.3s ease;
    z-index: 1020;
    top: 20px; /* Lo separa un poco del techo del navegador */
}

/* Estilo de los enlaces del menú */
.fmx-glass-navbar .nav-link {
    color: var(--fmx-dark, #2a2954) !important;
    font-size: 0.9rem;
    padding: 10px 20px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Efecto Hover (al pasar el ratón) */
.fmx-glass-navbar .nav-link:hover,
.fmx-glass-navbar .nav-link:focus {
    background-color: var(--fmx-primary, #2a2954);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(42, 41, 84, 0.2);
}

/* Compensación de anclaje: 
   Evita que el menú flotante tape el título de la sección al hacer scroll */
.legal-block {
    scroll-margin-top: 100px; 
}

/* Ajustes para móviles */
@media (max-width: 991px) {
    .fmx-glass-navbar {
        border-radius: 15px !important;
        top: 10px;
    }
    .fmx-glass-navbar .nav-link {
        border-radius: 10px;
        margin-bottom: 5px;
    }
}

/* --- COLORES Y HOVER DIFERENTE PARA EL BANNER FINAL --- */
.fmx-cta-banner {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2954 100%) !important; /* Un azul más profundo */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); /* Transición más fluida */
    position: relative;
    overflow: hidden;
}

/* El efecto "Diferente" al hacer Hover */
.fmx-cta-banner:hover {
    transform: scale(1.01); /* En lugar de subir, se expande mínimamente */
    background: linear-gradient(135deg, #2a2954 0%, #eb5b32 150%) !important; /* El naranja "entra" por la esquina */
    box-shadow: 0 20px 50px rgba(235, 91, 50, 0.25) !important; /* Brillo naranja suave */
}
/* Un brillo que recorre el banner al pasar el ratón */
.fmx-cta-banner::before {    
    content: "";    
    position: absolute;    
    top: 0; left: -100%;    
    width: 50%; height: 100%;    
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);    transition: 0.8s;}

.fmx-cta-banner:hover::before {
    left: 150%;
}

.fmx-text-accent {
    color: #f9b7c0 !important; /* Usamos tu rosa de marca para suavizar el texto secundario */
}

/* ==========================================================================
   PÁGINA: TODOS LOS PRECIOS (MORE PRICES)
   ========================================================================== */
.more-prices-section {
    background-color: var(--fmx-light);
    min-height: 80vh;
}

.more-prices-header-line {
    width: 80px;
    height: 4px;
    background: var(--fmx-orange);
    margin: 20px auto;
    border-radius: 2px;
}

.more-prices-table-thead {
    background-color: rgba(0, 0, 0, 0.02);
}

.more-prices-th {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Redondeo para botones tipo "píldora" */
.rounded-pill-fmx {
    border-radius: 50px !important;
}
/* BANNER DE PROMOCIÓN */
.promo-banner-container {
    margin-top: 3rem !important; /* Ajusta este valor si quieres más espacio arriba */
    padding: 30px 0;
}

.promo-badge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.promo-item {
    background: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
}

.promo-item.highlight {
    border: 2px solid #28a745;
    background: #f0fff4;
}

.promo-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    color: var(--fmx-orange);
}

.promo-item.highlight .promo-icon {
    color: #28a745;
}

.promo-text {
    font-size: 1.1rem;
    color: #333;
}

/* ACORDEÓN PERSONALIZADO */
.custom-prices-accordion .accordion-item {
    overflow: hidden;
    border-radius: 12px !important;
}

.custom-prices-accordion .accordion-button {
    background-color: var(--fmx-primary); /* Azul primario */
    color: white;
    padding: 1.5rem;
    font-size: 1.2rem;
}

.custom-prices-accordion .accordion-button:not(.collapsed) {
    background-color: #002244;
    color: var(--fmx-secondary); /* Texto info */
    box-shadow: none;
}

.custom-prices-accordion .accordion-button::after {
    filter: brightness(0) invert(1); /* Flecha blanca */
}

/* TABLA DENTRO DEL ACORDEÓN */
.apt-custom-table tr:last-child td {
    border-bottom: none;
}

.fmx-text-orange {
    color: var(--fmx-orange);
}

.fmx-text-primary {
    color: #003366;
}

/* Caja de llamada a la acción al final */
.cta-box {
    background: #ffffff;
    border: 2px dashed var(--fmx-orange); /* Borde punteado para llamar la atención */
    transition: transform 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-5px);
}

/* Botón Naranja FMX con estilo */
.btn-fmx-orange {
    background-color: var(--fmx-orange);
    border-color: var(--fmx-orange);
    color: white;
    font-size: 1.25rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-fmx-orange:hover {
    background-color: var(--fmx-orange);
    border-color: var(--fmx-orange);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .promo-badge-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    .cta-box {
        padding: 2rem !important;
    }
}

/* ==================================================================================
                    SECCIÓN METODOLOGÍA (DISEÑO EDITORIAL)
   ================================================================================== */

.bg-metodologia-editorial {
    background-color: #f8f6f0; /* Tono crema sacado de la imagen */
}

/* Tipografía con estilo Serif para títulos */
.fw-serif {
    font-family: "Swansea", serif; /* Cambiar a una fuente Serif si tienes cargada una similar */
    letter-spacing: -1px;
}

/* Líneas decorativas al lado de "Metodología" */
.metodologia-line {
    width: 30px;
    height: 1px;
    background-color: var(--fmx-orange);
    opacity: 0.5;
}

.ls-widest {
    letter-spacing: 3px;
}

/* Párrafo descriptivo superior */
.lead-editorial {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 750px;
    color: #4a4a4a !important;
}

/* Estilo de la cuadrícula inferior */
.border-editorial {
    border-color: rgba(42, 41, 84, 0.1) !important;
}

.border-end-editorial {
    border-right: 1px solid rgba(42, 41, 84, 0.1);
}

.small-editorial {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Espaciado extra para secciones grandes */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Responsivo: Quitar bordes derechos en móviles para que no se vea mal al apilar */
@media (max-width: 991.98px) {
    .border-end-editorial {
        border-right: none;
        border-bottom: 1px solid rgba(42, 41, 84, 0.1);
    }
}

/* --- Variables de Color para la Sección --- */
.va-method { 
    --cream: #f8f6f0; 
    --line: rgba(42, 41, 84, 0.35);
    --accent: var(--fmx-orange);
    --primary: var(--fmx-primary);
    --muted: #6c757d;
    background: var(--cream); 
}

/* --- Cuadrícula de Pilares --- */
.va-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.va-pillar {
    padding: 60px 40px;
    border-right: 3px solid var(--line);
    transition: background 400ms ease;
    position: relative;
    overflow: hidden;
}

.va-pillar:last-child { border-right: none; }

/* --- Efectos Hover --- */
.va-pillar:hover { background: #ffffff; }

.va-pillar:hover .va-pillar-line { transform: scaleX(1); }

/* --- Elementos Internos --- */
.va-pillar-num {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 28px;
    letter-spacing: 0.1em;
}

.va-pillar-title {
    font-family: var(--font-main);
    font-size: 26px; 
    font-weight: 500;
    color: var(--primary);
    margin: 0 0 14px;
    line-height: 1.2;
}

.va-pillar-desc {
    font-size: 15px; 
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

/* --- Línea Animada Inferior --- */
.va-pillar-line {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0;
    height: 3px; 
    background: var(--accent);
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

/* --- Adaptación para Móviles --- */
@media (max-width: 991px) {
    .va-pillars {
        grid-template-columns: 1fr;
    }
    .va-pillar {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 40px 30px;
    }
}
/* ==================================================================================
                            PÁGINA DE ÉXITO (SUCCESS)
   ================================================================================== */
.success-page-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-title {
    font-size: 2.5rem;
}
/* ==================================================================================
                            PÁGINA PRINCIPAL DEL BLOG
   ================================================================================== */
/* blog.css - Estilos para la página principal del blog */
/* Contenedor principal */
/* blog-main.css - Estilos originales para la página principal del blog */

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* ============================================ */
/* BOTÓN BLOG - BORDE ANIMADO ELEGANTE          */
/* CON FLECHA DESTELLANTE                        */
/* ============================================ */

.btn-blog-moderno {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #FF6B35;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    position: relative;
    transition: all 0.4s ease;
    border: 2px solid #FF6B35;
    overflow: hidden;
}

/* Líneas decorativas en las esquinas */
.btn-blog-moderno::before,
.btn-blog-moderno::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    transition: all 0.4s ease;
    opacity: 0;
}

.btn-blog-moderno::before {
    top: -2px;
    left: -2px;
    border-top: 2px solid white;
    border-left: 2px solid white;
}

.btn-blog-moderno::after {
    bottom: -2px;
    right: -2px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
}

.btn-blog-moderno:hover {
    background: transparent;
    color: #FF6B35 !important;
    border-color: #FF6B35;
    padding-right: 40px;
    text-decoration: none;
}

.btn-blog-moderno:hover::before,
.btn-blog-moderno:hover::after {
    opacity: 1;
    width: 30px;
    height: 30px;
}

/* Flecha con transición base */
.btn-blog-moderno i {
    transition: all 0.3s ease;
    position: relative;
}

/* ========== EFECTO FLASH EXPLOSIVO ========== */

.btn-blog-moderno:hover i {
    transform: translateX(5px);
    color: #FF6B35;
    animation: flashExplosivo 0.6s ease-in-out infinite;
}

@keyframes flashExplosivo {
    0% { 
        text-shadow: 
            0 0 5px #FF6B35,
            0 0 10px #FF6B35,
            0 0 20px #FF6B35;
        transform: translateX(5px) scale(1);
    }
    50% { 
        text-shadow: 
            0 0 10px #FF6B35,
            0 0 20px #FF6B35,
            0 0 40px #FF8C42,
            0 0 60px #FF6B35;
        transform: translateX(8px) scale(1.3);
    }
    100% { 
        text-shadow: 
            0 0 5px #FF6B35,
            0 0 10px #FF6B35,
            0 0 20px #FF6B35;
        transform: translateX(5px) scale(1);
    }
}
/* ==================================================================================
                        PÁGINA INDIVIDUAL DE CADA BLOG
   ================================================================================== */
/* blog-article.css - Estilos para artículo individual del blog */
/* blog-article.css - Estilos originales para el artículo individual */

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-content h2 {
    color: #2a2954;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-content h3 {
    color: #eb5b32;
    margin-top: 25px;
    margin-bottom: 10px;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content blockquote {
    border-left: 4px solid #eb5b32;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

/* Flywire modal overlay */
iframe[src*="flywire"],
div[class*="flywire"],
.flywire-overlay,
.flywire-modal {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}