body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

.container-portada {
    min-height: 100vh;
    position: relative;
    background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--uesca-primary) 15%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, color-mix(in srgb, var(--uesca-primary-light) 10%, transparent) 0%, transparent 50%),
        linear-gradient(135deg, var(--uesca-light) 0%, var(--uesca-neutral) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 1rem;
}

.portada-fondo-animado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.portada-particula {
    position: absolute;
    background: var(--uesca-accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: flotar 20s linear infinite;
}

.portada-particula:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    animation-delay: 0s;
}

.portada-particula:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 20%;
    animation-delay: 2s;
}

.portada-particula:nth-child(3) {
    width: 3px;
    height: 3px;
    left: 30%;
    animation-delay: 4s;
}

.portada-particula:nth-child(4) {
    width: 5px;
    height: 5px;
    left: 40%;
    animation-delay: 6s;
}

.portada-particula:nth-child(5) {
    width: 4px;
    height: 4px;
    left: 50%;
    animation-delay: 8s;
}

.portada-particula:nth-child(6) {
    width: 6px;
    height: 6px;
    left: 60%;
    animation-delay: 10s;
}

.portada-particula:nth-child(7) {
    width: 3px;
    height: 3px;
    left: 70%;
    animation-delay: 12s;
}

.portada-particula:nth-child(8) {
    width: 5px;
    height: 5px;
    left: 80%;
    animation-delay: 14s;
}

.portada-particula:nth-child(9) {
    width: 4px;
    height: 4px;
    left: 90%;
    animation-delay: 16s;
}

.portada-contenido-principal {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 2rem; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.portada-texto {
    padding-left: 2rem;
    margin-top: 80px;
}

.portada-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--uesca-primary) 10%, transparent);
    color: var(--uesca-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid color-mix(in srgb, var(--uesca-primary) 20%, transparent);
}

.portada-titulo-principal {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--uesca-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.portada-titulo-highlight {
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portada-descripcion-principal {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.portada-acciones {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.portada-boton-cta {
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-accent));
    color: var(--uesca-light);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--uesca-primary) 30%, transparent) !important;
    position: relative;
    overflow: hidden;
}

.portada-boton-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 124, 145, 0.4);
}

.portada-boton-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.portada-boton-cta:hover::before {
    left: 100%;
}

.portada-boton-secundario {
    color: var(--uesca-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.portada-boton-secundario:hover {
    gap: 1rem;
}

.portada-metricas {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.portada-metrica {
    text-align: left;
}

.portada-metrica-numero {
    font-size: 2rem;
    font-weight: 800;
    color: var(--uesca-primary);
    display: block;
    line-height: 1;
}

.portada-metrica-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.portada-visual-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    margin-top: 100px;
}

.portada-tarjeta-principal {
    background: var(--uesca-light);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
    max-width: 450px;
    width: 100%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.portada-icono-principal {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-accent));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 124, 145, 0.3);
}

.portada-icono-principal::before {
    content: '+';
    color: var(--uesca-light);
    font-size: 3rem;
    font-weight: 700;
}

.portada-tarjeta-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uesca-dark);
    text-align: center;
    margin-bottom: 1rem;
}

.portada-tarjeta-descripcion {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.portada-caracteristicas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.portada-caracteristica {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 124, 145, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.portada-caracteristica:hover {
    background: rgba(0, 124, 145, 0.1);
    transform: translateY(-2px);
}

.portada-caracteristica-icono {
    width: 40px;
    height: 40px;
    background: var(--uesca-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uesca-light);
    font-weight: bold;
    flex-shrink: 0;
}

.portada-caracteristica-texto {
    font-size: 0.95rem;
    color: var(--uesca-dark);
    font-weight: 500;
}

.portada-forma-decorativa {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--uesca-accent), var(--uesca-secondary));
    border-radius: 50%;
    opacity: 0.1;
    top: -150px;
    right: -150px;
    z-index: 1;
    animation: rotar 20s linear infinite;
}

.portada-forma-decorativa-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(-45deg, var(--uesca-primary), var(--uesca-accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.08;
    bottom: -100px;
    left: -100px;
    z-index: 1;
    animation: rotar 15s linear infinite reverse;
}

@keyframes flotar {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10%,
    90% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes rotar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.portada-enlaces-flotantes {
    position: fixed;
    bottom: 0;
    left: 0;
    /* bottom: 1.5rem; */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    display: flex;
    gap: 1.5rem;
    background: var(--uesca-neutral);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    /* padding: 1.5rem 2rem; */
    padding: 0.5rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 150;
    /* flex-wrap: wrap; */
    justify-content: center;
    width: 100% !important;

}

.portada-enlace-directo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 90px;
    text-align: center;
}

.portada-enlace-directo:hover {
    background: color-mix(in srgb, var(--uesca-primary) 8%, transparent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--uesca-primary) 15%, transparent);
}

