/* =========================================
   HERO SECTION & BENEFICIOS
   ========================================= */
/* .hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 5%;
    background: linear-gradient(to right, rgba(23, 27, 77, 0.9) 0%, rgba(23, 27, 77, 0.4) 100%), url("../../img/hero-bg.jpg") center/cover no-repeat;
    color: var(--white);
    min-height: 85vh;
    position: relative;
    overflow: hidden;
} */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 5%;
    /* Redujimos la opacidad del azul del 0.9 al 0.75, y al final a 0.1 para que la foto respire */
    background: linear-gradient(to right, rgba(23, 27, 77, 0.55) 0%, rgba(23, 27, 77, 0.1) 100%), url("../../img/hero-bg.jpg") center/cover no-repeat;
    color: var(--white);
    min-height: 85vh;
    position: relative;
    overflow: hidden;
}


.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.hero-text {
    max-width: 50%;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

/* .hero-text h1 span {
    background: -webkit-linear-gradient(0deg, var(--yellow), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
} */

.hero-text h1 span {
    color: var(--yellow);
    /* El dorado de tu :root */
    background: none;
    -webkit-text-fill-color: initial;
    /* Reseteamos el degradado anterior */
    font-weight: 700;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-benefits {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--yellow);
}

.benefit-item span {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 100px;
    line-height: 1.3;
}

/* Formulario Hero */
/* .hero-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 16px;
    width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
    z-index: 1;
} */

/* Le damos un toque más limpio y lujoso al formulario */
.hero-form {
    background: rgba(255, 255, 255, 0.95);
    /* Más blanco, menos gris */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 12px;
    /* Bordes un poco menos redondos para más seriedad */
    width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    z-index: 1;
}


.hero-form h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f9fbfc;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--bright-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(36, 69, 188, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--grad-red);
    color: var(--white);
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(173, 39, 46, 0.3);
}

.btn-submit:hover {
    box-shadow: 0 6px 20px rgba(173, 39, 46, 0.5);
    transform: translateY(-2px);
}

/* Partners Bar */
.partners-bar {
    background: var(--white);
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.partner-logo {
    height: 35px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* =========================================
   SECCIÓN DE CARRERAS (TABS DINÁMICOS)
   ========================================= */
.facultades-section {
    padding: 100px 5%;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    background: var(--white);
    color: var(--text-muted);
    border: 2px solid transparent;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(54, 56, 121, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carreras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.carrera-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-left: 5px solid var(--primary-red);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.carrera-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(186, 19, 24, 0.03));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.carrera-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-left-color: var(--bright-blue);
}

.carrera-item:hover::before {
    transform: translateX(0);
}

.carrera-info h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.carrera-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.carrera-icon {
    color: var(--primary-red);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.carrera-item:hover .carrera-icon {
    transform: translateX(5px);
    color: var(--bright-blue);
}

/* =========================================
   SECCIÓN DE TESTIMONIOS Y BLOG
   ========================================= */
.testimonios-section {
    padding: 80px 5%;
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonio-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    text-align: left;
    transition: transform 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.quote-icon {
    color: var(--yellow);
    font-size: 2.5rem;
    font-family: serif;
    line-height: 1;
    margin-bottom: 15px;
}

.testimonio-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #e2e8f0;
    font-style: italic;
}

.testimonio-autor h5 {
    color: var(--yellow);
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.testimonio-autor span {
    color: #94a3b8;
    font-size: 0.85rem;
}


/* =========================================
   CARRUSEL DE TESTIMONIOS (Scroll Infinito)
   ========================================= */
.testimonios-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin-top: 40px;
}

/* Efecto de difuminado a los lados para que las tarjetas "aparezcan" y "desaparezcan" elegantemente */
.testimonios-carousel-wrapper::before,
.testimonios-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonios-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-blue), transparent);
}

.testimonios-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-blue), transparent);
}

/* La pista que se mueve */
.testimonios-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* 35s es la velocidad. Cámbialo si lo quieres más rápido o lento */
    animation: scrollTestimonios 35s linear infinite;
}

/* UX Premium: Pausar el movimiento cuando el usuario pasa el mouse para leer */
.testimonios-carousel-wrapper:hover .testimonios-track {
    animation-play-state: paused;
}

