/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --secondary: #0d47a1;
    --accent: #4285f4;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-300: #dadce0;
    --gray-600: #5f6368;
    --gray-800: #202124;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(26, 115, 232, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --iesitblue: #1417f3;
    --iesitblue-dark: #0e1079;
    
        /*galeria*/
        --primary-blue: #0076a8;
        --bg-light: #f8f9fa;
        --text-dark: #222222;
        --text-muted: #666666;
        --border-radius: 12px;
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);


}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== SPINNER DE CARGA ===== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

.loader-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid var(--iesitblue);
    border-radius: 50%;
    animation: loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--iesitblue-dark) transparent transparent transparent;
}

.loader-ring div:nth-child(1) { animation-delay: -0.45s; }
.loader-ring div:nth-child(2) { animation-delay: -0.3s; }
.loader-ring div:nth-child(3) { animation-delay: -0.15s; }

@keyframes loader-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 20px;
    color: var(--iesitblue-dark);
    font-weight: 600;
    font-size: 1.2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.logo-img{
    width: 30%;
}




/* ===== =========================== */
/* ===== NAVBAR CON DROPDOWNS ===== */
/* ===== =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    padding: 0.3rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--gray-800);
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--iesitblue);
    background: linear-gradient(135deg, var(--iesitblue), var(--iesitblue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-full {
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--gray-600);
    -webkit-text-fill-color: var(--gray-600);
}

/* ===== NAV LIST ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

/* ===== NAV LINK PRINCIPAL ===== */
.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* ===== DROPDOWN TOGGLE ===== */
.dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover > .dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== DROPDOWN MENU ===== */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    list-style: none;
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.05);
}

.nav-item-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.dropdown-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.dropdown-link:hover::before {
    transform: scaleY(1);
}

/* ===== SUB DROPDOWN ===== */
.sub-dropdown {
    position: relative;
}

.sub-dropdown > .dropdown-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-dropdown > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    margin-left: 5px;
}

.sub-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-dropdown > .dropdown-menu {
    transform: translateX(-10px);
}

/* ===== BTN PRIMARY ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--iesitblue), var(--iesitblue-dark));
    color: var(--white);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 115, 232, 0.4);
}

/* ===== NAV TOGGLE (Mobile) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gray-800);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== RESPONSIVE DROPDOWNS ===== */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        gap: 1.5rem;
        align-items: stretch;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 0.8rem 0;
        width: 100%;
    }

    /* ===== DROPDOWN EN MÓVIL ===== */
    .nav-item-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.8rem 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        background: transparent;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        padding-left: 1rem;
    }

    .nav-item-dropdown.open > .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .dropdown-link {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .dropdown-link:hover {
        background: var(--gray-50);
    }

    .sub-dropdown > .dropdown-menu {
        position: static;
        transform: none;
        margin: 0;
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .sub-dropdown.open > .dropdown-menu {
        max-height: 300px;
        padding: 0.5rem 0;
    }

    .sub-dropdown > .dropdown-link {
        justify-content: space-between;
    }

    .sub-dropdown > .dropdown-link .dropdown-arrow {
        transform: rotate(0);
    }

    .sub-dropdown.open > .dropdown-link .dropdown-arrow {
        transform: rotate(90deg);
    }

    /* Overlay para móvil */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-actions {
        margin-top: 1rem;
        width: 100%;
    }

    .nav-actions .btn-primary {
        display: block;
        text-align: center;
        width: 100%;
    }

    .logo-img{
        width: 15%;
    }



}

@media (max-width: 480px) {
    .logo-full {
        display: none;
    }

    .nav-menu {
        width: 100%;
        max-width: 100%;
        padding: 4rem 1.5rem 2rem;
    }
}



/* ===== MAIN CONTENT ===== */
main {
    flex: 1;
    margin-top: 80px;
    padding: 0;
}

/* ===== SECCIONES ===== */
section {
    padding: 4rem 2rem;
    max-width: 1500px; /* ===== lo cambie de 1200 ===== */
    margin: 0 auto;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}












/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    text-align: center;
}

