/* ===== VARIABLES DE COLORES POR PROGRAMA ===== */
:root {
  --program-color: #050e5e; /* Color por defecto (Azul UMID) */
}

/* Licenciaturas */
.prog-derecho { --program-color: #4C0505; }
.prog-gastro { --program-color: #e75010; }
.prog-contaduria { --program-color: #c92bbc; }
.prog-admin { --program-color: #2479aa; }
.prog-comercio { --program-color: #7D3CF3; }
.prog-criminalistica { --program-color: #be9b01; }

/* Maestrías */
.prog-maestria { --program-color: #0ead00; }

/* Ingenierías */
.prog-industrial { --program-color: #788176; }
.prog-petrolera { --program-color: #26B40E; }
.prog-mecatronica { --program-color: #AF0800; }

/* ===== HERO PARA PROGRAMAS ===== */
.programas-hero {
  position: relative;
  min-height: 100vh; /* Un poco más bajo que el del index para ir directo al grano */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
}

.programas-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.programas-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Oscurecemos un poco la imagen para que el texto resalte */
}

.programas-hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
  color: white;
  margin-top: 4rem; /* Espacio para el navbar */
}

.programas-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.programas-hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9);
}

/* El degradado dinámico */
.programas-hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  /* Aquí ocurre la magia: usa la variable del programa */
  background: linear-gradient(to top, var(--program-color), transparent);
  z-index: 2;
  opacity: 1;
}


/* ===== PROGRAM FEATURES (NAV BAR) ===== */
.program-features {
    background-color: var(--program-color);
    padding: 30px 0;
    position: relative;
    z-index: 10;
    margin-top: -1px;
    transition: background-color 0.5s ease;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none; /* Por si decides hacerlos links */
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

/* Línea divisoria */
.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    stroke: white;
}

.feature-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: white;
}

/* === RESPONSIVE PARA 5 ITEMS === */
@media (max-width: 992px) {
    .features-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 arriba, 2 abajo */
        gap: 20px 0;
    }
    .feature-item:nth-child(3)::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .features-container {
        grid-template-columns: 1fr; /* Lista vertical en móviles */
    }
    .feature-item {
        padding: 15px 0;
    }
    .feature-item::after {
        display: none !important;
    }
    .feature-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        
    }
    
}

/* ===== PROGRAM INTRO SECTION (Split Left/Right) ===== */
.program-intro {
    background-color: #ffffff; /* Fondo blanco solicitado */
    padding: 100px 0;
    position: relative;
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* División 50% izquierda, 50% derecha */
    gap: 80px; /* Espacio generoso entre columnas */
    align-items: center;
}

/* --- Columna Izquierda (Contenido) --- */
.intro-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alineado a la izquierda */
}

.intro-title {
    /* Usamos el color del programa para la frase de impacto */
    color: #181818; 
    font-size: clamp(2rem, 4vw, 2.3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.intro-description {
    font-size: 1.1rem;
    color: #4a5568; /* Un gris oscuro para buena lectura */
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Botón de Descarga */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--program-color); /* Color dinámico */
    color: white;
    padding: 16px 32px;
    border-radius: 7px; /* Botón redondeado moderno */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    /* Un pequeño truco para oscurecer el color dinámico al hacer hover */
    filter: brightness(0.9); 
}

.btn-download svg {
    width: 20px;
    height: 20px;
}

/* --- Columna Derecha (Imagen) --- */
.intro-image {
    position: relative;
}

/* Marco decorativo opcional detrás de la imagen */
.intro-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--program-color); /* Marco del color del programa */
    border-radius: 24px;
    z-index: 0;
    opacity: 0.3;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 24px; /* Bordes redondeados para la imagen */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1; /* Delante del marco decorativo */
    object-fit: cover;
    aspect-ratio: 4/3; /* Mantiene una proporción rectangular agradable */
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .intro-container {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 50px;
        text-align: center;
    }

    .intro-content {
        align-items: center; /* Centrar contenido en móvil */
        order: 2; /* El texto va debajo de la imagen en móvil */
    }

    .intro-image {
        order: 1; /* La imagen va primero en móvil */
        padding: 20px; /* Espacio para el marco decorativo */
    }
    
    .intro-image::before {
        top: 0; right: 0;
    }
}

/* ===== QUICK STATS SECTION ===== */
.quick-stats-section {
    height: 70vh;
    min-height: 500px;
    background-color: var(--program-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    width: 100%;
    padding: 0 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

.stat-icon-circle {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15); /* Círculo semitransparente */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.stat-item:hover .stat-icon-circle {
    background: white;
    transform: translateY(-10px);
}

.stat-item:hover .stat-icon-circle svg {
    color: var(--program-color); /* El icono cambia al color de la carrera en hover */
}

.stat-icon-circle svg {
    width: 45px;
    height: 45px;
    color: white;
    transition: color 0.4s ease;
}

.stat-category {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 8px;
}

.prog-maestria .stat-value{

}
.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}
.prog-maestria .stat-value{
    font-size:2rem;
}

/* Ajustes Responsive */
@media (max-width: 850px) {
    .quick-stats-section { height: auto; padding: 80px 0; }
    .stats-container { grid-template-columns: 1fr; gap: 60px; }
    .stat-value { font-size: 2rem; }
}
/* ===== PROFILE SECTION (Perfil de Ingreso) ===== */
.profile-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.profile-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #1a202c;
    margin-bottom: 15px;
}


