/* ==========================================
   VARIABLES Y RESET BÁSICO
   ========================================== */

:root {
    --primary-purple: #6B46C1;
    --secondary-purple: #8B5FBF;
    --light-purple: #A855F7;
    --dark-purple: #553C9A;
    --accent-purple: #9333EA;
    --gradient: linear-gradient(135deg, #6B46C1, #8B5FBF, #A855F7);
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f8fafc;
    --bg-medium: #f1f5f9;
    --bg-dark: #e2e8f0;
    --shadow-sm: 0 4px 12px rgba(107, 70, 193, 0.1);
    --shadow-md: 0 10px 25px rgba(107, 70, 193, 0.15);
    --shadow-lg: 0 20px 40px rgba(107, 70, 193, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ==========================================
   NAVEGACIÓN
   ========================================== */

.navbar {
    background: var(--gradient);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: clamp(45px, 6vw, 55px);
    height: clamp(45px, 6vw, 55px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
}

.nav-links a {
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==========================================
   PÁGINAS
   ========================================== */

.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
}

.page.active {
    display: block;
}

.page-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--dark-purple);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    position: relative;
    letter-spacing: -1px;
    padding-top: 2rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: var(--gradient);
    border-radius: 3px;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background: var(--gradient);
    color: white;
    padding: clamp(3rem, 8vw, 5rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    animation: heroFloat 20s infinite linear;
}

@keyframes heroFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hero-logo-circular {
    width: clamp(80px, 12vw, 120px);
    height: clamp(80px, 12vw, 120px);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 8px 32px rgba(255, 255, 255, 0.3),
        0 4px 16px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.hero-logo-circular:hover {
    transform: scale(1.05) rotate(5deg);
    border-color: white;
    box-shadow: 
        0 12px 40px rgba(255, 255, 255, 0.4),
        0 6px 20px rgba(255, 255, 255, 0.3);
}

.hero-logo-circular img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.hero-content h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    font-style: italic;
}

.hero-content p {
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    opacity: 0.95;
    text-align: justify;
}

.cta-buttons {
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: white;
    color: var(--primary-purple);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.4);
    background: #f8fafc;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

.btn-primary-purple {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.3);
    border: none;
}

.btn-primary-purple:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(107, 70, 193, 0.4);
    background: var(--dark-purple);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, white, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
    font-weight: 500;
}

/* ==========================================
   VIDEO SECTION
   ========================================== */

.video-hero-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-medium) 50%, var(--bg-dark) 100%);
    position: relative;
}

.video-intro {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

.video-intro h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text-dark);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
}

.video-intro p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.main-video-container-centered {
    max-width: min(90vw, 800px);
    margin: 0 auto clamp(3rem, 6vw, 4rem) auto;
}

.video-wrapper {
    position: relative;
    border-radius: clamp(20px, 4vw, 30px);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--gradient);
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: clamp(20px, 4vw, 30px);
}

.experience-stats-centered {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1000px;
    margin: 0 auto clamp(3rem, 6vw, 4rem) auto;
}

.stat-highlight {
    background: white;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: clamp(20px, 4vw, 25px);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(107, 70, 193, 0.1);
    transition: all 0.3s ease;
}

.stat-highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(107, 70, 193, 0.2);
}

.stat-highlight .highlight-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.stat-highlight .highlight-text h3 {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-highlight .highlight-text p {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
}

.cta-video-centered {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

.cta-video-centered .btn {
    min-width: 250px;
}

.video-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-top: clamp(3rem, 6vw, 4rem);
    position: relative;
}

.video-info-cards::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.info-card {
    background: white;
    border-radius: clamp(20px, 4vw, 30px);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(107, 70, 193, 0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.info-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(107, 70, 193, 0.2);
}

.info-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: clamp(20px, 4vw, 30px) clamp(20px, 4vw, 30px) 0 0;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.info-card:hover .info-image img {
    transform: scale(1.1);
}

.info-card h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-dark);
    margin: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1rem);
    font-weight: 700;
    line-height: 1.3;
}

.info-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0 clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
}

/* ==========================================
   CAMPUS SECTION
   ========================================== */

.campus-section {
    background: linear-gradient(135deg, #fafbff 0%, var(--bg-medium) 50%, var(--bg-dark) 100%);
    padding: clamp(4rem, 8vw, 7rem) 0;
    position: relative;
    overflow: hidden;
}

.campus-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(107,70,193,0.05)"/><circle cx="80" cy="80" r="1" fill="rgba(168,85,247,0.05)"/></svg>') repeat;
    animation: floatPattern 20s infinite linear;
}