.card p {
    color: var(--gray-600);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--iesitblue);
    color: var(--gray-300);
    padding: 4rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3,
.footer-column h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-link {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
}

.social-link:hover {
    color: var(--primary);
    background: rgba(26, 115, 232, 0.1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--gray-50);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        transition: var(--transition);
        gap: 2rem;
        align-items: stretch;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 0;
    }

    .nav-actions {
        margin-top: 1rem;
    }

    .btn-primary {
        display: block;
        text-align: center;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
        border-radius: 0 0 30px 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    section {
        padding: 2rem 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-full {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }
}








/* ===== ================================================= ===== */
/* ===== SLIDER HERO - PANTALLA COMPLETA SIN RESTRICCIONES ===== */
/* ===== ======================================================= */

.hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Para móviles modernos */
    overflow: hidden;
    margin-top: -80px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: none;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ===== EFECTO DE PINCEL ===== */
.slide.active .slide-bg {
    animation: brushReveal 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes brushReveal {
    0% {
        clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
        filter: blur(30px) brightness(0.5);
        transform: scale(1.15);
    }
    25% {
        clip-path: polygon(0% 0%, 40% 0%, 20% 100%, 0% 100%);
        filter: blur(20px) brightness(0.6);
    }
    50% {
        clip-path: polygon(0% 0%, 75% 0%, 50% 100%, 0% 100%);
        filter: blur(10px) brightness(0.8);
    }
    75% {
        clip-path: polygon(0% 0%, 95% 0%, 85% 100%, 0% 100%);
        filter: blur(3px) brightness(0.9);
    }
    100% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
        filter: blur(0) brightness(1);
        transform: scale(1);
    }
}

/* Capa de color sobre el fondo */
.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 115, 232, 0.7) 0%,
        rgba(13, 71, 161, 0.6) 5%,
        rgba(26, 115, 232, 0.3) 15%
    );
    z-index: 1;
}

/* Segunda capa de pincel para el color */
.slide.active .slide-bg::before {
    animation: brushColor 1.8s ease forwards;
}

@keyframes brushColor {
    0% {
        clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
    }
    40% {
        clip-path: polygon(0% 0%, 60% 0%, 30% 100%, 0% 100%);
    }
    70% {
        clip-path: polygon(0% 0%, 100% 0%, 60% 100%, 0% 100%);
    }
    100% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

/* ===== CONTENIDO DEL SLIDE - CENTRADO ===== */
.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
}

/* ===== TEXTO QUE CAE ===== */
.slide-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-120px) scale(0.7) rotate(-8deg);
}

.slide.active .slide-title {
    animation: textFall 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

@keyframes textFall {
    0% {
        opacity: 0;
        transform: translateY(-120px) scale(0.7) rotate(-8deg);
        filter: blur(10px);
    }
    40% {
        opacity: 0.7;
        transform: translateY(30px) scale(1.08) rotate(2deg);
        filter: blur(0);
    }
    60% {
        transform: translateY(-10px) scale(0.98) rotate(-1deg);
    }
    80% {
        transform: translateY(5px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
        filter: blur(0);
    }
}

/* ===== SUBTÍTULO ===== */
.slide-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: 5px;
}

.slide.active .slide-subtitle {
    animation: textReveal 1.2s ease 1.4s forwards;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
        letter-spacing: 30px;
        filter: blur(5px);
    }
    50% {
        opacity: 0.5;
        letter-spacing: 8px;
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 5px;
        filter: blur(0);
    }
}

/* ===== BOTONES ===== */
.slide-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
}

.slide.active .slide-buttons {
    animation: buttonsReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s forwards;
}

@keyframes buttonsReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ===== CONTROLES DEL SLIDER ===== */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.slider-btn:active {
    transform: scale(0.9);
}

/* ===== INDICADORES ===== */
.slider-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    padding: 0;
    position: relative;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    width: 40px;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Barra de progreso del auto-play */
.indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    width: 0;
    transition: none;
}

