/* ===========================
   ESTILOS MODERNOS CON TAILWIND
   Instituto Superior Tecnológico América
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

.header[data-sr-id],
.nav-link[data-sr-id],
.dropdown-menu[data-sr-id] {
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
:root {
    --color-primary-blue: #2366C5;
    --color-primary-red: #E03A3A;
    --color-primary-green: #10BE46;
    --color-primary-yellow: #FFD700;
    --color-white: #FFFFFF;
    --color-dark: #1A1A1A;
    --color-gray: #666666;
    --color-light-gray: #F8F9FA;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   HEADER Y NAVEGACIÓN
   =========================== */
.header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(104, 186, 237, 1) 76%, rgba(45, 107, 207, 1) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo h1 {
    color: white;
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.5px;
    z-index: 1001;
    position: relative;
}

.logo img {
    width: 230px;
    height: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-link {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: #FFD700;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #FFD700;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* DROPDOWN MODERNO */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.75rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, #2366C5 0%, #1a4a96 100%);
    color: white;
    padding-left: 2rem;
}

/* BOTONES VIRTUALES EN HEADER */
.btn-admision {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem !important;
    background: linear-gradient(135deg, #E03A3A 0%, #c92a2a 100%);
    color: white !important;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 58, 58, 0.3);
    border: 2px solid transparent;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
}

.btn-admision:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 58, 58, 0.4);
    background: linear-gradient(135deg, #c92a2a 0%, #a61e1e 100%);
}

.btn-admision::after {
    display: none;
}

/* Botón específico para Biblioteca Virtual */
.nav-menu li:last-child .btn-admision {
    background: linear-gradient(135deg, #10BE46 0%, #0ea53a 100%);
    box-shadow: 0 4px 15px rgba(16, 190, 70, 0.3);
}

.nav-menu li:last-child .btn-admision:hover {
    background: linear-gradient(135deg, #0ea53a 0%, #0c8a30 100%);
    box-shadow: 0 8px 25px rgba(16, 190, 70, 0.4);
}

/* ...existing code... */

/* RESPONSIVE - MENU MÓVIL */
@media (max-width: 992px) {
    .navbar .container {
        flex-wrap: nowrap;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, #2366C5 0%, #1a4a96 100%);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
    }

    .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.15);
        margin: 0;
        border-radius: 0;
        padding: 0;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.95rem;
        padding: 12px 20px 12px 40px;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 45px;
    }

    .btn-admision {
        margin: 10px 0;
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    /* Overlay cuando el menú está abierto */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* Prevenir scroll cuando el menú está abierto */
    body.menu-open {
        overflow: hidden;
    }
}

/* ===========================
   HERO SLIDER MODERNO
   =========================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 3rem;
    animation: slideContentIn 0.8s ease-out;
}

.slide-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    letter-spacing: -1px;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    line-height: 1.6;
}

/* Controles del Slider */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: white;
}

.slider-control:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slider-control.prev {
    left: 2.5rem;
}

.slider-control.next {
    right: 2.5rem;
}

/* Indicadores */
.slider-indicators {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--color-primary-yellow);
    transform: scale(1.4);
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Animación de entrada del contenido */
@keyframes slideContentIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   HERO SECTION MODERNO (BACKUP)
   =========================== */
.hero {
    background: #f7f6f6 100%;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 22px;
    color: var(--color-gray);
    margin-bottom: 36px;
    line-height: 1.5;
    font-weight: 500;
}

.hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===========================
   BOTONES MODERNOS
   =========================== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-blue), #830000);
    color: var(--color-white);
    box-shadow: 0 6px 25px rgba(35, 102, 197, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(35, 102, 197, 0.4);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary-blue);
    border: 2px solid var(--color-primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--color-primary-red);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(35, 102, 197, 0.3);
}

.btn-carrera {
    background: linear-gradient(135deg, var(--color-primary-blue), #1a4fa0);
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(35, 102, 197, 0.2);
}

.btn-carrera:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(35, 102, 197, 0.3);
}

/* ===========================
   SECCIONES CON CARDS
   =========================== */
.caracteristicas,
.carreras,
.testimonios {
    padding: 100px 0;
    background: var(--color-white);
}