@keyframes floatPattern {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--text-dark);
    margin-bottom: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.campus-showcase {
    position: relative;
    z-index: 2;
}

.campus-image {
    position: relative;
    border-radius: clamp(25px, 4vw, 40px);
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(107, 70, 193, 0.2),
        0 10px 25px rgba(107, 70, 193, 0.15);
    background: var(--gradient);
    margin-bottom: clamp(3rem, 6vw, 4rem);
    max-width: 50%;
    height: clamp(150px, 25vw, 300px);
    margin-left: auto;
    margin-right: auto;
}

.campus-photo,
.main-campus-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.campus-image:hover .campus-photo,
.campus-image:hover .main-campus-image {
    transform: scale(1.05);
}

.campus-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.campus-overlay h3 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
    font-weight: 700;
}

.campus-overlay p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.95;
    line-height: 1.5;
}

.campus-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
}

.feature-item {
    background: white;
    padding: clamp(2rem, 4vw, 2.5rem);
    border-radius: clamp(20px, 4vw, 30px);
    display: flex;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 2rem);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(107, 70, 193, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(107, 70, 193, 0.2);
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-text h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-dark);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
    font-weight: 700;
    line-height: 1.3;
}

.feature-text p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-medium);
    line-height: 1.6;
    font-weight: 500;
}

.campus-gallery {
    margin-top: clamp(4rem, 8vw, 6rem);
    padding: clamp(3rem, 6vw, 4rem);
    background: white;
    border-radius: clamp(25px, 4vw, 40px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(107, 70, 193, 0.08);
    position: relative;
    z-index: 2;
}

.campus-gallery h3 {
    text-align: center;
    color: var(--text-dark);
    margin: 0 0 clamp(3rem, 6vw, 4rem) 0;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    position: relative;
}

.campus-gallery h3::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery-thumb {
    aspect-ratio: 1;
    border-radius: clamp(18px, 3vw, 25px);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--gradient);
    box-shadow: var(--shadow-md);
}

.gallery-thumb:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-lg);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

/* ==========================================
   TESTIMONIOS
   ========================================== */

.testimonials-section {
    background: var(--gradient);
    padding: clamp(4rem, 8vw, 6rem) 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="70" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.8" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
    animation: testimonialFloat 30s infinite linear;
}

@keyframes testimonialFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(120deg); }
    66% { transform: translate(20px, -40px) rotate(240deg); }
    100% { transform: translate(0, -60px) rotate(360deg); }
}

.testimonials-section .section-title {
    color: white;
    position: relative;
    z-index: 2;
}

.testimonials-section .section-title::after {
    background: rgba(255, 255, 255, 0.8);
}

.testimonials-subtitle {
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.testimonials-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
}

.testimonial-card-compact {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: clamp(15px, 3vw, 20px);
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
}

.testimonial-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.testimonial-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.testimonial-avatar-compact {
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    margin-bottom: clamp(1rem, 2vw, 1.2rem);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.testimonial-card-compact:hover .testimonial-avatar-compact {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content-compact {
    flex: 1;
    position: relative;
    z-index: 1;
    margin-bottom: clamp(1rem, 2vw, 1.2rem);
}

.testimonial-content-compact p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.4;
    margin: 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.testimonial-author-compact {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: clamp(1rem, 2vw, 1.2rem);
    width: 100%;
    position: relative;
    z-index: 1;
}

.testimonial-author-compact strong {
    color: white;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.testimonial-author-compact span {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-style: normal;
}

/* ==========================================
   PROGRAMAS ACADÉMICOS
   ========================================== */

.programs-intro {
    text-align: justify;
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 25px;
    border: 2px solid rgba(107, 70, 193, 0.1);
}

.programs-intro p {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--text-medium);
    line-height: 1.9;
    font-weight: 500;
}

.programs-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 5rem;
}

.program-card-new {
    background: white;
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(107, 70, 193, 0.12),
        0 10px 30px rgba(107, 70, 193, 0.08);
    overflow: hidden;
    border: 3px solid rgba(107, 70, 193, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 80px rgba(107, 70, 193, 0.2),
        0 15px 40px rgba(107, 70, 193, 0.15);
    border-color: rgba(107, 70, 193, 0.2);
}

}

.program-banner {
    width: 50%;
    max-width: 350px;
    height: auto;
    max-height: clamp(50px, 10vw, 90px);
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.program-body {
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(to bottom, #ffffff, #fafbff);
}

.program-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    margin-bottom: 3rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(107, 70, 193, 0.08);
    border: 2px solid rgba(107, 70, 193, 0.06);
}

.info-badge {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.2rem);
    padding: clamp(1rem, 2vw, 1.5rem);
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.03), rgba(168, 85, 247, 0.03));
    border-radius: 15px;
    border: 2px solid rgba(107, 70, 193, 0.08);
    transition: all 0.3s ease;
}