.indicator.active::after {
    animation: progressBar 4s linear forwards;
}

@keyframes progressBar {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-slider {
        height: 100vh;
        height: 100dvh;
        margin-top: -70px;
    }

    .slide-title {
        font-size: 3.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.4rem;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 100vh;
        height: 100dvh;
        margin-top: -65px;
    }

    .slide-title {
        font-size: 2.8rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .slider-controls {
        padding: 0 1rem;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
    }
    
    .slider-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .slider-indicators {
        bottom: 2rem;
        gap: 0.8rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 30px;
    }
    
    .slide-content {
        padding: 1.5rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 100vh;
        height: 100dvh;
        margin-top: -60px;
    }

    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
        margin-bottom: 1.5rem;
    }
    
    .slider-btn {
        width: 38px;
        height: 38px;
    }
    
    .slider-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .slider-indicators {
        bottom: 1.5rem;
        gap: 0.6rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 25px;
    }
    
    .slide-content {
        padding: 1rem;
        width: 98%;
    }
}

/* ===== Ajuste para móviles con notch ===== */
@supports (padding: max(0px)) {
    .hero-slider {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}



/*====================================*/
/*========= MISIÓN Y VISIÓN   =========*/
/*====================================*/


/* ===== MISIÓN Y VISIÓN ===== */
.mision-vision-section {
    background: var(--gray-50);
    border-radius: 30px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    overflow: hidden;
}

.mision-vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.mision-vision-content {
    flex: 1;
}

.mision-vision-content .title-iesit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--iesitblue);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.mision-vision-content .title-iesit::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--iesitblue));
    border-radius: 2px;
}

.mision-vision-content p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1rem;
}

/* ===== IMAGEN LATERAL ===== */
.mision-vision-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 400px;
}

.mv-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.mision-vision-image:hover .mv-image {
    transform: scale(1.05);
}

.mv-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    text-align: center;
}

