:root {
    --primary-color: #3f51b5;
    /* Índigo principal */
    --primary-dark: #303f9f;
    --primary-light: #7986cb;
    --accent-color: #ffd700;
    /* Dorado para acentos */
    --text-light: #ffffff;
    --text-dark: #212121;
    --background-dark: #1a237e;
    --background-gradient: linear-gradient(135deg, #1a237e 0%, #3f51b5 50%, #7986cb 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

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

/* Header y navegación */
header {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
    text-transform: none;
}

.logo i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Menú de acceso (Estudiantes / Profesores / Administración) */
.nav-acceso {
    position: relative;
}
.nav-acceso-btn {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: filter 0.2s ease;
}
.nav-acceso-btn:hover {
    filter: brightness(1.08);
}
.nav-acceso-btn .chevron {
    font-size: 12px;
    transition: transform 0.2s ease;
}
.nav-acceso.open .nav-acceso-btn .chevron {
    transform: rotate(180deg);
}
.nav-acceso-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    background: #141a3c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 200;
}
.nav-acceso.open .nav-acceso-menu {
    display: block;
}
.nav-acceso-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.nav-acceso-menu a i {
    color: var(--accent-color);
    width: 22px;
    text-align: center;
    font-size: 18px;
}
.nav-acceso-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .nav-acceso {
        width: 100%;
    }
    .nav-acceso-btn {
        width: 100%;
        justify-content: center;
    }
    .nav-acceso-btn .chevron {
        display: none;
    }
    /* En móvil los accesos se muestran siempre (dentro del menú lateral). */
    .nav-acceso-menu {
        position: static;
        display: block;
        min-width: 0;
        margin-top: 10px;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .nav-acceso-menu a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-accent:hover {
    background-color: #e6c200;
}

/* Hero Section */
.hero {
    height: auto;
    min-height: 100vh;
    background: var(--background-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1501281668745-f7f57925c3b4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Animación para el título */
.glowing-text {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }

    to {
        text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.7);
    }
}

/* Estilos para el carrusel de videos destacados */
.trending-videos {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    width: 100%;
}

.trending-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.trending-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.video-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}

.video-item:hover .video-thumbnail video {
    opacity: 1;
}

.video-item:hover .video-embed {
    opacity: 1 !important;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 20px;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-item:hover .play-icon {
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.video-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Responsive para videos */
@media (max-width: 992px) {
    .video-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero-content {
        margin-bottom: 30px;
    }

    .trending-title {
        font-size: 1.5rem;
    }

    .video-carousel {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
}

.modal-content {
    background: var(--background-gradient);
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 16px;
}

.form-group input:focus {
    outline: 2px solid var(--accent-color);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: #1a1a2e;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: rgba(63, 81, 181, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(63, 81, 181, 0.2);
}

.feature-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Call to Action */
.cta {
    padding: 80px 0;
    background: var(--background-gradient);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: #0d1030;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animaciones para elementos */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animación para contenido destacado */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .feature-card {
        padding: 20px;
    }

    .modal-content {
        margin: 20% auto;
    }

    .logo {
        font-size: 18px;
    }

    .logo i {
        font-size: 20px;
    }
}

/* Elementos de efecto visual */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* Nuevo estilo para el icono de usuario */
.user-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-color);
    transition: all 0.3s ease;
}

.user-icon-btn:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.user-icon-btn:hover svg {
    fill: #e6c200;
}

/* Agregar estilos para el menú móvil */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
    margin-right: 15px;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Modificar los estilos responsive existentes */
@media (max-width: 768px) {
    /* El drawer vive dentro de header: este debe estar por encima del overlay,
       o el fondo oscuro captura los toques aunque el menú se vea correctamente. */
    header {
        z-index: 1002;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-container {
        position: relative;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--background-dark);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 150;
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .overlay.active {
        display: block;
        opacity: 1;
    }

    .user-icon-btn {
        z-index: 200;
    }
}

/* Estilos para secciones tipo Netflix */
.content-row {
    padding: 40px 0 20px;
}

.row-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-slider {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.content-slider::-webkit-scrollbar {
    height: 8px;
}

.content-slider::-webkit-scrollbar-track {
    background: transparent;
}

.content-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.content-card {
    min-width: 240px;
    width: 240px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.content-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.content-card-info {
    padding: 10px;
    background-color: rgba(26, 35, 126, 0.9);
}

.content-card-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.content-card-info p {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Estilos para el banner de aula virtual */
.aula-banner {
    background: var(--background-gradient);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    margin-top: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.aula-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.aula-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.aula-text {
    flex: 1;
    min-width: 300px;
}

.aula-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    word-break: break-word;
}

@media (max-width: 768px) {
    .aula-text h2 {
        font-size: 1.8rem;
    }

    .aula-text,
    .aula-image {
        min-width: 100%;
    }
}

.aula-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.aula-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Estilos para la sección de categorías */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.category-card {
    background-color: rgba(63, 81, 181, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.category-icon {
    font-size: 30px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Video Modal Styles */
.video-modal {
    composes: modal-base;
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.video-modal.active {
    display: block;
    visibility: visible;
}

.video-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #3f51b5;
    border-bottom: 2px solid #ffd700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.video-modal-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.video-modal-controls {
    display: flex;
    gap: 15px;
}

.video-modal-button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.video-modal-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffd700;
    transform: translateY(-1px);
}

.video-modal-button i {
    font-size: 1.1em;
}

.video-modal-content {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 60px);
    overflow: hidden;
}

.video-container-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.video-modal-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Bloqueador para el iframe */
.video-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: default;
    background: transparent;
}

/* Estilos base para modales */
.modal-base {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-base.active {
    display: block;
    opacity: 1;
}

/* Heredar estilos base */
.video-modal,
.modal {
    composes: modal-base;
}

/* Visual refresh: mobile first motion and depth */
:root {
    --surface-soft: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.14);
    --gold-glow: rgba(255, 215, 0, 0.34);
    --shadow-soft: 0 18px 45px rgba(6, 10, 38, 0.28);
    --shadow-strong: 0 24px 70px rgba(4, 7, 26, 0.44);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background:
        radial-gradient(circle at 12% 4%, rgba(255, 215, 0, 0.14), transparent 28rem),
        radial-gradient(circle at 92% 12%, rgba(121, 134, 203, 0.30), transparent 24rem),
        linear-gradient(180deg, #11184c 0%, #1a237e 38%, #111636 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
}

header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 16, 56, 0.74);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.nav-container {
    gap: 12px;
}

.logo {
    max-width: min(64vw, 310px);
    font-size: clamp(0.95rem, 4vw, 1.25rem);
    line-height: 1.1;
}

.logo img {
    height: auto;
    max-width: 280px;
    width: 100%;
    flex: 0 0 auto;
}

.nav-links a,
.cta a,
.aula-text a {
    position: relative;
}

.nav-links a::after,
.cta a::after,
.aula-text a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms ease;
}

.nav-links a:hover::after,
.cta a:hover::after,
.aula-text a:hover::after {
    transform: scaleX(1);
}

.btn,
.user-icon-btn {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-color), #ffb300);
    color: var(--text-dark);
}

.btn:hover {
    background: linear-gradient(135deg, #ffe45c, #ffb300);
    box-shadow: 0 14px 34px rgba(255, 179, 0, 0.24);
}

body>section.container[style*="margin-top"] {
    margin-top: 78px !important;
    margin-bottom: 42px !important;
    padding-inline: 14px;
}

.aula-banner {
    isolation: isolate;
    padding: 30px 0 !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 215, 0, 0.24), transparent 18rem),
        linear-gradient(135deg, #1d2a72 0%, #3f51b5 58%, #5f6fd0 100%) !important;
    box-shadow: var(--shadow-strong) !important;
}

.aula-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, transparent 58%);
    transform: translateX(-120%);
    animation: bannerSheen 7s ease-in-out infinite;
}

.aula-content {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
}

.aula-text {
    min-width: 0;
}

.aula-text h2 {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.aula-text p {
    font-size: clamp(1rem, 4.5vw, 1.15rem) !important;
}

.aula-image {
    min-width: 0;
}

.aula-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transform: rotate(-1.5deg);
    transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}

.aula-banner:hover .aula-image img {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48) !important;
}