.info-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 70, 193, 0.12);
    border-color: rgba(107, 70, 193, 0.15);
}

.info-badge-icon {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    filter: grayscale(0.3);
}

.info-badge-text strong {
    display: block;
    color: var(--primary-purple);
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: 0.3rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.info-badge-text span {
    color: var(--text-dark);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 600;
}

/* OBJETIVO DE LA LICENCIATURA - MEJORADO */
.program-objective {
    display: flex;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.08), rgba(168, 85, 247, 0.12));
    border-radius: 25px;
    border-left: 6px solid var(--primary-purple);
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 24px rgba(107, 70, 193, 0.15);
    position: relative;
    overflow: hidden;
}

.program-objective::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.objective-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    flex-shrink: 0;
    filter: grayscale(0);
    position: relative;
    z-index: 1;
}

.objective-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.objective-content h3 {
    color: var(--primary-purple);
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    margin-bottom: clamp(1rem, 2vw, 1.3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.objective-content p {
    color: var(--text-dark);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.8;
    font-weight: 500;
    text-align: justify;
    hyphens: auto;
}

/* Perfiles (Ingreso y Egreso) */
.profile-section {
    background: white;
    border-radius: 20px;
    border: 2px solid rgba(107, 70, 193, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(107, 70, 193, 0.08);
    transition: all 0.3s ease;
}

.profile-section:hover {
    box-shadow: 0 8px 24px rgba(107, 70, 193, 0.12);
    border-color: rgba(107, 70, 193, 0.15);
}

.profile-header {
    padding: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(168, 85, 247, 0.05));
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-header:hover {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.08), rgba(168, 85, 247, 0.08));
}

.profile-title {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1rem);
}

.profile-icon {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    filter: grayscale(0.2);
}

.profile-title h3 {
    color: var(--primary-purple);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 0;
    font-weight: 800;
}

.profile-toggle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--primary-purple);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.profile-section.active .profile-toggle {
    transform: rotate(180deg);
}

.profile-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s ease;
    padding: 0 clamp(1.5rem, 3vw, 2rem);
}

.profile-section.active .profile-content {
    max-height: 3000px;
    padding: clamp(1.5rem, 3vw, 2rem);
}

.profile-category {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.profile-category:last-child {
    margin-bottom: 0;
}

.profile-category h4 {
    color: var(--secondary-purple);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-category ul li {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2vw, 1.2rem);
    margin-bottom: clamp(0.6rem, 1.5vw, 0.8rem);
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.03), rgba(168, 85, 247, 0.03));
    border-radius: 10px;
    color: var(--text-dark);
    font-size: clamp(0.9rem, 2vw, 1rem);
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1rem);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.profile-category ul li:hover {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.08), rgba(168, 85, 247, 0.08));
    transform: translateX(5px);
    border-left-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.1);
}

.profile-category ul li::before {
    content: '✓';
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--primary-purple);
    font-weight: bold;
    flex-shrink: 0;
}

.curriculum-section {
    margin-top: 3rem;
}

.curriculum-section h3 {
    color: var(--primary-purple);
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid var(--gradient);
    display: block;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.cuatrimestre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
}

.cuatrimestre-card {
    background: white;
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 3px solid rgba(107, 70, 193, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(107, 70, 193, 0.08);
    position: relative;
    overflow: hidden;
}

.cuatrimestre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.cuatrimestre-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-5px);
    box-shadow: 
        0 12px 32px rgba(107, 70, 193, 0.15),
        0 6px 16px rgba(107, 70, 193, 0.1);
}

.cuatrimestre-card:hover::before {
    transform: scaleX(1);
}