.mv-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== GALERÍA ===== */
.mision-vision-gallery {
    flex: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(26, 115, 232, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .mision-vision-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mision-vision-image {
        min-height: 300px;
        order: -1;
    }
    
    .mision-vision-gallery {
        order: -1;
    }
    
    .mision-vision-content .title-iesit {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .mision-vision-section {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .mision-vision-content .title-iesit {
        font-size: 1.5rem;
    }
    
    .mision-vision-content p {
        font-size: 0.95rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .mision-vision-image {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .mision-vision-section {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .mision-vision-content .title-iesit {
        font-size: 1.3rem;
    }
    
    .mision-vision-content .title-iesit::after {
        width: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .gallery-item:first-child {
        grid-column: 1 / -1;
        aspect-ratio: 2 / 1;
    }
    
    .mision-vision-image {
        min-height: 200px;
        border-radius: 15px;
    }
    
    .mv-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}



















.tabs-gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  font-family: system-ui, -apple-system, sans-serif;
}

.tabs-header h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tabs-line {
  width: 60px;
  height: 4px;
  background-color: var(--iesitblue);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* Layout Principal */
.tabs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 12px;
}

/* Menú de Tabs (Navegación Móvil) */
.tabs-menu {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  text-align: left;
  flex-shrink: 0;
}

.tab-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary-blue);
}

.tab-btn.active {
  background: var(--iesitblue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(63, 206, 6, 0.25);
}

.tab-icon {
  font-size: 1.1rem;
}

/* Visor de Imágenes - Ajustado para Móvil */
.tabs-viewer {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #111111;
}

.viewer-image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.viewer-image-wrapper img#viewerImage {
  width: 100%;
  height: 240px; /* Altura controlada en móvil */
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Bloque de Información debajo de la imagen en móvil */
.viewer-overlay {
  background: #111111;
  padding: 16px;
  color: #ffffff;
}

.viewer-overlay h3 {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  color: #ffffff;
}

.viewer-overlay p {
  margin: 0 0 14px 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #d1d5db;
}

/* Miniaturas de Galería */
.viewer-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.viewer-thumb {
  width: 60px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.viewer-thumb:hover, .viewer-thumb.active-thumb {
  opacity: 1;
  border-color: var(--primary-blue);
}

/* --- ESTILOS PARA ESCRITORIO (DEKSTOP) --- */
@media (min-width: 900px) {
  .tabs-gallery-section {
    padding: 40px 20px;
  }

  .tabs-header h2 {
    font-size: 1.8rem;
  }

  .tabs-container {
    flex-direction: row;
    padding: 24px;
    height: 580px;
  }

  .tabs-menu {
    flex-direction: column;
    width: 320px;
    min-width: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0;
    padding-right: 8px;
  }

  .tab-btn {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .tabs-viewer {
    flex: 1;
    height: 100%;
  }

  .viewer-image-wrapper {
    height: 100%;
  }

  .viewer-image-wrapper img#viewerImage {
    height: 100%;
  }

  /* En desktop el texto vuelve a flotar sobre la imagen */
  .viewer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 100%);
    padding: 30px 24px 20px 24px;
  }

  .viewer-overlay h3 {
    font-size: 1.5rem;
  }

  .viewer-overlay p {
    font-size: 0.95rem;
    max-width: 600px;
  }
}











/*==========================*/
/* ===== Counter BAND ===== */
/*==========================*/


.counter-band {
  background: linear-gradient(135deg, var(--iesitblue), var(--iesitblue));
  color: #ffffff;
  padding: 40px 20px;
  font-family: system-ui, -apple-system, sans-serif;
}

.counter-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.counter-item {
  text-align: center;
  flex: 1;
  min-width: 180px;
}

.counter-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}




/*===========================*/
/* ===== Founder Tribute ===== */
/*===========================*/

/* --- SECCIÓN HOMENAJE AL FUNDADOR (FULL WIDTH CORREGIDO) --- */
.founder-tribute-section {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  margin-top: 80px;
  margin-bottom: 60px;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

.founder-card {
  position: relative;
  width: 100%;
  /* Degradado actualizado con los nuevos colores azules */
  /*background: linear-gradient(135deg, #0e1079 0%, #1417f3 50%, #1a1ef0 100%);*/
  background-image: url('/assets/img/instalaciones/bg-fundador.webp'); /* Ruta de la imagen del sprite sheet */
  background-size: cover;
  background-position: center;



  padding: 80px 20px; /* Aumentado el padding para más altura */
  min-height: 500px; /* Altura mínima para asegurar el tamaño */
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  display: flex;
  align-items: center;
}



/* Luz difusa ambiental en el fondo - ajustada a los nuevos colores */
.founder-bg-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: rgba(20, 23, 243, 0.25);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}

/* Segunda luz difusa para dar más profundidad */
.founder-bg-glow-2 {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(14, 16, 121, 0.3);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

/* Contenedor interno */
.founder-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  text-align: center;
  width: 100%;
  
  

}

/* Imagen y Badge - más grande */
.founder-image-container {
  position: relative;
  width: 220px;
  height: 270px;
  flex-shrink: 0;
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.founder-img:hover {
  transform: scale(1.03);
}

.founder-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0a0a4e;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 20px;
  border: 2px solid #0e1079;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(20, 23, 243, 0.4);
}

/* Estilos de Textos - más grandes */
.founder-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
   /* background-color: rgba(0, 0, 0, 0.7); */
   background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(57, 57, 58, 0.2));
  padding: 7%;
   
   border-radius: 10px;
  
}

.founder-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f3f3f3;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  

 
   
}

.founder-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.founder-role {
  font-size: 1.1rem;
  color: #b0b3f5;
  margin: 0 0 28px 0;
}

/* Bloque de Cita - más grande */
.founder-quote {
  position: relative;
  margin: 0;
  padding: 25px 30px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid #7b7ef5;
  border-radius: 0 16px 16px 0;
  backdrop-filter: blur(8px);
  max-width: 750px;
  width: 100%;
}