.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 30px;
}

.profile-card {
    background: #ffffff; /* Un blanco apenas grisáceo para dar contraste */
    padding: 40px 30px;
    border-radius: 20px;
    border-bottom: 4px solid transparent; /* Efecto hover preparado */
    transition: all 0.3s ease;
    /*box-shadow:0 0 15px rgba(0, 0, 0, 0.171);*/
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/*.profile-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--program-color);
}*/

.profile-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--program-color); /* Necesitaríamos definir el RGB o usar opacity */
    
    color: var(--program-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.profile-card:hover .profile-card-icon {
    background-color: #050e5e;
    color: #ffffff;
}

.profile-card-icon svg {
    width: 30px;
    height: 30px;
    color: #ffffff;
}

.profile-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.3;
}

.profile-card p {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .profile-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
    .profile-card {
        padding: 30px 20px;
    }
}

.egreso-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.col-title {
    color: var(--program-color);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modern-card.mini {
    padding: 15px 20px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .egreso-columns { grid-template-columns: 1fr; }
}

.doc-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.doc-list li {
    font-size: 0.9rem;
    color: #444;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.doc-list li::before {
    content: '•';
    color: var(--program-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===== WHY UMID PARALLAX SECTION ===== */
.why-umid {
    position: relative;
    padding: 100px 0;
    color: white;
    background-image: url('../images/heroumid.jpg'); /* Imagen general de la uni o biblioteca */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

/* Fallback para iOS y Móviles (Parallax no funciona bien ahí) */
@media (max-width: 1024px) {
    .why-umid {
        background-attachment: scroll;
    }
}

/* Filtro de color del programa */
.why-umid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--program-color);
    opacity: 0.85; /* Ajusta qué tanto se ve la imagen de fondo */
    z-index: 1;
}

.why-container {
    position: relative;
    z-index: 2; /* Por encima del filtro */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.why-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.why-header p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 60px;
}

/* --- Carrusel --- */
.why-carousel {
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* El track debe estar limpio de gaps para que el cálculo 100% sea perfecto */
.carousel-track {
    display: flex;
    gap: 0; /* Aseguramos que no haya espacios entre slides */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform; /* Mejora la fluidez de la animación */
}

/* Aseguramos que el cálculo de tamaño sea exacto */
.why-slide {
    min-width: 100%;
    width: 100%; /* Forzamos el ancho exacto */
    flex-shrink: 0; /* Evita que el contenedor flex intente comprimirlos */
    box-sizing: border-box; /* ¡ESTA ES LA CLAVE! El padding ya no suma ancho extra */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.why-icon-main {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 50%;
}
.why-icon-main iconify-icon{
    margin-top: 0.3rem;
    margin-right: 0.04rem;
}

.why-slide h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.why-slide p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.85;
}

/* Flechas */
.carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: opacity 0.3s;
}

.carousel-arrow:hover { opacity: 0.6; }
.arrow-left { left: -50px; }
.arrow-right { right: -50px; }

/* Barras de Progreso (Indicadores) */
.carousel-indicators {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}

.ind-bar {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ind-bar.active {
    background: white;
    width: 60px; /* Se alarga cuando está activa */
}

/* Responsive */
@media (max-width: 900px) {
    .arrow-left { left: 0; }
    .arrow-right { right: 0; }
    .carousel-indicators { display: none; } /* Ocultar barras en móvil */
}
/* ===== KNOWLEDGE SECTION (¿Qué aprenderás?) ===== */
.knowledge-section {
    background-color: #ffffff;
    padding: 100px 0;
    position: relative;
}

.knowledge-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 40px;
    margin-top: 50px;
}

.knowledge-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border-radius: 15px;
    background: #fdfdfd;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.knowledge-item:hover {
    transform: scale(1.03);
    border-color: var(--program-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

/* El número de fondo decorativo */
.knowledge-number {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 6rem;
    font-weight: 900;
    color: var(--program-color);
    opacity: 0.05; /* Casi invisible, muy elegante */
    user-select: none;
}

.knowledge-icon-wrap {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--program-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(var(--program-color-rgb), 0.3);
}

.knowledge-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.knowledge-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.knowledge-text p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 850px) {
    .knowledge-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
    
    .knowledge-item {
        padding: 20px;
    }
}

/* ===== SECCIÓN PERFIL UNIFICADA ===== */
.unified-profile {
    background-color: #ffffff;
    padding: 100px 0;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    group: hover;
    transition: all 0.3s ease;
}

.tab-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
}

.tab-item span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #94a3b8;
}