.portada-enlace-icono {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uesca-light);
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.portada-enlace-directo:hover .portada-enlace-icono {
    transform: scale(1.1) rotate(5deg);
}

.portada-enlace-texto {
    font-size: 0.8rem;
    color: var(--uesca-dark);
    font-weight: 600;
    line-height: 1.2;
}

.portada-enlace-directo-escritorio {
    display: none;
}

/* Animaciones de entrada */
.portada-texto {
    animation: aparecer-izquierda 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.portada-visual-container {
    animation: aparecer-derecha 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}



@keyframes aparecer-izquierda {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aparecer-derecha {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aparecer-abajo {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.caruzel-portada-escritorio {
    display: none;
}

/* Mejoras responsive */
@media screen and (min-width: 769px) {
    .caruzel-portada-movil {
        display: none;
    }

    .caruzel-portada-escritorio {
        display: flex;
    }

    .portada-texto {
        margin-top: 0;
    }

    .portada-contenido-principal {
        margin-top: -60px;
    }
}

@media screen and (min-width: 850px) {
    .portada-enlace-directo-escritorio {
        display: flex;
    }
}

@media screen and (min-width: 1080px) {
    .portada-enlaces-flotantes {
        position: absolute;
        width: 900px !important;
        right: 0;
        left: 0;
        margin: auto;
        bottom: 60px;
    }

}

@media (max-width: 1024px) {
    .portada-contenido-principal {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .portada-contenido-principal {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .portada-texto {
        padding-left: 0;
        order: 1;
    }

    .portada-visual-container {
        order: 2;
    }

    .portada-metricas {
        justify-content: center;
    }
}

.portada-carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 20px;
    /* box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15); */
    box-shadow: 0 0px 1px #000;
    background: var(--uesca-light);
    top: -50px;
}

.portada-carousel {
    display: flex;
    position: relative;
    width: 100%;
    height: 450px;
}

.portada-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--uesca-neutral);
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.portada-slide-activa {
    opacity: 1;
}

.portada-slide-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: absolute !important;
    cursor: pointer;
}

.portada-slide:hover .portada-slide-imagen {
    transform: scale(1.05);
}

.portada-slide-contenido {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: var(--uesca-light);
    padding: 4rem 2rem 2rem;
    transition: all 0.8s ease;
}

.portada-slide-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portada-slide-descripcion {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.portada-carousel-indicadores {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

.portada-indicador {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portada-indicador-activo {
    background: var(--uesca-primary);
    transform: scale(1.2);

}

.portada-carousel-boton {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--uesca-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.portada-carousel-boton:hover {
    background: var(--uesca-light);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portada-carousel-prev {
    left: 10px;
}

.portada-carousel-next {
    right: 10px;
}

.portada-tarjeta-principal {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portada-tarjeta-principal:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
}

.portada-icono-principal {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portada-tarjeta-principal:hover .portada-icono-principal {
    transform: scale(1.05) rotate(5deg);
}

/* Mejoras tipográficas */
.portada-titulo-principal {
    font-weight: 900;
    background: linear-gradient(135deg, var(--uesca-dark) 0%, var(--uesca-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Pulso sutil en el botón CTA */
@keyframes pulso-sutil {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(0, 124, 145, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 124, 145, 0.5);
    }
}

.portada-boton-cta {
    animation: pulso-sutil 3s ease-in-out infinite;
}


















/* ESTILO PARA MENSAJE DEL DIRECTOR */
.director-seccion {
    position: relative;
    padding: 6rem 2rem;
    background: radial-gradient(circle at 30% 50%, rgba(134, 47, 46, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(134, 47, 46, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--uesca-light) 0%, var(--uesca-neutral) 100%);
    overflow: hidden;
}

.director-fondo-decorativo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.director-particula-decorativa {
    position: absolute;
    background: var(--uesca-accent);
    border-radius: 50%;
    opacity: 0.05;
    animation: director-flotar 25s linear infinite;
}

.director-particula-decorativa:nth-child(1) {
    width: 3px;
    height: 3px;
    left: 15%;
    top: 20%;
    animation-delay: 0s;
}

.director-particula-decorativa:nth-child(2) {
    width: 5px;
    height: 5px;
    left: 85%;
    top: 30%;
    animation-delay: 3s;
}

.director-particula-decorativa:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 25%;
    top: 70%;
    animation-delay: 6s;
}

.director-particula-decorativa:nth-child(4) {
    width: 6px;
    height: 6px;
    left: 75%;
    top: 80%;
    animation-delay: 9s;
}

.director-forma-decorativa {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--uesca-primary), var(--uesca-accent));
    border-radius: 50%;
    opacity: 0.03;
    top: -200px;
    left: -200px;
    z-index: 1;
    animation: director-rotar 30s linear infinite;
}

.director-forma-decorativa-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(-45deg, var(--uesca-secondary), var(--uesca-accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.04;
    bottom: -150px;
    right: -150px;
    z-index: 1;
    animation: director-rotar 25s linear infinite reverse;
}

.director-contenedor-principal {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.director-header {
    text-align: center;
    margin-bottom: 4rem;
}

.director-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--uesca-primary) 10%, transparent);
    color: var(--uesca-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--uesca-primary) 20%, transparent);
}

.director-titulo {
    font-size: 28.8px;
    font-weight: 800;
    color: var(--uesca-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.director-titulo-highlight {
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.director-subtitulo {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.director-contenido {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.director-imagen-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.director-imagen-marco {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px color-mix(in srgb, var(--uesca-primary) 15%, transparent);
    background: var(--uesca-light);
    padding: 1.5rem;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.director-imagen-marco:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: 0 35px 80px color-mix(in srgb, var(--uesca-primary) 20%, transparent);
}

.director-imagen {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.director-imagen-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--uesca-primary) 95%, transparent),
            color-mix(in srgb, var(--uesca-primary-light) 95%, transparent));
    color: var(--uesca-light);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.director-imagen-marco:hover .director-imagen-overlay {
    transform: translateY(0);
    opacity: 1;
}

.director-cargo {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.director-nombre-overlay {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.director-informacion {
    padding-left: 2rem;
}

.director-nombre-principal {
    font-size: 19.2px;
    font-weight: 800;
    color: var(--uesca-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.director-cargo-principal {
    font-size: 19px;
    color: var(--uesca-secondary);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.director-mensaje {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--uesca-dark);
    margin-bottom: 2rem;
    text-align: justify !important;
    position: relative;
}

.director-mensaje::before {
    content: '"';
    font-size: 4rem;
    color: var(--uesca-accent);
    position: absolute;
    left: -2rem;
    top: -1rem;
    font-weight: 700;
    opacity: 0.3;
}

.director-destacados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.director-destacado {
    background: color-mix(in srgb, var(--uesca-primary) 5%, transparent);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--uesca-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.director-destacado::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            color-mix(in srgb, var(--uesca-primary) 8%, transparent),
            transparent);
    transition: left 0.6s ease;
}

.director-destacado:hover::before {
    left: 100%;
}

.director-destacado:hover {
    background: color-mix(in srgb, var(--uesca-primary) 8%, transparent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--uesca-primary) 10%, transparent);
}

.director-destacado-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--uesca-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.director-destacado-icono {
    width: 8px;
    height: 8px;
    background: var(--uesca-secondary);
    border-radius: 50%;
}

.director-destacado-texto {
    text-align: left;
}


/* Animaciones */
@keyframes director-flotar {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes director-rotar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes director-aparecer {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.director-informacion {
    animation: director-aparecer 1s ease-out 0.2s both;
}

.director-imagen-container {
    animation: director-aparecer 1s ease-out 0.4s both;
}

/* Responsive */
@media (max-width: 1024px) {
    .director-contenido {
        gap: 3rem;
    }

    .director-informacion {
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .director-seccion {
        padding: 4rem 1rem;
    }

    .director-contenido {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .director-informacion {
        padding-left: 0;
        order: 2;
    }

    .director-imagen-container {
        order: 1;
    }

    .director-imagen-marco {
        transform: none;
        max-width: 350px;
        margin: 0 auto;
    }

    .director-imagen {
        width: 100%;
        height: 400px;
    }

    .director-mensaje {
        text-align: left;
    }

    .director-mensaje::before {
        left: -1rem;
    }

    .director-destacados {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .director-seccion {
        padding: 3rem 1rem;
    }

    .director-nombre-principal {
        font-size: 19.2px;
    }

    .director-imagen {
        height: 350px;
    }

    .director-mensaje::before {
        font-size: 3rem;
        left: -0.5rem;
    }
}





















/* Sección Videos */
.videos-seccion {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--uesca-primary) 5%, transparent) 0%,
            color-mix(in srgb, var(--uesca-primary) 2%, transparent) 100%),
        var(--uesca-light);
    overflow: hidden;
}

.videos-fondo-decorativo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.videos-particula-decorativa {
    position: absolute;
    background: var(--uesca-accent);
    border-radius: 50%;
    opacity: 0.08;
    animation: videos-flotar 20s linear infinite;
}

.videos-particula-decorativa:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    top: 15%;
    animation-delay: 0s;
}

.videos-particula-decorativa:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 90%;
    top: 25%;
    animation-delay: 4s;
}

.videos-particula-decorativa:nth-child(3) {
    width: 3px;
    height: 3px;
    left: 20%;
    top: 80%;
    animation-delay: 8s;
}

.videos-particula-decorativa:nth-child(4) {
    width: 5px;
    height: 5px;
    left: 80%;
    top: 70%;
    animation-delay: 12s;
}

.videos-contenedor-principal {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.videos-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: videos-aparecer 1s ease-out both;
}

.videos-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--uesca-primary) 10%, transparent);
    color: var(--uesca-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--uesca-primary) 20%, transparent);
}

.videos-titulo {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--uesca-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.videos-titulo-highlight {
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.videos-subtitulo {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de Videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.videos-card {
    background: var(--uesca-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(134, 47, 46, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid color-mix(in srgb, var(--uesca-primary) 10%, transparent);
    cursor: pointer;
    animation: videos-aparecer 1s ease-out both;
}

.videos-card:nth-child(1) {
    animation-delay: 0.1s;
}

.videos-card:nth-child(2) {
    animation-delay: 0.2s;
}

.videos-card:nth-child(3) {
    animation-delay: 0.3s;
}

.videos-card:nth-child(4) {
    animation-delay: 0.4s;
}

.videos-card:nth-child(5) {
    animation-delay: 0.5s;
}

.videos-card:nth-child(6) {
    animation-delay: 0.6s;
}

.videos-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(134, 47, 46, 0.2);
}

.videos-card-imagen-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--uesca-neutral);
}

.videos-card-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.videos-card:hover .videos-card-imagen {
    transform: scale(1.05);
}

/* Overlay de Play */
.videos-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(134, 47, 46, 0.4);
    z-index: 2;
}

.videos-card:hover .videos-play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(134, 47, 46, 0.5);
}

.videos-play-overlay::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid var(--uesca-light);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

/* Badge de tipo */
.videos-tipo-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(134, 47, 46, 0.9);
    color: var(--uesca-light);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.videos-tipo-badge.video {
    background: rgba(134, 47, 46, 0.9);
}

.videos-tipo-badge.imagen {
    background: rgba(52, 73, 94, 0.9);
}

/* Modal de Video/Imagen */
.videos-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.videos-modal-activo {
    display: flex;
    animation: videos-modal-aparecer 0.3s ease-out;
}

.videos-modal-contenido {
    position: relative;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    background: var(--uesca-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(134, 47, 46, 0.5);
    animation: videos-modal-contenido-aparecer 0.4s ease-out 0.1s both;
}

/* Para videos */
.videos-modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.videos-modal-video-wrapper iframe,
.videos-modal-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Para imágenes */
.videos-modal-imagen-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-height: 90vh;
}

.videos-modal-imagen-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Botón cerrar - DENTRO DEL MODAL (SIEMPRE VISIBLE) */
.videos-modal-cerrar {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--uesca-primary);
    color: var(--uesca-light);
    border: 3px solid var(--uesca-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    z-index: 10002;
}

.videos-modal-cerrar:hover {
    background: var(--uesca-primary-dark);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 10px 30px rgba(134, 47, 46, 0.6);
}

/* Controles del modal */
.videos-modal-controles {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 10000;
}

.videos-modal-control-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--uesca-light);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
}

.videos-modal-control-btn:hover {
    background: var(--uesca-primary);
    transform: scale(1.1);
}

/* Animaciones */
@keyframes videos-flotar {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

@keyframes videos-aparecer {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes videos-modal-aparecer {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes videos-modal-contenido-aparecer {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Botón Ver Más */
.videos-ver-mas {
    text-align: center;
    margin-top: 3rem;
}

.videos-boton-ver-mas {
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-primary-dark));
    color: var(--uesca-light);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(134, 47, 46, 0.3);
}

.videos-boton-ver-mas:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(134, 47, 46, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .videos-seccion {
        padding: 4rem 1rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .videos-titulo {
        font-size: 2rem;
    }

    .videos-modal-contenido {
        width: 95%;
    }

    .videos-modal-cerrar {
        top: -40px;
        width: 40px;
        height: 40px;
    }

    .videos-modal-controles {
        bottom: 1rem;
        right: 1rem;
    }
}










































/* Sección Notas Informativas */
.notas-container {
    min-height: 100vh;
    position: relative;


    background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--uesca-primary) 15%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, color-mix(in srgb, var(--uesca-primary-light) 10%, transparent) 0%, transparent 50%),
        linear-gradient(135deg, var(--uesca-light) 0%, var(--uesca-neutral) 100%);
    padding: 6rem 2rem;
    overflow: hidden;
}

.notas-fondo-animado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.notas-particula {
    position: absolute;
    background: var(--uesca-accent);
    border-radius: 50%;
    opacity: 0.08;
    animation: flotar-notas 25s linear infinite;
}

.notas-particula:nth-child(1) {
    width: 3px;
    height: 3px;
    left: 15%;
    animation-delay: 0s;
}

.notas-particula:nth-child(2) {
    width: 5px;
    height: 5px;
    left: 35%;
    animation-delay: 3s;
}

.notas-particula:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 55%;
    animation-delay: 6s;
}

.notas-particula:nth-child(4) {
    width: 6px;
    height: 6px;
    left: 75%;
    animation-delay: 9s;
}

.notas-particula:nth-child(5) {
    width: 3px;
    height: 3px;
    left: 85%;
    animation-delay: 12s;
}

@keyframes flotar-notas {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10%,
    90% {
        opacity: 0.08;
    }

    50% {
        opacity: 0.15;
    }
}

.notas-forma-decorativa {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--uesca-accent), var(--uesca-secondary));
    border-radius: 50%;
    opacity: 0.06;
    top: 10%;
    right: -200px;
    z-index: 1;
    animation: rotar-notas 30s linear infinite;
}

.notas-forma-decorativa-2 {
    position: absolute;
    width: 250px;
    height: 250px;
    background: linear-gradient(-45deg, var(--uesca-primary), var(--uesca-accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.05;
    bottom: 20%;
    left: -125px;
    z-index: 1;
    animation: rotar-notas 20s linear infinite reverse;
}

@keyframes rotar-notas {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.notas-contenido-principal {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.notas-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: aparecer-arriba 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.notas-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--uesca-primary) 10%, transparent);
    color: var(--uesca-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--uesca-primary) 20%, transparent);
}

.notas-titulo {
    font-size: 28.8px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--uesca-dark) 0%, var(--uesca-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.notas-descripcion {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.notas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.notas-tarjeta {
    background: var(--uesca-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 5px rgba(0, 124, 145, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 124, 145, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    animation: aparecer-escala 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.notas-tarjeta:nth-child(1) {
    animation-delay: 0.1s;
}

.notas-tarjeta:nth-child(2) {
    animation-delay: 0.2s;
}

.notas-tarjeta:nth-child(3) {
    animation-delay: 0.3s;
}

.notas-tarjeta:nth-child(4) {
    animation-delay: 0.4s;
}

/* .notas-tarjeta:hover {
            transform: translateY(-8px);
            box-shadow: 0 0px 60px rgba(0, 124, 145, 0.15);
        } */

.notas-imagen-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.notas-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.notas-tarjeta:hover .notas-imagen {
    transform: scale(1.08);
}

.notas-imagen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--uesca-primary) 10%, transparent) 0%,
            color-mix(in srgb, var(--uesca-primary-light) 50%, transparent) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.notas-tarjeta:hover .notas-imagen-overlay {
    opacity: 1;
}

.notas-categoria {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: color-mix(in srgb, var(--uesca-secondary) 90%, transparent);
    color: var(--uesca-light);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.notas-contenido {
    padding: 2rem;
}

.notas-tarjeta-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--uesca-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.notas-tarjeta-descripcion {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.notas-tarjeta-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.notas-fecha {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.notas-fecha-icono {
    width: 16px;
    height: 16px;
    background: var(--uesca-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uesca-light);
    font-size: 0.7rem;
}

.notas-boton {
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-accent));
    color: var(--uesca-light);
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.notas-boton:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 25px rgba(0, 124, 145, 0.3); */
}

.notas-boton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.notas-boton:hover::before {
    left: 100%;
}

.notas-ver-todas {
    text-align: center;
    margin-top: 4rem;
}

.notas-boton-ver-todas {
    background: rgba(0, 124, 145, 0.1);
    color: var(--uesca-primary);
    border: 2px solid var(--uesca-primary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.notas-boton-ver-todas:hover {
    background: var(--uesca-primary);
    color: var(--uesca-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 124, 145, 0.3);
}

/* Animaciones */
@keyframes aparecer-arriba {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aparecer-escala {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .notas-container {
        padding: 4rem 1rem;
    }

    .notas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .notas-tarjeta-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .notas-contenido {
        padding: 1.5rem;
    }

    .notas-imagen-container {
        height: 180px;
    }
}