.caracteristicas {
    background: var(--color-light-gray);
}

.caracteristicas h2,
.carreras h2,
.testimonios h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.grid-caracteristicas,
.grid-carreras {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 4 columnas para pantallas >= 1280px (incluye 1366x768 y 1920x1080) */
@media (min-width: 1280px) {
    .grid-caracteristicas,
    .grid-carreras {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.grid-testimonios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.caracteristica-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease-out both;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.caracteristica-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.caracteristica-card:hover::before {
    transform: scaleX(1);
}

.caracteristica-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
    border-color: #3b82f6;
}

/* Imagen con overlay */
.caracteristica-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.caracteristica-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.caracteristica-card:hover img {
    transform: scale(1.15);
}

.caracteristica-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(59, 130, 246, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caracteristica-card:hover .caracteristica-card-overlay {
    opacity: 1;
}

.caracteristica-card-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.caracteristica-card:hover .caracteristica-card-icon {
    transform: scale(1) rotate(0deg);
}

.caracteristica-card-icon svg {
    width: 35px;
    height: 35px;
    color: #1e3a8a;
}

/* Contenido de la card */
.caracteristica-card-content {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.caracteristica-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 14px;
    line-height: 1.3;
    position: relative;
    transition: color 0.3s ease;
}

.caracteristica-card:hover h3 {
    color: #1e40af;
}

.caracteristica-card p {
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

/* Badge decorativo */
.caracteristica-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.caracteristica-card:hover .caracteristica-card-badge {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    transform: translateX(5px);
}

.caracteristica-card-badge svg {
    width: 14px;
    height: 14px;
}

/* Efecto de brillo */
.caracteristica-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.caracteristica-card:hover::after {
    left: 100%;
}

/* Estilos para carreras (mantener compatibilidad) */
.carrera-card {
    background: var(--color-white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease-out both;
}

.carrera-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-blue);
}

.carrera-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.carrera-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.carrera-card p {
    color: var(--color-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* TESTIMONIOS */
.testimonio-card {
    background: linear-gradient(135deg, var(--color-white), var(--color-light-gray));
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease-out both;
}

.testimonio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-blue);
}

.testimonio-texto {
    font-size: 18px;
    font-style: italic;
    color: var(--color-dark);
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 500;
}

.testimonio-autor {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary-blue);
}

.card {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 240px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card svg {
    width: 48px;
    fill: #333;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card_content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45 deg);
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
    opacity: 01;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card:hover .card_content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.card_title {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

.card_description {
    margin: 8px 0 0;
    font-size: 13px;
    color: #777;
    line-height: 1.3;
}

.card:hover svg {
    scale: 0;
    transform: rotate(-45deg);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 30px;
    margin-bottom: 40px;
}

.autoridades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.card-autoridades {
    width: 200px;
    height: 280px;
    background: linear-gradient(145deg, #1e3a5f 0%, #2a4d7c 100%);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(35, 102, 197, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
}

.card-autoridades:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(35, 102, 197, 0.35);
}

.card-autoridades .card-border-top {
    width: 70%;
    height: 5px;
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
    margin: 0 auto 20px auto;
    border-radius: 0 0 10px 10px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.card-autoridades span {
    font-weight: 600;
    color: white;
    text-align: center;
    display: block;
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.3;
    padding: 0 5px;
}

.card-autoridades .job {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
    padding: 0 10px;
}

.card-autoridades .img {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 15px;
    margin: 25px auto 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
}

.card-autoridades:hover .img {
    transform: scale(1.05);
}

.card-autoridades .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
    background: #c3d7fd;
    padding: 100px 0;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.inner {
    padding: 14px 25px;
    border-radius: 14px;
    color: #fff;
    z-index: 3;
    position: relative;
    background: radial-gradient(circle 80px at 80% -50%, #777777, #0f1111);
}

.inner::before {
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 14px;
    background: radial-gradient(circle 60px at 0% 100%,
            #00e1ff1a,
            #0000ff11,
            transparent);
    position: absolute;
}

/* FOOTER STYLES */
.footer {
    background: linear-gradient(90deg,rgba(255, 255, 255, 1) 0%, rgba(92, 137, 209, 1) 48%, rgb(61, 114, 184) 99%);
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
}

.footer-logo-section {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo .logo-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 2px;
}

.footer-logo .logo-text p {
    font-size: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-description {
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000000;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #000000;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact ul li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-social {
    text-align: left;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    position: relative;
    text-align: center;
    padding: 30px 0;
}

.footer-bottom-circle {
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #002b88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgb(247, 197, 197);
}

.footer-bottom-circle span {
    font-size: 28px;
    font-weight: 700;
    color: #f89b29;
}


/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ===========================
   ANIMACIÓN DE CARGA MODERNA
   =========================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fdfdfd 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-wrapper.hide {
    opacity: 0;
    visibility: hidden;
}

/* From Uiverse.io by SchawnnahJ */
.loader {
    position: relative;
    width: 2.5em;
    height: 2.5em;
    transform: rotate(165deg);
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 0.5em;
    height: 0.5em;
    border-radius: 0.25em;
    transform: translate(-50%, -50%);
}

.loader:before {
    animation: before8 2s infinite;
}

.loader:after {
    animation: after6 2s infinite;
}

@keyframes before8 {
    0% {
        width: 0.5em;
        box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
    }

    35% {
        width: 2.5em;
        box-shadow: 0 -0.5em rgba(225, 20, 98, 0.75), 0 0.5em rgba(111, 202, 220, 0.75);
    }

    70% {
        width: 0.5em;
        box-shadow: -1em -0.5em rgba(225, 20, 98, 0.75), 1em 0.5em rgba(111, 202, 220, 0.75);
    }

    100% {
        box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
    }
}

@keyframes after6 {
    0% {
        height: 0.5em;
        box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
    }

    35% {
        height: 2.5em;
        box-shadow: 0.5em 0 rgba(61, 184, 143, 0.75), -0.5em 0 rgba(233, 169, 32, 0.75);
    }

    70% {
        height: 0.5em;
        box-shadow: 0.5em -1em rgba(61, 184, 143, 0.75), -0.5em 1em rgba(233, 169, 32, 0.75);
    }

    100% {
        box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
    }
}

/* ===========================
   ANIMACIONES
   =========================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delays para animaciones */
.caracteristica-card:nth-child(1) {
    animation-delay: 0.1s;
}

.caracteristica-card:nth-child(2) {
    animation-delay: 0.2s;
}

.caracteristica-card:nth-child(3) {
    animation-delay: 0.3s;
}

.caracteristica-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsive para características mejoradas */
@media (max-width: 1024px) {
    .caracteristica-card-img-wrapper {
        height: 220px;
    }

    .caracteristica-card h3 {
        font-size: 1.25rem;
    }

    .caracteristica-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .caracteristica-card {
        border-radius: 16px;
    }

    .caracteristica-card-img-wrapper {
        height: 200px;
    }

    .caracteristica-card-content {
        padding: 22px 20px;
    }

    .caracteristica-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .caracteristica-card p {
        font-size: 0.92rem;
        margin-bottom: 16px;
    }

    .caracteristica-card-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .caracteristica-card-icon {
        width: 60px;
        height: 60px;
    }

    .caracteristica-card-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .caracteristica-card-img-wrapper {
        height: 180px;
    }

    .caracteristica-card h3 {
        font-size: 1.1rem;
    }

    .caracteristica-card p {
        font-size: 0.9rem;
    }

    .caracteristica-card-icon {
        width: 50px;
        height: 50px;
    }

    .caracteristica-card-icon svg {
        width: 26px;
        height: 26px;
    }
}

.carrera-card:nth-child(1) {
    animation-delay: 0.1s;
}

.carrera-card:nth-child(2) {
    animation-delay: 0.2s;
}

.carrera-card:nth-child(3) {
    animation-delay: 0.3s;
}

.carrera-card:nth-child(4) {
    animation-delay: 0.4s;
}

.testimonio-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonio-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonio-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    /* Slider responsive */
    .hero-slider {
        height: 550px;
    }

    .slide-content h1 {
        font-size: 3rem;
    }

    .slide-content p {
        font-size: 1.25rem;
    }

    /* Grid ya definido en estilos base */

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    /* Slider móvil */
    .hero-slider {
        height: 500px;
    }

    .slide-content {
        padding: 2rem 1.5rem;
    }

    .slide-content h1 {
        font-size: 2.25rem;
    }

    .slide-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .slider-control {
        width: 50px;
        height: 50px;
    }

    .slider-control.prev {
        left: 1rem;
    }

    .slider-control.next {
        right: 1rem;
    }

    .slider-indicators {
        bottom: 1.5rem;
    }

    .indicator {
        width: 12px;
        height: 12px;
    }

    .grid-caracteristicas,
    .grid-carreras,
    .grid-testimonios {
        grid-template-columns: 1fr;
    }

    .caracteristicas h2,
    .carreras h2,
    .testimonios h2 {
        font-size: 36px;
    }

    .cta-section h2 {
        font-size: 36px;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    /* Slider pantallas pequeñas */
    .hero-slider {
        height: 450px;
    }

    .slide-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .slider-control {
        width: 45px;
        height: 45px;
    }

    .slider-control.prev {
        left: 0.75rem;
    }

    .slider-control.next {
        right: 0.75rem;
    }

    .caracteristicas,
    .carreras,
    .testimonios {
        padding: 60px 0;
    }

    .cta-section {
        padding: 60px 0;
    }
}

/* ===========================
   PÁGINA DE HISTORIA
   =========================== */

/* Banner Hero Simple */
.hero-simple {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 120px 0;
    text-align: left;
    color: white;
    min-height: 300px;
}

.hero-simple h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb-section {
    background: #f3f4f6;
    padding: 15px 0;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    display: flex;
    align-items: center;

    gap: 10px;
    font-size: 0.95rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1e3a8a;
}

.breadcrumb span {
    color: #9ca3af;
}

.breadcrumb-active {
    color: #1e3a8a !important;
    font-weight: 500;
}

/* Contenido de Historia */
.historia-content {
    padding: 60px 0;
    background: #ffffff;
}

.historia-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 60px;
    align-items: start;
}

.historia-escudo {
    display: none;
}

/* Responsive grid para carreras */
@media (max-width: 1024px) {
    .historia-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .historia-grid {
        gap: 20px;
    }
}

.escudo-placeholder {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
}

.escudo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.laboral-texto {
    font-family: "Times New Roman", "Time", serif;
}

.laboral-parrafo {
    font-size: 1.05rem;
    font-family: "Times New Roman", Times, serif;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 20px;
    text-align: justify;
}

.historia-texto {
    font-family: "Times New Roman", Times, serif;

    flex: 1;
}

.historia-titulo {
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #000000;
}

.historia-parrafo {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 20px;
    text-align: justify;
}

.historia-parrafo strong {
    color: #000000;
    font-weight: 600;
}

.mision-parrafo {
    font-size: 1.05rem;
    font-family: "Times New Roman", Times, serif;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 20px;
    text-align: justify;
}

.vision-parrafo {
    font-size: 1.05rem;
    font-family: "Times New Roman", Times, serif;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 20px;
    text-align: justify;
}

/* Card materia */
.card-materia {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border-left: 5px solid #3b82f6;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-height: 70px;
}

/* Hover */
.card-materia:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Icono */
.card-materia__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Texto */
.card-materia__text {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
    padding-right: 60px;
    padding-top: 2px;
}

/* Badge de créditos */
.card-materia__credits {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
}

.card-materia__credits::before {
    content: "⭐";
    font-size: 0.65rem;
}


/* Sidebar Derecho */
.historia-sidebar {
    position: static;
}

/* Programas Lista */
.programas-lista {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgb(0, 0, 0);
    margin-bottom: 30px;
    font-family: 'Times New Roman', Times, serif;
}

.programas-titulo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 20px;
    text-align: center;
}

.programas-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.programa-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.05rem;
    color: #374151;
}

.programa-item:last-child {
    border-bottom: none;
}

.programa-icon {
    color: #3b82f6;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Video Admisión */
.admision-video {
    margin-top: 0;
    text-align: center;
}

.video-titulo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 300px;
    opacity: 0.7;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #3b82f6;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    background: #2563eb;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Responsive */
@media (max-width: 1400px) {
    .historia-grid {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }

    .historia-escudo {
        display: none;
    }
}

@media (max-width: 1024px) {
    .historia-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .historia-escudo {
        display: none;
    }

    .escudo-placeholder {
        max-width: 200px;
        margin: 0 auto;
    }

    .historia-sidebar {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-simple h1 {
        font-size: 2.5rem;
    }

    .historia-titulo {
        font-size: 1.75rem;
    }

    .programas-lista {
        padding: 30px 20px;
    }
}

@media (max-width: 640px) {
    .hero-simple {
        padding: 80px 0;
    }

    .hero-simple h1 {
        font-size: 2rem;
    }

    .historia-parrafo {
        font-size: 1rem;
    }

    .video-titulo {
        font-size: 1.5rem;
    }
}

/* ===========================
   FORMULARIO DE CONTACTO
   =========================== */
.contact-section {
    width: 100%;
    background: linear-gradient(135deg, #415e7a 0%, #7b9cf8 100%);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(35, 102, 197, 0.15);
    border: 2px solid #e3e8ef;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2366C5 0%, #E03A3A 50%, #10BE46 100%);
}

.contact-section h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2366C5 0%, #E03A3A 100%);
    border-radius: 2px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    color: #1f2937;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #2366C5;
    background: #fafbfc;
    box-shadow: 0 0 0 4px rgba(35, 102, 197, 0.12), 0 4px 12px rgba(35, 102, 197, 0.15);
    transform: translateY(-2px);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

#contact-form textarea {
    min-height: 140px;
    resize: vertical;
    font-family: var(--font-family);
    line-height: 1.6;
}

#contact-form button[type="submit"] {
    width: 100%;
    padding: 15px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #2366C5 0%, #1a4a96 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(35, 102, 197, 0.35);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 8px;
}

#contact-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

#contact-form button[type="submit"]:hover::before {
    left: 100%;
}

#contact-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(35, 102, 197, 0.45);
    background: linear-gradient(135deg, #1a4a96 0%, #2366C5 100%);
}

#contact-form button[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(35, 102, 197, 0.35);
}

/* Loading state para el botón */
#contact-form button[type="submit"].loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

#contact-form button[type="submit"].loading::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Flash Messages (mensajes de éxito/error) */
#flash-messages {
    margin-top: 20px;
}

#flash-messages .alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    animation: slideIn 0.4s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

#flash-messages .alert.success {
    background: linear-gradient(135deg, #10be46 0%, #0ea53a 100%);
    color: white;
}

#flash-messages .alert.success::before {
    content: '✓';
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

#flash-messages .alert.error {
    background: linear-gradient(135deg, #E03A3A 0%, #c92a2a 100%);
    color: white;
}

#flash-messages .alert.error::before {
    content: '✕';
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de entrada en campos de formulario */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#contact-form input,
#contact-form textarea,
#contact-form button {
    animation: fadeInUp 0.5s ease-out backwards;
}

#contact-form input:nth-child(1) {
    animation-delay: 0.1s;
}

#contact-form input:nth-child(2) {
    animation-delay: 0.2s;
}