/* La tarjeta (Tus estilos originales con un ancho fijo añadido) */
.testimonio-card {
    width: 380px;
    /* Ancho fijo necesario para el carrusel */
    flex-shrink: 0;
    /* Evita que se aplasten */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

/* Animación Infinita CSS */
@keyframes scrollTestimonios {
    0% {
        transform: translateX(0);
    }

    /* Se desplaza exactamente la mitad del ancho total para un loop perfecto */
    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .testimonio-card {
        width: 300px;
        padding: 30px 20px;
    }

    .testimonios-carousel-wrapper::before,
    .testimonios-carousel-wrapper::after {
        width: 50px;
    }
}

/* aqui termina los testimonios*/

.blog-section {
    padding: 100px 5%;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-img {
    height: 200px;
    background: #e2e8f0;
    position: relative;
}

/* .img-1 {
    background: linear-gradient(45deg, var(--primary-blue), #4a4d9c);
}

.img-2 {
    background: linear-gradient(45deg, var(--purple), #9d4ea8);
}

.img-3 {
    background: linear-gradient(45deg, var(--orange), var(--yellow));
} */

.img-1 {
    background: #e2e8f0;
}

/* Gris perla */
.img-2 {
    background: #cbd5e1;
}

/* Gris sutil */
.img-3 {
    background: #f1f5f9;
}

/* Gris muy claro */

/* .blog-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
} */

/* Hacemos que la etiqueta de categoría se vea más premium */
.blog-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-red);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 4px;
    /* Bordes más rectos, estilo revista de moda */
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    /* Espaciado para dar toque de lujo */
    text-transform: uppercase;
}


.blog-content {
    padding: 25px;
}

.blog-content h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-link {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-link:hover {
    color: var(--alt-red);
    text-decoration: underline;
}

/* =========================================
   RESPONSIVE DESIGN (Home)
   ========================================= */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        gap: 50px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-form {
        width: 100%;
        max-width: 500px;
    }

    .hero-benefits {
        flex-wrap: wrap;
        justify-content: center;
    }

    .benefit-item {
        width: 45%;
    }

    .tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }
}


/* =========================================
   NUEVA SECCIÓN: NUESTROS LOCALES
   ========================================= */
.locales-section {
    padding: 100px 5%;
    background-color: var(--white);
    /* Fondo blanco para contrastar con las otras secciones grises */
}

.locales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.local-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(23, 27, 77, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border-bottom: 4px solid transparent;
}

.local-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(23, 27, 77, 0.12);
    border-bottom-color: var(--primary-red);
}

.local-img {
    height: 240px;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.local-card:hover .local-img {
    transform: scale(1.05);
    /* Zoom sutil a la foto al hacer hover */
}

/* Contenedor para que el zoom no se salga de la tarjeta */
.local-img-wrapper {
    overflow: hidden;
    position: relative;
}

/* Degradado elegante sobre la foto para que no se vea plana */
.local-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(23, 27, 77, 0.8), transparent);
    pointer-events: none;
}