.quote-mark {
  position: absolute;
  top: -15px;
  left: 15px;
  font-size: 4rem;
  color: rgba(123, 126, 245, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-text {
  margin: 0;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: #e2e8f0;
}

/* ===== RESPONSIVE ===== */
/* --- VISTA ESCRITORIO --- */
@media (min-width: 850px) {
  .founder-card {
    padding: 100px 40px;
    min-height: 600px;
  }

  .founder-content {
    flex-direction: row;
    text-align: left;
    gap: 60px;
  }

  .founder-image-container {
    width: 260px;
    height: 320px;
  }

  .founder-text-container {
    align-items: flex-start;
  }

  .founder-name {
    font-size: 2.8rem;
  }

  .founder-role {
    font-size: 1.15rem;
    margin-bottom: 32px;
  }

  .quote-text {
    font-size: 1.2rem;
  }

  .founder-badge {
    font-size: 0.85rem;
    padding: 7px 22px;
  }
}

/* --- TABLET --- */
@media (min-width: 600px) and (max-width: 849px) {
  .founder-card {
    padding: 70px 30px;
    min-height: 550px;
  }

  .founder-content {
    gap: 40px;
  }

  .founder-image-container {
    width: 200px;
    height: 250px;
  }

  .founder-name {
    font-size: 2.2rem;
  }

  .founder-quote {
    max-width: 90%;
  }
}

/* --- MÓVIL --- */
@media (max-width: 599px) {
  .founder-card {
    padding: 60px 15px;
    min-height: 450px;
  }

  .founder-image-container {
    width: 160px;
    height: 200px;
  }

  .founder-name {
    font-size: 1.8rem;
  }

  .founder-role {
    font-size: 0.95rem;
  }

  .founder-quote {
    padding: 20px;
    max-width: 100%;
  }

  .quote-text {
    font-size: 0.95rem;
  }

  .founder-badge {
    font-size: 0.7rem;
    padding: 4px 14px;
  }

  .founder-bg-glow {
    width: 300px;
    height: 300px;
  }

  .founder-bg-glow-2 {
    width: 250px;
    height: 250px;
  }
}

/* --- MÓVILES PEQUEÑOS --- */
@media (max-width: 380px) {
  .founder-card {
    padding: 40px 12px;
    min-height: 400px;
  }

  .founder-image-container {
    width: 130px;
    height: 165px;
  }

  .founder-name {
    font-size: 1.5rem;
  }

  .founder-role {
    font-size: 0.85rem;
  }

  .quote-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}




/* ========================================== */
/* ===== CONVENIOS - OPCIÓN 3 (FLIP) ======== */
/* ========================================== */
.convenios-flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
    gap: 2rem;
    padding: 1rem;
    text-align: center;
}

.flip-card {
    background: transparent;
    height: 190px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.flip-card-front {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
}

.flip-card-front img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.flip-card-back {
    background: linear-gradient(135deg, var(--iesitblue-dark));
    color: white;
    transform: rotateY(180deg);
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
}

.flip-card-back h4 {
    font-size: 0.9rem;
    margin: 0 0 0.2rem;
}

.flip-card-back p {
    font-size: 0.7rem;
    margin: 0;
    opacity: 0.8;
}

.flip-year {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.3rem 0;
}

.flip-icon {
    font-size: 1.5rem;
}





/* linea del tiempo responsive */
/* ======================================== */
/* ===== LÍNEA DE TIEMPO ================== */
/* ======================================== */

.timeline-container {
    position: relative;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Línea central */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--iesitblue));
    border-radius: 4px;
}

/* Items */
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

/* Contenido */
.timeline-content {
    width: 42%;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
}

.timeline-content.left {
    text-align: right;
    margin-right: auto;
}

.timeline-content.right {
    text-align: left;
    margin-left: auto;
}

.timeline-year {
    font-size: 2rem;
    font-weight: 800;
    color: var(--iesitblue);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.3rem 0;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

/* Puntos */
.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--iesitblue);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--iesitblue);
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-spacer {
    width: 42%;
}