#contact-form textarea:nth-child(3) {
    animation-delay: 0.3s;
}

#contact-form button:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsive para formulario de contacto */
@media (max-width: 768px) {
    .contact-section h2 {
        font-size: 1.75rem;
    }

    #contact-form input,
    #contact-form textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    #contact-form textarea {
        min-height: 140px;
    }

    #contact-form button[type="submit"] {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Deberes css */
.card-header {
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

/* Variante azul */
.card-header--blue {
    background: linear-gradient(135deg, #2366C5 0%, #1a4a96 100%);
    box-shadow: 0 8px 30px rgba(35, 102, 197, 0.25);
}

/* Círculos decorativos reutilizables */
.card-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.card-circle-top {
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
}

.card-circle-bottom {
    bottom: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
}

/* Título */
.card-title {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.card-icon {
    flex-shrink: 0;
}

/* Card base reutilizable */
/* Card base - Deberes */
.card-item-deberes {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover general */
.card-item-deberes:hover {
    transform: translateY(-5px);
}

/* Variante azul */
.card-item-deberes--blue {
    border-left-color: #2366C5;
}

.card-item-deberes--blue:hover {
    box-shadow: 0 8px 25px rgba(35, 102, 197, 0.2);
}

/* Contenido */
.card-item-deberes__content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Número */
.card-item-deberes__number {
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2366C5, #1a4a96);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Texto */
.card-item-deberes__text {
    margin: 0;
    color: #1f2937;
    font-size: 1.05rem;
    line-height: 1.6;
}



/* Derechos css */
.card-derechos {
    background: linear-gradient(135deg, #10BE46 0%, #0ea53a 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(16, 190, 70, 0.25);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.card-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.card-circle-top {
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
}

.card-circle-bottom {
    bottom: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
}

.card-title {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.card-icon {
    flex-shrink: 0;
}

.card-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #10BE46;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(16, 190, 70, 0.2);
}

.card-item-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.card-item-icon {
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10BE46, #0ea53a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-item-text {
    margin: 0;
    color: #1f2937;
    font-size: 1.05rem;
    line-height: 1.6;
}


/* BECAS */
.becas-card {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.25);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

/* Círculos decorativos */
.becas-deco {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.becas-deco-top {
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
}

.becas-deco-bottom {
    bottom: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
}

/* Título */
.becas-title {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* Icono */
.becas-icon {
    flex-shrink: 0;
}

.beca-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #FFD700;
    transition: all 0.3s ease;
}

.beca-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.beca-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.beca-icon-box {
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beca-icon {
    width: 18px;
    height: 18px;
}

.beca-title {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 700;
}

.beca-desc {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Soporte para navegadores sin abs() */
@supports not (scale: abs(-1)) {
    .assembly article {
        --abs-lin: max(var(--dif-lin), -1*var(--dif-lin));
        --abs-mid: max(var(--dif-mid), -1*var(--dif-mid))
    }
}

.container-album{
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: 250px;
    grid-gap: 20px;
    padding: 100px 0;
}
.box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box:nth-child(1){
    grid-column-start:span 2 ;
}

.box:nth-child(4){
    grid-column-start:span 2 ;
}

@media(max-width:991px) {
    .container-album{
        padding: 30px;
        grid-template-columns:repeat(1,1fr) ;
    }

    .box:nth-child(1){
        grid-column-start: span 1;
    }
    .box:nth-child(4){
        grid-column-start: span 1;
    }
}

/* ===========================
   WHATSAPP FORM COMPONENT
   Formulario de contacto vía WhatsApp
   =========================== */

.whatsapp-form-section {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.whatsapp-form-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 2px solid #e3e8ef;
}

.whatsapp-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #000983 0%, #000983 100%);
}

/* Header del formulario */
.whatsapp-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
        transform: scale(1.05);
    }
}

.whatsapp-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.whatsapp-subtitle {
    color: var(--color-gray);
    font-size: 1rem;
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Formulario */
#whatsapp-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-icon {
    font-size: 1.2rem;
    display: inline-block;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    color: var(--color-dark);
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #25D366;
    background: #fafbfc;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1), 0 4px 12px rgba(37, 211, 102, 0.15);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-family);
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 45px;
}

.input-hint {
    font-size: 0.8rem;
    color: var(--color-gray);
    font-style: italic;
    margin-top: -4px;
}

/* Botón de envío */
.whatsapp-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #011aac 0%, #023ead 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.whatsapp-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.whatsapp-submit-btn:hover::before {
    left: 100%;
}

.whatsapp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.whatsapp-submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn-icon {
    width: 24px;
    height: 24px;
}

/* Nota de privacidad */
.privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 25px;
    padding: 16px;
    background: rgba(35, 102, 197, 0.08);
    border-radius: 10px;
    border-left: 4px solid var(--color-primary-blue);
}

.privacy-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-note p {
    font-size: 0.85rem;
    color: var(--color-gray);
    line-height: 1.5;
    margin: 0;
}

/* Mensajes de éxito y error */
.whatsapp-success-message,
.whatsapp-error-message {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 12px;
    animation: slideInUp 0.4s ease-out;
    box-shadow: var(--shadow-md);
}

.whatsapp-success-message {
    background: linear-gradient(135deg, #10BE46 0%, #0ea53a 100%);
    color: white;
    border: 2px solid #0ea53a;
}

.whatsapp-error-message {
    background: linear-gradient(135deg, #E03A3A 0%, #c92a2a 100%);
    color: white;
    border: 2px solid #c92a2a;
}

.success-content,
.error-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.success-icon,
.error-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 4px;
}

.success-content p,
.error-content p {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 4px 0;
}

.success-content small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Mensaje de error en carga */
.error-message {
    padding: 30px;
    text-align: center;
    background: #fee;
    border-radius: 12px;
    color: #c92a2a;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-form-container {
        padding: 30px 20px;
    }

    .whatsapp-header h2 {
        font-size: 1.6rem;
    }

    .whatsapp-subtitle {
        font-size: 0.9rem;
    }

    .whatsapp-icon {
        width: 60px;
        height: 60px;
    }

    .whatsapp-icon svg {
        width: 32px;
        height: 32px;
    }

    #whatsapp-form {
        gap: 20px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 16px;
    }

    .whatsapp-submit-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-form-container {
        padding: 25px 15px;
        border-radius: 12px;
    }

    .whatsapp-header h2 {
        font-size: 1.4rem;
    }

    .privacy-note {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===========================
   WHATSAPP FORM COMPACT
   Versión compacta para sidebar
   =========================== */

.whatsapp-form-compact {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 100px;
}

.whatsapp-compact-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #2366C5 0%, #1a4a96 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.header-badge svg {
    width: 16px;
    height: 16px;
}

.whatsapp-icon-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #2366C5 0%, #1a4a96 100%);
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(35, 102, 197, 0.3);
}

.whatsapp-icon-compact svg {
    width: 30px;
    height: 30px;
    color: white;
}

.whatsapp-compact-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.whatsapp-compact-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

#whatsapp-form-compact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.compact-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compact-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.compact-form-group label svg {
    width: 16px;
    height: 16px;
    color: #2366C5;
    opacity: 0.8;
}

.compact-form-group input,
.compact-form-group select {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.925rem;
    font-family: var(--font-family);
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1f2937;
    outline: none;
}

.compact-form-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.compact-form-group input:focus,
.compact-form-group select:focus {
    border-color: #2366C5;
    background: #fafbfc;
    box-shadow: 0 0 0 4px rgba(35, 102, 197, 0.08);
    transform: translateY(-1px);
}

.compact-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232366C5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
    font-weight: 500;
}

.whatsapp-compact-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #2366C5 0%, #1a4a96 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(35, 102, 197, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    position: relative;
    overflow: hidden;
}