.content-row {
    padding: 34px 0 10px;
}

.row-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.35rem, 6vw, 1.95rem);
}

.row-title::before {
    content: '';
    width: 6px;
    height: 1.25em;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 18px var(--gold-glow);
    flex: 0 0 auto;
}

.content-slider {
    gap: 16px;
    padding: 12px 4px 18px;
    scroll-snap-type: x mandatory;
}

.content-card {
    min-width: min(78vw, 260px);
    width: min(78vw, 260px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-soft);
    scroll-snap-align: start;
}

.content-card img {
    height: 152px;
    transform: scale(1.01);
    transition: transform 420ms var(--ease-out), filter 420ms ease;
}

.content-card-info {
    min-height: 92px;
    background: linear-gradient(180deg, rgba(26, 35, 126, 0.96), rgba(13, 16, 48, 0.96));
}

.content-card:hover,
.content-card:focus-within {
    transform: translateY(-7px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.content-card:hover img,
.content-card:focus-within img {
    transform: scale(1.08);
    filter: saturate(1.12) contrast(1.04);
}

.features {
    padding: 62px 0;
    background:
        radial-gradient(circle at top, rgba(63, 81, 181, 0.28), transparent 30rem),
        #111636;
}

.section-title {
    margin-bottom: 36px;
}

.section-title h2,
.cta h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
    line-height: 1.1;
}

.features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

.feature-card {
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.20);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 215, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.22);
}