/* ======================================== */
/* ===== RESPONSIVE - TABLET ============== */
/* ======================================== */
@media (max-width: 992px) {
    .timeline-content {
        padding: 1.2rem;
    }
    
    .timeline-year {
        font-size: 1.6rem;
    }
}

/* ======================================== */
/* ===== RESPONSIVE - MÓVIL =============== */
/* ======================================== */
@media (max-width: 768px) {
    .timeline-container {
        padding: 1rem 0;
    }

    /* Línea a la izquierda */
    .timeline-line {
        left: 20px;
        transform: none;
        width: 3px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
        margin-bottom: 2rem;
    }

    /* Puntos a la izquierda */
    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
        width: 16px;
        height: 16px;
        position: absolute;
        top: 5px;
    }

    /* Contenido ocupa todo el ancho */
    .timeline-content {
        width: 100%;
        padding: 1.2rem;
        text-align: left !important;
        margin: 0 !important;
    }

    .timeline-content.left {
        text-align: left !important;
    }

    /* Flecha hacia la izquierda */
    .timeline-content::before {
        content: '';
        position: absolute;
        left: -10px;
        top: 20px;
        width: 12px;
        height: 12px;
        background: white;
        border-left: 2px solid var(--gray-200);
        border-bottom: 2px solid var(--gray-200);
        transform: rotate(45deg);
    }

    .timeline-spacer {
        display: none;
    }

    .timeline-year {
        font-size: 1.4rem;
    }

    .timeline-title {
        font-size: 0.95rem;
    }

    .timeline-description {
        font-size: 0.85rem;
    }
}

/* ======================================== */
/* ===== RESPONSIVE - MÓVIL PEQUEÑO ======= */
/* ======================================== */
@media (max-width: 480px) {
    .timeline-item {
        padding-left: 40px;
        margin-bottom: 1.5rem;
    }

    .timeline-line {
        left: 15px;
        width: 2px;
    }

    .timeline-dot {
        left: 15px;
        width: 14px;
        height: 14px;
        border-width: 3px;
        top: 3px;
    }

    .timeline-content {
        padding: 1rem;
        border-radius: 12px;
    }

    .timeline-content::before {
        left: -8px;
        width: 10px;
        height: 10px;
    }

    .timeline-year {
        font-size: 1.2rem;
    }

    .timeline-title {
        font-size: 0.9rem;
    }

    .timeline-description {
        font-size: 0.8rem;
    }
}


/*==============================================================*/
/*===========  ESTILOS GENERALES DE TITULOS PROPIOS ============*/
/*==============================================================*/

.title-top{
      margin-top: 3%;
    text-align: center;
    font-size: 2.5rem;
}
.text-secondary{
       margin-top: 3%;
    text-align: center;
    font-size: 1.2rem;
}
.text-justify{
     margin-top: 3%;
    text-align: justify;
    font-size: 1rem;
}
.text-left{
       margin-top: 3%;
    text-align: left;
    font-size: 1rem;
      margin-bottom: 3%;
}




/*=============================================*/
/*=============LICENCIATURAS==================*/
/*=============================================*/
.licenciaturas-page {
    padding: 40px 0 80px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header de la página */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 30px;
}

.page-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 12px;
    letter-spacing: -1px;
    position: relative;
}

.page-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a5276, #2e86c1);
    margin: 12px auto 0;
    border-radius: 2px;
}

.page-subtitle {
    font-size: 16px;
    color: #5d6d7e;
    max-width: 500px;
    margin: 12px auto 0;
    line-height: 1.5;
}

/* Grid de licenciaturas */
.licenciaturas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px 30px;
    margin-top: 20px;
}

/* Tarjeta con sombra alrededor */
.bandera-card {
    display: block;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.bandera-card:hover {
    transform: translateY(-8px);
    border-color: rgba(46, 134, 193, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.bandera-imagen {
    position: relative;
    width: 100%;
    padding-bottom: 160%; 
    overflow: hidden;
    background: #1a2a3a;
}


.bandera-imagen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bandera-card:hover .bandera-imagen img {
    transform: scale(1.06);
}

.bandera-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 25px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0) 100%
    );
    min-height: 45%;
    display: flex;
    align-items: flex-end;
}
/* ============================================================
    FIN DEL CAMBIO 
   ============================================================ */