.whatsapp-compact-btn::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 ease;
}

.whatsapp-compact-btn:hover::before {
    left: 100%;
}

.whatsapp-compact-btn svg {
    width: 20px;
    height: 20px;
}

.whatsapp-compact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(35, 102, 197, 0.4);
    background: linear-gradient(135deg, #1a4a96 0%, #2366C5 100%);
}

.whatsapp-compact-btn:active {
    transform: translateY(0);
}

.form-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 3px solid #2366C5;
    margin-top: 4px;
}

.form-footer-note svg {
    width: 18px;
    height: 18px;
    color: #2366C5;
    flex-shrink: 0;
    margin-top: 1px;
}

.form-footer-note p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.whatsapp-compact-success {
    margin-top: 15px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #10BE46 0%, #0ea53a 100%);
    color: white;
    text-align: center;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: slideInUp 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(16, 190, 70, 0.3);
}

/* Layout de FAQ + WhatsApp */
.faq-whatsapp-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .faq-whatsapp-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .whatsapp-form-compact {
        position: relative;
        top: 0;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .whatsapp-form-compact {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .whatsapp-compact-header h3 {
        font-size: 1.2rem;
    }
    
    .header-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}
/* ===========================
   CARACTERÍSTICAS / ACCORDION MEJORADO
   =========================== */

.caracteristicas-section {
    background: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.caracteristicas-header {
    text-align: center;
    margin-bottom: 40px;
}

.caracteristicas-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.caracteristicas-header p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Accordion Item */
.accordion-item {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.accordion-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.accordion-item.active {
    border-color: #3b82f6;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.18);
}

/* Accordion Button */
.accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-item.active .accordion-button {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.accordion-icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.accordion-item.active .accordion-icon-wrapper {
    transform: rotate(180deg) scale(1.1);
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.accordion-icon-wrapper svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.accordion-title-wrapper {
    flex: 1;
}

.accordion-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.accordion-item.active .accordion-title {
    color: #1e40af;
}

.accordion-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.accordion-content.active {
    max-height: 2000px;
    padding: 28px 28px 32px 28px;
    border-top: 2px solid #e0e7ff;
}

.accordion-list {
    display: grid;
    gap: 14px;
}

.accordion-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    animation: slideInUp 0.3s ease-out backwards;
}

.accordion-list-item:nth-child(1) { animation-delay: 0.05s; }
.accordion-list-item:nth-child(2) { animation-delay: 0.08s; }
.accordion-list-item:nth-child(3) { animation-delay: 0.11s; }
.accordion-list-item:nth-child(4) { animation-delay: 0.14s; }
.accordion-list-item:nth-child(5) { animation-delay: 0.17s; }
.accordion-list-item:nth-child(6) { animation-delay: 0.20s; }
.accordion-list-item:nth-child(7) { animation-delay: 0.23s; }
.accordion-list-item:nth-child(8) { animation-delay: 0.26s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-list-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    border-left-color: #1e40af;
}

.accordion-check-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.accordion-check-icon svg {
    width: 14px;
    height: 14px;
    color: white;
}

.accordion-list-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #334155;
}

/* Responsive */
@media (max-width: 768px) {
    .caracteristicas-section {
        padding: 35px 24px;
        border-radius: 12px;
    }

    .caracteristicas-header h2 {
        font-size: 1.85rem;
    }

    .accordion-button {
        padding: 20px 20px;
        gap: 14px;
    }

    .accordion-icon-wrapper {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .accordion-title {
        font-size: 1.05rem;
    }

    .accordion-subtitle {
        font-size: 0.85rem;
    }

    .accordion-content.active {
        padding: 20px 20px 24px 20px;
    }

    .accordion-list-item {
        padding: 12px 14px;
    }

    .accordion-list-text {
        font-size: 0.96rem;
    }
}

@media (max-width: 480px) {
    .accordion-icon-wrapper {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .accordion-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .accordion-title {
        font-size: 1rem;
    }

    .accordion-list-item {
        gap: 10px;
    }
}
/* ===========================
   L�NEA DE TIEMPO (TIMELINE)
   =========================== */
.timeline-section {
    margin: 60px 0;
}

.timeline-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.timeline-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 50px;
    font-weight: 500;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

/* L�nea vertical central */
.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3b82f6, #60a5fa, #3b82f6);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Marcador de tiempo */
.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2),
                0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot::before {
    width: 40px;
    height: 40px;
    animation: pulse-ring 1.5s infinite;
}

/* Punto actual destacado */
.timeline-dot-current {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2),
                0 6px 20px rgba(16, 185, 129, 0.4);
    animation: pulse-glow 2s infinite;
    position: relative;
    z-index: 2;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2),
                    0 6px 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.1),
                    0 6px 30px rgba(16, 185, 129, 0.6);
    }
}

@keyframes pulse-ring {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Contenido del timeline */
.timeline-content {
    background: white;
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 24px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 14px solid white;
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.timeline-content-current {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.timeline-year {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.timeline-year-current {
    color: #10b981;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.timeline-event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.timeline-description {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 18px;
    }

    .timeline-item {
        padding-left: 55px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
    }

    .timeline-dot-current {
        width: 18px;
        height: 18px;
    }

    .timeline-content {
        padding: 20px 24px;
    }

    .timeline-content::before {
        left: -14px;
        border-right-width: 10px;
    }

    .timeline-title {
        font-size: 2rem;
    }

    .timeline-subtitle {
        font-size: 1rem;
    }

    .timeline-event-title {
        font-size: 1.2rem;
    }

    .timeline-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .timeline-content {
        padding: 18px 20px;
    }

    .timeline-year {
        font-size: 1rem;
        padding: 5px 14px;
    }

    .timeline-event-title {
        font-size: 1.1rem;
    }

    .timeline-title {
        font-size: 1.75rem;
    }
}