.cuatrimestre-card.active {
    border-color: var(--primary-purple);
    box-shadow: 
        0 12px 32px rgba(107, 70, 193, 0.2),
        0 6px 16px rgba(107, 70, 193, 0.15);
}

.cuatrimestre-card.active::before {
    transform: scaleX(1);
}

.cuatrimestre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-medium);
}

.cuatrimestre-title {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 800;
    color: var(--primary-purple);
    letter-spacing: -0.3px;
}

.toggle-icon {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    color: var(--primary-purple);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.cuatrimestre-card.active .toggle-icon {
    transform: rotate(180deg);
}

.materias-list {
    display: none;
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cuatrimestre-card.active .materias-list {
    display: block;
}

.materias-list li {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2vw, 1.2rem);
    margin-bottom: clamp(0.6rem, 1.5vw, 0.8rem);
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.04), rgba(168, 85, 247, 0.04));
    border-radius: 12px;
    color: var(--text-dark);
    font-size: clamp(0.9rem, 2vw, 1rem);
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1rem);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
}

.materias-list li:hover {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.08), rgba(168, 85, 247, 0.08));
    transform: translateX(8px);
    border-color: rgba(107, 70, 193, 0.2);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.1);
}

.materias-list li::before {
    content: '📚';
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    flex-shrink: 0;
    filter: grayscale(0.2);
}

/* ==========================================
   ADMISIONES
   ========================================== */

.admission-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.step-card {
    background: white;
    padding: clamp(2rem, 4vw, 2.5rem);
    border-radius: clamp(20px, 3vw, 25px);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(107, 70, 193, 0.1);
    text-align: center;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    background: var(--gradient);
    color: white;
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(107, 70, 193, 0.3);
}