/* Etiqueta flotante del nombre de la ciudad */
.local-city {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.local-info {
    padding: 30px 25px;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.local-info h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.local-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.local-icon {
    color: var(--primary-red);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.local-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.local-link:hover {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

/* Fondos temporales elegantes simulando fachadas de sedes */
.bg-sede-1 {
    background-image: url('https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
}

.bg-sede-2 {
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
}

.bg-sede-3 {
    background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
}

/* =========================================
   SECCIÓN PREMIUM: NUESTROS LOCALES (Estilo Editorial)
   ========================================= */
.locales-premium-section {
    padding: 120px 5%;
    background-color: var(--white);
    overflow: hidden;
}

.locales-premium-section .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.locales-premium-section .section-header h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

/* Fila individual de cada Sede */
.local-row {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Invertir el orden para la segunda sede (Asimetría) */
.local-row.reverse {
    flex-direction: row-reverse;
}

/* Caja de la Imagen (Ocupa el 60% del ancho) */
.local-img-box {
    width: 60%;
    height: 450px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(23, 27, 77, 0.1);
}

.local-img-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.local-row:hover .local-img-bg {
    transform: scale(1.06);
    /* Zoom lento y elegante */
}

/* Caja de Información (Ocupa el 45% y se SUPERPONE a la imagen) */
.local-info-box {
    width: 45%;
    background: var(--white);
    padding: 60px 50px;
    margin-left: -5%;
    /* Aquí ocurre la magia de la superposición */
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--primary-blue);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.local-row.reverse .local-info-box {
    margin-left: 0;
    margin-right: -5%;
    /* Superposición inversa */
}

/* Tipografía y detalles de la tarjeta */
.local-eyebrow {
    color: var(--yellow);
    /* Tu dorado elegante */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.local-info-box h3 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.local-info-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Icono sutil */
.local-pin {
    color: var(--primary-red);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Enlace estilo "Alta Costura" */
.local-link-editorial {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.local-link-editorial::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.local-link-editorial:hover {
    color: var(--primary-red);
}

.local-link-editorial:hover::after {
    width: 100%;
}

/* Imágenes de ejemplo (fachadas modernas) */
.bg-sede-lima {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80');
}

.bg-sede-hco {
    background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80');
}

/* =========================================
   SECCIÓN PREMIUM: NUESTROS LOCALES (Estilo Editorial)
   ========================================= */
.locales-premium-section {
    padding: 120px 5%;
    background-color: var(--white);
    overflow: hidden;
}

.locales-premium-section .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.locales-premium-section .section-header h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

/* Fila individual de cada Sede */
.local-row {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Invertir el orden para la segunda sede (Asimetría) */
.local-row.reverse {
    flex-direction: row-reverse;
}

/* Caja de la Imagen (Ocupa el 60% del ancho) */
.local-img-box {
    width: 60%;
    height: 450px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(23, 27, 77, 0.1);
}

.local-img-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.local-row:hover .local-img-bg {
    transform: scale(1.06);
    /* Zoom lento y elegante */
}

/* Caja de Información (Ocupa el 45% y se SUPERPONE a la imagen) */
.local-info-box {
    width: 45%;
    background: var(--white);
    padding: 60px 50px;
    margin-left: -5%;
    /* Aquí ocurre la magia de la superposición */
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--primary-blue);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.local-row.reverse .local-info-box {
    margin-left: 0;
    margin-right: -5%;
    /* Superposición inversa */
}

/* Tipografía y detalles de la tarjeta */
.local-eyebrow {
    color: var(--yellow);
    /* Tu dorado elegante */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.local-info-box h3 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.local-info-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Icono sutil */
.local-pin {
    color: var(--primary-red);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Enlace estilo "Alta Costura" */
.local-link-editorial {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.local-link-editorial::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.local-link-editorial:hover {
    color: var(--primary-red);
}

.local-link-editorial:hover::after {
    width: 100%;
}

/* Imágenes de ejemplo (fachadas modernas) */
.bg-sede-lima {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80');
}

.bg-sede-hco {
    background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80');
}

/* =========================================
   RESPONSIVE PARA MÓVILES (Romper la superposición)
   ========================================= */
@media (max-width: 992px) {

    .local-row,
    .local-row.reverse {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .local-img-box {
        width: 100%;
        height: 300px;
        border-radius: 8px;
    }

    .local-info-box {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-top: -60px;
        /* Se superpone desde abajo en móviles */
        padding: 40px 30px;
    }

    .local-row.reverse .local-info-box {
        margin-right: auto;
    }

    .local-info-box h3 {
        font-size: 1.8rem;
    }
}

/* =========================================
   SECCIÓN DE CARRERAS (ESTILO EDITORIAL DE LUJO)
   ========================================= */
.facultades-lux-section {
    padding: 120px 5%;
    background-color: var(--bg-light);
    /* Fondo perla/gris muy suave */
}

.facultades-lux-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.facultades-lux-section .section-header h2 {
    font-size: 3.2rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

/* --- Navegación de Pestañas Premium --- */
.tabs-nav-lux {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(23, 27, 77, 0.1);
    padding-bottom: 15px;
}

.tab-btn-lux {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    position: relative;
    padding-bottom: 15px;
    transition: color 0.3s ease;
}

.tab-btn-lux:hover {
    color: var(--primary-blue);
}

.tab-btn-lux.active {
    color: var(--primary-red);
}

/* La línea dorada que subraya la pestaña activa */
.tab-btn-lux::after {
    content: '';
    position: absolute;
    bottom: -16px;
    /* Alineado con el border-bottom del contenedor */
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--yellow);
    /* Tu dorado elegante */
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-btn-lux.active::after {
    width: 100%;
}

/* --- Contenedor de las Tarjetas --- */
.tab-content {
    display: none;
    animation: fadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-content.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carreras-grid-lux {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Tarjeta de Carrera (Estilo Revista) --- */
.carrera-card-lux {
    position: relative;
    height: 420px;
    /* Tarjetas altas y elegantes */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(23, 27, 77, 0.1);
    /* Borde inferior dorado sutil */
    border-bottom: 4px solid var(--yellow);
}

/* Imagen de fondo */
.carrera-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

/* Degradado Oscuro (Azul Marino a Transparente) para que el texto se lea perfecto */
.carrera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(23, 27, 77, 0.95) 0%, rgba(23, 27, 77, 0.4) 50%, transparent 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

/* Contenido de texto */
.carrera-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px 30px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.carrera-content h4 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    transition: transform 0.4s ease;
}

.carrera-content span {
    color: var(--yellow);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.carrera-link {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    /* Oculto por defecto */
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carrera-link i {
    color: var(--primary-red);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* --- Efectos Hover (La Magia) --- */
.carrera-card-lux:hover .carrera-bg {
    transform: scale(1.1);
    /* Zoom de la foto */
}

.carrera-card-lux:hover .carrera-overlay {
    background: linear-gradient(to top, rgba(186, 19, 24, 0.9) 0%, rgba(23, 27, 77, 0.6) 60%, transparent 100%);
    /* El fondo se tiñe ligeramente de tu rojo carmesí */
}

.carrera-card-lux:hover .carrera-content h4 {
    transform: translateY(-5px);
}

.carrera-card-lux:hover .carrera-link {
    opacity: 1;
    /* Aparece el enlace */
    transform: translateY(0);
}

.carrera-card-lux:hover .carrera-link i {
    transform: translateX(5px);
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .tabs-nav-lux {
        gap: 15px;
    }

    .tab-btn-lux {
        font-size: 0.9rem;
        padding-bottom: 10px;
    }

    .carrera-card-lux {
        height: 350px;
    }
}