/* Estado Activo de las Tabs */
.tab-item.active .tab-circle {
    background-color: var(--program-color);
    border-color: var(--program-color);
    color: white;
    box-shadow: 0 10px 25px rgba(var(--program-color-rgb), 0.2);
    transform: scale(1.1);
}
.tab-item .tab-circle svg{
    transition: color 0.3s ease;
}
.tab-item .tab-circle:hover{
    border-color: var(--program-color);
}
.tab-item .tab-circle:hover svg{
    color: var(--program-color);
}
.tab-item.active .tab-circle:hover svg{
    color: white;
}

.tab-item.active span {
    color: var(--program-color);
}

/* Contenedores de Contenido */
.profile-content-group {
    display: none; /* Escondidos por defecto */
    animation: fadeIn 0.5s ease forwards;
}

.profile-content-group.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tarjeta Unificada Modernizada */
.modern-card {
    background: #fcfcfc;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden; /* Para que el número no se salga de la tarjeta */
    align-items: flex-start;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.144);
    transition: all 0.3s ease;
}

.modern-card:hover {
    background: white;
    border-color: var(--program-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transform: translateY(-5px);
}

.card-icon-box {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: rgba(var(--program-color-rgb), 0.1); /* Necesitas definir el RGB */
    background: #f1f5f9; /* Fallback */
    color: var(--program-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-box svg {
    width: 22px;
    height: 22px;
}

.card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}

.card-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}
.knowledge-number {
    position: absolute;
    right: -5px;
    bottom: -15px;
    font-size: 4rem;
    font-weight: 900;
    color: var(--program-color);
    opacity: 0.04; /* Muy sutil */
    user-select: none;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-tabs { gap: 30px; }
    .tab-circle { width: 65px; height: 65px; }
}

/* ===== PERFORMANCE SECTION (Prestige Design) ===== */
.performance-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.prestige-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas para más formalidad */
    gap: 0; /* Sin espacio entre ellas para crear un efecto de "malla" */
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid #eef2f6;
}

.prestige-card {
    padding: 50px 40px;
    background: white;
    border: 1px solid #dfe3e7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* El elemento 7 (Docencia) ocupará ambas columnas al final */
.prestige-card.full-width {
    grid-column: span 2;
}

.prestige-card:hover {
    z-index: 10;
    background: #fcfcfc;
    box-shadow: inset 0 -4px 0 0 var(--program-color), 0 20px 40px rgba(0,0,0,0.05);
}

.prestige-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--program-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
    opacity: 0.6;
}

.prestige-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.prestige-card h4 svg {
    width: 24px;
    height: 24px;
    color: var(--program-color);
}

.prestige-card h4 iconify-icon {
    width: 24px;
    height: 24px;
    color: var(--program-color);
}
.prestige-card p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}



/* Mobile responsive */
@media (max-width: 850px) {
    .prestige-grid { grid-template-columns: 1fr; }
    .prestige-card.full-width { grid-column: span 1; }
    .prestige-card { padding: 40px 30px; }
}

/* ===== CURRICULUM SECTION ===== */
.curriculum-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.curriculum-display {
    max-width: 900px;
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    background: #fdfdfd;
    cursor: pointer;
}

.curriculum-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.curriculum-img:hover {
    transform: scale(1.02); /* Efecto zoom sutil */
}

.curriculum-footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ===== DOCUMENTS PARALLAX ===== */
.documents-parallax {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1635859890085-ec8cb5466806?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); /* Tu imagen de fondo profesional */
    background-attachment: fixed; /* ESTO HACE EL PARALLAX */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    padding: 40px 20px;
}

/* Capa de color con transparencia basada en el color de la carrera */
.parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--program-color);
    opacity: 0.65; /* Ajusta qué tanto se ve la imagen de fondo */
    z-index: 1;
}

.documents-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
}

.white-text { color: white !important; }

.video-text-badge.light {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

/* Grid de Documentos */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.doc-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); /* Efecto cristal moderno */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.doc-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.doc-box svg {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    stroke-width: 1.5;
}

.doc-box span {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

.doc-box small {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Footer con aviso de copias */
.docs-footer {
    margin-top: 40px;
    text-align: center;
}

.copy-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--program-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .docs-grid { grid-template-columns: repeat(2, 1fr); }
    .documents-parallax { height: auto; padding: 100px 20px; }
}

@media (max-width: 500px) {
    .docs-grid { grid-template-columns: 1fr; }
    .copy-notice { flex-direction: column;}
    .copy-notice svg { width: 30px; height: 30px; }
}
/* Fix para iOS y dispositivos táctiles (Parallax a imagen estática) */
@supports (-webkit-touch-callout: none) {
   .documents-parallax {
      background-attachment: scroll !important;
   }
}