.step-card h3 {
    color: var(--text-dark);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* ==========================================
   GALERÍA
   ========================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(2rem, 4vw, 2.5rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.video-item {
    background: white;
    border-radius: clamp(15px, 3vw, 20px);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-thumb {
    aspect-ratio: 16/9;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.video-info {
    padding: clamp(1.5rem, 3vw, 2rem);
}

.video-info h3 {
    color: var(--text-dark);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.video-info p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* ==========================================
   CONTACTO
   ========================================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(3rem, 6vw, 4rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.contact-form {
    background: var(--gradient);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: clamp(20px, 3vw, 25px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form h3 {
    color: white;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.form-group {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.form-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1rem);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: clamp(8px, 2vw, 10px);
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background: white;
}

.contact-info {
    background: var(--bg-light);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: clamp(20px, 3vw, 25px);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--primary-purple);
}

.contact-info h3 {
    color: var(--primary-purple);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.info-icon {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--primary-purple);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.3rem;
}

.info-item div {
    color: var(--text-medium);
    line-height: 1.6;
}

/* ==========================================
   MODAL DE PROGRAMAS
   ========================================== */

.modal-program .modal-content {
    max-width: 95vw;
    max-height: 90vh;
    width: 1200px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-program-content {
    background: var(--bg-light);
}

.program-modal-wrapper {
    overflow-y: auto;
    max-height: 85vh;
    padding: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(to bottom, #ffffff, #fafbff);
}

/* Ajustes para el programa dentro del modal */
.modal-program .program-card-new {
    box-shadow: none;
    border: none;
    margin: 0;
}

.modal-program .program-header-responsive {
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
}

.modal-program .program-body {
    padding: clamp(2rem, 4vw, 3rem);
}

/* Scrollbar personalizado para el modal */
.program-modal-wrapper::-webkit-scrollbar {
    width: 10px;
}

.program-modal-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.program-modal-wrapper::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 10px;
}

.program-modal-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--dark-purple);
}

/* Responsive para modal de programas */
@media (max-width: 768px) {
    .modal-program .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        width: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .program-modal-wrapper {
        padding: 1.5rem 1rem;
        max-height: 90vh;
    }
    
    .modal-program .program-body {
        padding: 1.5rem 1rem;
    }
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem) 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-content p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* ==========================================
   BOTÓN DE REGRESO AL INICIO
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.back-to-top:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.6);
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-title-with-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonials-grid-compact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .campus-features {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cuatrimestre-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1rem;
        margin: 1rem;
    }
    
    .program-info {
        grid-template-columns: 1fr;
    }
    
    .program-header-responsive {
        padding: 1.5rem;
        min-height: 120px;
        text-align: center;
    }
    
    .program-banner {
        display: block;
        max-height: 100px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .program-body {
        padding: 1.5rem 1rem;
    }

    .program-objective {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .objective-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .campus-section,
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .campus-gallery {
        padding: 2rem;
        margin-top: 3rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ==========================================
   DOCUMENTOS INSTITUCIONALES
   ========================================== */

.institutional-docs-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 50%, #f3e8ff 100%);
    padding: clamp(4rem, 8vw, 7rem) 0;
    position: relative;
    overflow: hidden;
}

.institutional-docs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(107,70,193,0.03)"/><circle cx="80" cy="80" r="1.5" fill="rgba(168,85,247,0.03)"/></svg>') repeat;
    animation: floatPattern 25s infinite linear;
}

.docs-subtitle {
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-medium);
    margin-bottom: clamp(3rem, 6vw, 4rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(3rem, 5vw, 4rem);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.doc-card {
    background: white;
    padding: clamp(3rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
    border-radius: clamp(25px, 4vw, 35px);
    box-shadow: 
        0 20px 60px rgba(107, 70, 193, 0.15),
        0 10px 30px rgba(107, 70, 193, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(107, 70, 193, 0.1);
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 30px 80px rgba(107, 70, 193, 0.25),
        0 15px 40px rgba(107, 70, 193, 0.15);
    border-color: rgba(107, 70, 193, 0.3);
}

.doc-card:hover::before {
    transform: scaleX(1);
}

.doc-card-icon {
    font-size: clamp(4rem, 8vw, 5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    filter: grayscale(0);
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.doc-card h3 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: var(--primary-purple);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    font-weight: 800;
}

.doc-card p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
    font-weight: 500;
}

.doc-card .btn {
    min-width: 220px;
}

/* ==========================================
   MODAL MISIÓN Y VISIÓN
   ========================================== */

.modal-mision-vision {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

.mision-vision-content {
    padding: 1rem;
}

.doc-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.doc-icon-large {
    font-size: clamp(4rem, 8vw, 5rem);
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}

.doc-header h2 {
    color: var(--primary-purple);
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.doc-header p {
    color: var(--text-medium);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.intro-box {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(168, 85, 247, 0.05));
    padding: clamp(2rem, 4vw, 2.5rem);
    border-radius: 20px;
    border-left: 5px solid var(--primary-purple);
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.1);
}

.intro-box h3 {
    color: var(--primary-purple);
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.intro-box p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.2vw, 1.1rem);
}

.intro-box p:last-child {
    margin-bottom: 0;
}

.mision-box,
.vision-box {
    background: white;
    padding: clamp(2rem, 4vw, 2.5rem);
    border-radius: 20px;
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.12);
    border: 2px solid rgba(107, 70, 193, 0.1);
    transition: all 0.3s ease;
}

.mision-box:hover,
.vision-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(107, 70, 193, 0.18);
    border-color: rgba(107, 70, 193, 0.2);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.box-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    filter: grayscale(0);
}

.box-header h3 {
    color: var(--primary-purple);
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    margin: 0;
    font-weight: 800;
}

.mision-box p,
.vision-box p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    margin-bottom: 1rem;
    font-weight: 500;
}

.mision-box p:last-child,
.vision-box p:last-child {
    margin-bottom: 0;
}

.valores-destacados {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 25px;
    color: white;
    text-align: center;
}

.valores-destacados h3 {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.valor-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.valor-item span {
    font-size: clamp(2rem, 4vw, 2.5rem);
    display: block;
    margin-bottom: 0.8rem;
}

.valor-item p {
    margin: 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================
   MODAL REGLAMENTO
   ========================================== */

.modal-reglamento {
    max-width: 95vw;
    max-height: 90vh;
    width: 1200px;
}

.reglamento-content {
    padding: 1rem;
}

.pdf-viewer-container {
    margin: clamp(2rem, 4vw, 3rem) 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(107, 70, 193, 0.15);
}

.download-section {
    text-align: center;
    margin-top: clamp(2rem, 4vw, 2.5rem);
}

.download-section .btn {
    min-width: 280px;
}

/* ==========================================
   RESPONSIVE PARA DOCUMENTOS
   ========================================== */

@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-mision-vision,
    .modal-reglamento {
        max-width: 95vw;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .pdf-viewer-container iframe {
        height: 400px;
    }
    
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .doc-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .pdf-viewer-container iframe {
        height: 300px;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
    }
}