.cta {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.18), transparent 24rem),
        var(--background-gradient);
}

footer {
    background:
        linear-gradient(180deg, rgba(13, 16, 48, 0.96), #07091f);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(8px);
    transition:
        opacity 720ms var(--ease-out),
        transform 720ms var(--ease-out),
        filter 720ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.reveal-on-scroll.animate,
.reveal-on-scroll.active,
.reveal-on-scroll.is-visible,
.fade-in.animate,
.fade-in.active,
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@keyframes bannerSheen {

    0%,
    45% {
        transform: translateX(-120%);
    }

    70%,
    100% {
        transform: translateX(120%);
    }
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-card {
        min-width: 250px;
        width: 250px;
    }
}

@media (min-width: 769px) {
    body>section.container[style*="margin-top"] {
        margin-top: 96px !important;
        margin-bottom: 64px !important;
        padding-inline: 20px;
    }

    .logo img {
        height: auto;
        max-width: 280px;
        width: 100%;
    }

    .aula-banner {
        padding: 60px 0 !important;
        border-radius: 22px !important;
    }

    .aula-content {
        flex-direction: row;
        align-items: center;
    }

    .features {
        padding: 96px 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        right: 0;
        transform: translateX(110%);
        transition: transform 0.32s var(--ease-out);
    }

    .nav-links.active {
        right: 0;
        transform: translateX(0);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Institutional landing sections */
.project-hero {
    position: relative;
    overflow: hidden;
    padding: 164px 0 52px;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 215, 0, 0.18), transparent 22rem),
        linear-gradient(145deg, rgba(10, 16, 54, 0.98), rgba(30, 42, 119, 0.96));
}

.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    opacity: 0.7;
}

.project-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    align-items: center;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--text-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(255, 215, 0, 0.22);
}