.bandera-content {
    width: 100%;
    color: #ffffff;
}

.bandera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.bandera-numero {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #85c1e9;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 8px;
    border-radius: 3px;
}

.bandera-universidad {
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bandera-modalidad {
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bandera-titulo {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.15;
}

.bandera-descripcion {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bandera-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bandera-duracion {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.bandera-ver-programa {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #85c1e9;
    transition: all 0.3s ease;
}

.bandera-card:hover .bandera-ver-programa {
    color: #ffffff;
    gap: 6px;
}

.bandera-icono {
    width: 13px;
    height: 13px;
    transition: transform 0.3s ease;
}

.bandera-card:hover .bandera-icono {
    transform: translateX(3px);
}

/* Sección CTA */
.cta-section {
    margin-top: 60px;
    background: linear-gradient(135deg, #1a2a3a, #1a5276);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
}

.cta-content {
    max-width: 500px;
    margin: 0 auto;
}

.cta-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #1a5276;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #2e86c1;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 134, 193, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 30px;
    }
    
    .licenciaturas-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 25px 15px;
    }
    
    .bandera-overlay {
        padding: 24px 16px 18px;
        min-height: 40%;
    }
    
    .bandera-titulo {
        font-size: 14px;
    }
    
    .bandera-descripcion {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .bandera-numero {
        font-size: 10px;
    }
    
    .bandera-modalidad {
        font-size: 7px;
        padding: 1px 8px;
    }
    
    .bandera-duracion {
        font-size: 9px;
    }
    
    .bandera-ver-programa {
        font-size: 9px;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .licenciaturas-grid {
          grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 25px 15px;
    }
    
    .bandera-overlay {
        padding: 18px 12px 14px;
        min-height: 35%;
    }
    
    .bandera-titulo {
        font-size: 12px;
        margin-bottom: 1px;
    }
    
    .bandera-descripcion {
        font-size: 7px;
        -webkit-line-clamp: 2;
        margin-bottom: 2px;
        line-height: 1.3;
    }
    
    .bandera-header {
        margin-bottom: 1px;
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .bandera-numero {
        font-size: 8px;
        padding: 1px 5px;
    }
    
    .bandera-universidad {
        font-size: 6px;
    }
    
    .bandera-modalidad {
        font-size: 6px;
        padding: 1px 6px;
    }
    
    .bandera-duracion {
        font-size: 7px;
    }
    
    .bandera-ver-programa {
        font-size: 7px;
    }
    
    .bandera-icono {
        width: 10px;
        height: 10px;
    }
    
    .bandera-footer {
        padding-top: 3px;
    }
}




/******************************************
        ESTILOS PARA EL VIDEO
*******************************************/
/******************************************
        ESTILOS PARA EL VIDEO - CORREGIDO
        (Usando la misma técnica que founder-tribute)
*******************************************/

/* ===== SECCIÓN DEL VIDEO (FULL WIDTH) ===== */
.video-appear-section {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
}

.video-appear-wrapper {
  width: 100%;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  background: #000;
}

.video-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== EL VIDEO - CORREGIDO ===== */
.appear-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* ===== OVERLAY SOBRE EL VIDEO ===== */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
  z-index: 2;
}

.video-content {
  width: 90%;
  max-width: 900px;
  padding: 20px;
}

.video-content h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  letter-spacing: 2px;
}

.video-content p {
  font-size: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: 30px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .video-content {
    width: 95%;
    padding: 10px;
  }
  
  .video-content h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn-primary, .btn-secondary {
    width: 90%;
    max-width: 300px;
    text-align: center;
    padding: 15px 20px;
  }
  
  .video-overlay {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .video-content h1 {
    font-size: 2rem;
  }
  
  .video-content p {
    font-size: 1rem;
  }
}