.project-hero h1,
.curriculum-copy h2,
.alliance-card h2 {
    font-size: clamp(2.1rem, 12vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: 0;
    margin-bottom: 18px;
}

.project-hero p,
.curriculum-copy p,
.alliance-card p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 4vw, 1.12rem);
    line-height: 1.72;
    margin-bottom: 16px;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 24px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

.project-hero-media {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-strong);
    background: rgba(255, 255, 255, 0.08);
}

.project-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
}

.project-brief-strip {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
    background: #0d1939;
}

.project-brief-strip img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 128px;
    object-fit: contain;
    object-position: center;
}

.institution-section,
.program-overview,
.curriculum-section,
.alliance-section {
    padding: 64px 0;
    position: relative;
}

.institution-section,
.curriculum-section {
    background: #111636;
}

.program-overview {
    background:
        radial-gradient(circle at 85% 0%, rgba(255, 215, 0, 0.12), transparent 24rem),
        #151c4b;
}

.statement-grid,
.program-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.program-visual {
    margin: 26px auto 0;
    max-width: 880px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.08);
}

.program-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
}

.statement-card,
.program-highlight,
.alliance-card,
.curriculum-list {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    box-shadow: var(--shadow-soft);
}

.statement-card,
.program-highlight {
    padding: 24px;
}

.statement-icon,
.program-highlight i {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    margin-bottom: 18px;
    color: var(--accent-color);
    background: rgba(255, 215, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.22);
    font-size: 1.35rem;
}

.statement-card h3,
.program-highlight h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.statement-card p,
.program-highlight p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.68;
    margin-bottom: 10px;
}

.curriculum-grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

.curriculum-list {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.curriculum-list div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
}

.curriculum-list i {
    color: var(--accent-color);
    margin-top: 3px;
}

.alliance-section {
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 215, 0, 0.14), transparent 24rem),
        var(--background-gradient);
}

.alliance-card {
    display: grid;
    gap: 22px;
    padding: 26px;
}

.alliance-badge {
    display: grid;
    place-items: center;
    gap: 14px;
    min-height: 180px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.22);
    text-align: center;
    color: var(--accent-color);
    font-weight: 800;
}

.alliance-badge i {
    font-size: 3rem;
}

@media (min-width: 700px) {

    .statement-grid,
    .program-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-brief-strip {
        margin-top: 32px;
    }
}

@media (min-width: 960px) {
    .project-hero {
        padding: 132px 0 78px;
    }

    .project-hero-grid,
    .curriculum-grid,
    .alliance-card {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    }

    .program-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-hero-media img {
        max-height: 430px;
    }

    .institution-section,
    .program-overview,
    .curriculum-section,
    .alliance-section {
        padding: 92px 0;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.88rem;
    }

    .logo {
        max-width: 300px;
    }
}

/* Harmonize the institutional blocks with the existing visual system */
.project-hero {
    padding: 152px 0 42px;
}

.project-hero h1 {
    font-size: clamp(2rem, 7vw, 3.35rem);
    line-height: 1.06;
}

.curriculum-copy h2,
.alliance-card h2 {
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    line-height: 1.12;
}

.project-hero p,
.curriculum-copy p,
.alliance-card p {
    font-size: clamp(0.96rem, 2.2vw, 1.05rem);
    line-height: 1.62;
}

.section-kicker {
    padding: 6px 13px;
    margin-bottom: 14px;
    font-size: 0.72rem;
    box-shadow: 0 8px 22px rgba(255, 215, 0, 0.22);
}

.institution-section,
.program-overview,
.curriculum-section,
.alliance-section {
    padding: 54px 0;
}

.statement-card,
.program-highlight,
.curriculum-list,
.alliance-card,
.program-visual,
.project-hero-media,
.project-brief-strip {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 46px rgba(4, 7, 26, 0.30);
}

.statement-card::before,
.program-highlight::before,
.curriculum-list::before,
.alliance-card::before,
.program-visual::before,
.project-hero-media::before,
.project-brief-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 34%, rgba(255, 215, 0, 0.08));
    opacity: 0.75;
}

.project-hero-media img,
.project-brief-strip img,
.program-visual img {
    position: relative;
    z-index: 1;
}

.statement-card,
.program-highlight {
    padding: 22px;
    transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out), border-color 360ms ease;
}

.statement-card:hover,
.program-highlight:hover,
.program-visual:hover,
.project-hero-media:hover,
.project-brief-strip:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.28);
    box-shadow: 0 26px 62px rgba(4, 7, 26, 0.42);
}

.statement-icon,
.program-highlight i {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    margin-bottom: 15px;
    font-size: 1.18rem;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.24), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.statement-card h3,
.program-highlight h3 {
    font-size: 1.16rem;
    margin-bottom: 9px;
}

.statement-card p,
.program-highlight p {
    font-size: 0.94rem;
    line-height: 1.58;
}

.curriculum-list {
    padding: 18px;
}

.curriculum-list div {
    padding: 12px;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.20);
}

.alliance-card {
    gap: 18px;
    padding: 24px;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 215, 0, 0.12), transparent 18rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
}

.alliance-badge {
    min-height: 132px;
    padding: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.alliance-badge i {
    font-size: 2.25rem;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.alliance-badge span {
    font-size: 0.95rem;
    line-height: 1.35;
}

.program-visual {
    max-width: 760px;
}

.program-visual img {
    max-height: 340px;
}

.project-brief-strip img {
    max-height: 104px;
}

.reveal-on-scroll {
    transform: translateY(30px) scale(0.965);
    filter: blur(10px);
    transition:
        opacity 760ms var(--ease-out),
        transform 760ms var(--ease-out),
        filter 760ms var(--ease-out),
        box-shadow 360ms var(--ease-out);
}

@media (min-width: 960px) {
    .project-hero {
        padding: 172px 0 56px;
    }

    .institution-section,
    .program-overview,
    .curriculum-section,
    .alliance-section {
        padding: 76px 0;
    }

    .alliance-card {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
        align-items: center;
        padding: 28px;
    }
}

/* Compact type scale pass */
.section-title h2,
.cta h2 {
    font-size: clamp(1.55rem, 5.8vw, 2.2rem);
}

.section-title p,
.cta p {
    font-size: clamp(0.96rem, 2.3vw, 1.08rem);
    line-height: 1.6;
}

.row-title {
    font-size: clamp(1.2rem, 4.8vw, 1.65rem);
}

.aula-text h2 {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
}

.aula-text p {
    font-size: clamp(0.96rem, 2.8vw, 1.06rem) !important;
    line-height: 1.62;
}

.feature-card h3 {
    font-size: 1.18rem;
}

.feature-card p,
.content-card-info p,
.footer-column p,
.footer-column a {
    font-size: 0.94rem;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Rebuilt image content as editable HTML */
.project-brief-strip {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    min-height: 104px;
    background:
        radial-gradient(circle at 88% 50%, rgba(255, 255, 255, 0.08), transparent 14rem),
        linear-gradient(90deg, #07172f, #0c2349);
}

.project-brief-strip>* {
    position: relative;
    z-index: 1;
}

.brief-accent {
    width: 4px;
    align-self: stretch;
    border-radius: 999px;
    background: linear-gradient(180deg, #f0c15a, #b8872f);
    box-shadow: 0 0 18px rgba(240, 193, 90, 0.28);
}

.project-brief-strip p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 2.6vw, 1.28rem);
    line-height: 1.42;
}

.project-brief-strip strong {
    color: #d6aa4c;
    font-weight: 700;
}

.brief-icon {
    display: none;
    color: rgba(255, 255, 255, 0.13);
    font-size: clamp(3rem, 9vw, 5.8rem);
    line-height: 1;
}

.program-visual {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 980px;
    padding: 0;
    background: #f7f4ec;
    color: #101936;
}

.program-visual>* {
    position: relative;
    z-index: 1;
}

.program-board-main {
    padding: 26px 22px 0;
    background:
        radial-gradient(circle at 86% 50%, rgba(15, 25, 54, 0.08), transparent 12rem),
        linear-gradient(180deg, #fbfaf6, #f0ece2);
}

.program-board-main h3,
.program-cost-card h3 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.program-board-main h3 {
    color: #07172f;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(184, 135, 47, 0.52);
}

.offer-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.offer-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(16, 25, 54, 0.14);
    color: #17213d;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(0.98rem, 2.7vw, 1.14rem);
    line-height: 1.25;
}

.offer-list li:last-child {
    border-bottom: 0;
}

.offer-list span,
.cost-item>span,
.start-icon,
.cost-icon {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #d6aa4c;
    background: #07172f;
    box-shadow: inset 0 0 0 2px rgba(214, 170, 76, 0.58), 0 8px 18px rgba(7, 23, 47, 0.18);
}

.offer-list span {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
}

.program-start {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 24px -22px 0;
    padding: 20px 22px;
    background: #07172f;
    color: #ffffff;
    border-top: 2px solid rgba(214, 170, 76, 0.75);
}

.start-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    font-size: 1.25rem;
}

.program-start span,
.program-start em {
    display: block;
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.program-start span {
    font-size: 0.9rem;
}

.program-start strong {
    display: block;
    color: #d6aa4c;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.program-start em {
    font-size: 0.9rem;
}

.program-cost-card {
    padding: 26px 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(214, 170, 76, 0.13), transparent 12rem),
        #07172f;
    color: #ffffff;
    border-top: 2px solid #d6aa4c;
}

.cost-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    color: #07172f;
    background: #d6aa4c;
    font-size: 1.45rem;
}

.program-cost-card h3 {
    color: #d6aa4c;
    text-align: center;
    font-size: clamp(1.3rem, 4vw, 1.75rem);
}

.program-cost-card h3::after {
    content: '';
    display: block;
    width: min(100%, 240px);
    height: 2px;
    margin: 14px auto 18px;
    background: linear-gradient(90deg, transparent, #d6aa4c, transparent);
}

.cost-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.cost-item>span {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.cost-item p {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.9);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.25;
}

.cost-item strong {
    display: block;
    color: #d6aa4c;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 5vw, 1.9rem);
    line-height: 1;
}

.cost-item strong span {
    font-size: 0.72em;
    color: rgba(214, 170, 76, 0.9);
}

.cost-divider {
    height: 1px;
    margin: 20px 0;
    background: rgba(214, 170, 76, 0.42);
}

.program-register-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 24px;
    padding: 12px 16px;
    border-radius: 999px;
    color: #07172f;
    background: linear-gradient(135deg, #e5c064, #b8872f);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.program-register-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

@media (min-width: 720px) {
    .brief-icon {
        display: block;
    }

    .program-visual {
        grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.9fr);
    }

    .program-cost-card {
        border-top: 0;
        border-left: 2px solid #d6aa4c;
    }
}

/* Navegación móvil: el panel debe ser táctil, visible y no quedar bajo el overlay. */
@media (max-width: 768px) {
    .hamburger-menu {
        position: relative;
        z-index: 1002;
        min-width: 48px;
        min-height: 48px;
        margin-right: 0;
        padding: 12px;
        border: 0;
        background: transparent;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links {
        z-index: 1001;
        width: min(86vw, 360px);
        max-width: none;
        min-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 88px 24px calc(32px + env(safe-area-inset-bottom));
        pointer-events: none;
    }

    .nav-links.active {
        pointer-events: auto;
    }

    .overlay {
        z-index: 1000;
    }

    .nav-links a,
    .nav-acceso-btn,
    .nav-acceso-menu a {
        min-height: 52px;
        padding: 14px 12px;
        touch-action: manipulation;
    }

    .nav-acceso-btn {
        font-size: 1rem;
    }
}
