/* ==========================================================================
   SISTEMA DE DISEÑO & VARIABLES (CSS VARIABLES)
   ========================================================================== */
:root {
    /* Fuentes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Lora', Georgia, serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Bordes y Sombras */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-circle: 50%;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tema Oscuro (Defecto) */
.dark-theme {
    --bg-primary: #0b0f19;
    --bg-secondary: #121826;
    --bg-glass: rgba(18, 24, 38, 0.75);
    --bg-glass-hover: rgba(26, 34, 54, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(6, 182, 212, 0.4);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --color-accent: #06b6d4;      /* Cian */
    --color-secondary: #6366f1;   /* Índigo */
    --color-success: #10b981;     /* Esmeralda */
    --color-danger: #ef4444;      /* Rojo */
    
    --glow-color: rgba(6, 182, 212, 0.25);
    --gradient-hero: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 100%);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Tema Claro */
.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --color-accent: #0284c7;      /* Sky Blue */
    --color-secondary: #4f46e5;   /* Indigo */
    --color-success: #059669;     /* Green */
    --color-danger: #dc2626;      /* Red */
    
    --glow-color: rgba(99, 102, 241, 0.15);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    --shadow-premium: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.small-container {
    max-width: 800px;
}

.section {
    padding: var(--spacing-lg) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
}

.text-center {
    text-align: center;
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    border-radius: var(--radius-md);
    transition: background var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
}

.glass-frame {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--glow-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-color);
    filter: brightness(1.1);
}

/* ==========================================================================
   COMPONENTE: BARRA DE PROGRESO DE LECTURA
   ========================================================================== */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    z-index: 1000;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   COMPONENTE: NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--spacing-md);
    z-index: 999;
    background: transparent;
    transition: background var(--transition-normal), padding var(--transition-normal);
}

/* Estilo cuando se hace scroll */
.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-hover);
    animation: logoGlow 3s ease-in-out infinite;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.logo-img {
    display: block;
    height: 28px;
    width: auto;
    object-fit: contain;
}

.logo:hover .logo-mark {
    transform: scale(1.06);
    animation-play-state: paused;
}

@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 0 8px var(--glow-color);
    }
    50% {
        box-shadow: 0 0 18px 4px var(--glow-color);
    }
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

#theme-toggle {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}

#theme-toggle:hover {
    background: var(--bg-primary);
    border-color: var(--color-accent);
}

/* Ocultar iconos de tema alternados */
.dark-theme .icon-sun { display: block; }
.dark-theme .icon-moon { display: none; }
.light-theme .icon-sun { display: none; }
.light-theme .icon-moon { display: block; }

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 60px);
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        padding: 40px var(--spacing-md);
        transition: right var(--transition-normal);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
    }
}

/* ==========================================================================
   SECCIÓN: HERO
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    padding-top: 100px;
    overflow: hidden;
}

.hero-background-shapes .shape {
    position: absolute;
    border-radius: var(--radius-circle);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: var(--color-accent);
    top: -10%;
    right: 5%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background-color: var(--color-secondary);
    bottom: 10%;
    left: -5%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-accent);
    border: 1px solid var(--border-hover);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    background: rgba(6, 182, 212, 0.05);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 580px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-meta i {
    color: var(--color-accent);
    margin-right: 4px;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-img {
    border-radius: var(--radius-md);
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: var(--shadow-premium);
    transition: transform var(--transition-slow);
}

.glass-frame:hover .hero-img {
    transform: scale(1.02);
}

/* ==========================================================================
   SECCIONES: ESTILOS GENERALES Y TÍTULOS
   ========================================================================== */
.section-title-wrapper {
    margin-bottom: 50px;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-subheading {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
}

.text-center .section-subheading {
    margin: 0 auto;
}

/* ==========================================================================
   ARTÍCULO Y TEXTO (INTRODUCCIÓN)
   ========================================================================== */
.article-body {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.article-body p {
    margin-bottom: 24px;
}

.lead-text {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Citas */
.quote-card {
    background: var(--bg-glass);
    border-left: 4px solid var(--color-accent);
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-premium);
}

.quote-text {
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.quote-author {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-accent);
    display: block;
}

/* ==========================================================================
   COMPONENTE: LÍNEA DE TIEMPO INTERACTIVA
   ========================================================================== */
.timeline-section {
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--border-color);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    z-index: 2;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

/* Items alternados izquierda y derecha */
.timeline-item:nth-child(even) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(odd) {
    left: 50%;
    text-align: left;
}

.timeline-badge {
    position: absolute;
    top: 30px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-circle);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all var(--transition-normal);
}

.timeline-item:nth-child(even) .timeline-badge {
    right: -22px;
}

.timeline-item:nth-child(odd) .timeline-badge {
    left: -22px;
}

.timeline-card {
    padding: 30px;
    border-radius: var(--radius-md);
    position: relative;
    transform: scale(0.96);
    transition: all var(--transition-normal);
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-accent);
    border: 1px solid var(--border-hover);
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.timeline-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.timeline-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Hover e interacción activa */
.timeline-item:hover .timeline-card, 
.timeline-item.active .timeline-card {
    transform: scale(1);
    background: var(--bg-glass-hover);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px var(--glow-color);
}

.timeline-item:hover .timeline-badge,
.timeline-item.active .timeline-badge {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 15px var(--glow-color);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
    }
    .timeline-badge {
        left: 8px !important;
        right: auto !important;
    }
}

/* ==========================================================================
   COMPONENTE: RUEDA DE CARACTERÍSTICAS
   ========================================================================== */
.features-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: 50px;
}

@media (min-width: 992px) {
    .features-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
    }
}

/* Contenedor de la rueda (Izquierda) */
.features-wheel-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}

.wheel-outer {
    position: relative;
    width: 320px;
    height: 320px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-center {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-circle);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    box-shadow: var(--shadow-premium);
    z-index: 5;
}

.wheel-center h3 {
    font-size: 1rem;
    color: var(--color-accent);
    text-transform: uppercase;
}

.wheel-center p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wheel-node {
    position: absolute;
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-circle);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-normal);
    
    /* Cálculo trigonométrico de posicionamiento en la circunferencia */
    transform: translate(calc(160px * cos(var(--angle))), calc(160px * sin(var(--angle))));
}

.wheel-node span {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

/* Ajustes posicionales de etiquetas de nodos */
.wheel-node:nth-child(1) span { top: 62px; }
.wheel-node:nth-child(2) span { top: 62px; left: -20px; }
.wheel-node:nth-child(3) span { bottom: 62px; left: -20px; }
.wheel-node:nth-child(4) span { bottom: 62px; }
.wheel-node:nth-child(5) span { bottom: 62px; right: -20px; }
.wheel-node:nth-child(6) span { top: 62px; right: -20px; }

.wheel-node i {
    font-size: 1.25rem;
}

/* Nodo Activo */
.wheel-node:hover, .wheel-node.active {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border-color: transparent;
    color: #ffffff;
    transform: translate(calc(160px * cos(var(--angle))), calc(160px * sin(var(--angle)))) scale(1.15);
    box-shadow: 0 0 20px var(--glow-color);
}

.wheel-node:hover span, .wheel-node.active span {
    color: var(--text-primary);
}

/* Panel de detalles (Derecha) */
.features-details-panel {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 350px;
    overflow: hidden;
}

.feature-detail {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-detail.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.detail-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.feature-detail h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-description {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.detail-impact {
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN: COMPARATIVA (VENTAJAS Y DESVENTAJAS)
   ========================================================================== */
.comparison-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: 50px;
}

@media (min-width: 992px) {
    .comparison-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.comparison-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 10px;
}

.col-header i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.col-header h3 {
    font-size: 1.4rem;
}

.traditional-col .col-header i {
    color: var(--text-muted);
}

.comparison-card {
    padding: 24px;
    position: relative;
    border-left: 4px solid var(--border-color);
}

.comparison-card.success-border {
    border-left-color: var(--color-success);
}

.comparison-card.error-border {
    border-left-color: var(--color-danger);
}

.card-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    position: absolute;
    top: 20px;
    right: 24px;
}

.comparison-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-right: 20px;
}

.comparison-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Efecto Hover en las tarjetas */
.hover-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    background: var(--bg-glass-hover);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hover-card.success-border:hover {
    border-left-color: var(--color-success);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

.hover-card.error-border:hover {
    border-left-color: var(--color-danger);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   TABLA COMPARATIVA
   ========================================================================== */
.table-container-outer {
    margin-top: 60px;
    padding: 40px;
}

.table-container-outer h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
    font-size: 0.95rem;
}

th, td {
    padding: 16px 20px;
    text-align: left;
}

th {
    font-family: var(--font-heading);
    font-weight: 600;
    background-color: rgba(6, 182, 212, 0.05);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

/* ==========================================================================
   SECCIÓN: TRANSMEDIA ECOSISTEMAS
   ========================================================================== */
.transmedia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 992px) {
    .transmedia-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.transmedia-image-wrapper {
    display: flex;
    justify-content: center;
}

.transmedia-img {
    border-radius: var(--radius-md);
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    box-shadow: var(--shadow-premium);
}

.transmedia-content {
    font-family: var(--font-body);
}

.transmedia-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.transmedia-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   COMPONENTE: REPRODUCTOR DE AUDIO PERSONALIZADO
   ========================================================================== */
.audio-player-container {
    padding: 30px;
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 40px auto 20px auto;
}

.player-top {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.player-cover {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px var(--glow-color);
}

.player-info {
    display: flex;
    flex-direction: column;
}

.track-genre {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.track-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.track-author {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Visualizador Canvas */
.visualizer-wrapper {
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

#audio-visualizer {
    width: 100%;
    height: 100%;
    display: block;
}

/* Controles de Tiempo y Progreso */
.time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    gap: 12px;
    margin-bottom: 24px;
}

.progress-bar-container {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    border-radius: 3px;
    position: relative;
}

.progress-handle {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    left: 0%;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.progress-bar-container:hover .progress-handle {
    opacity: 1;
}

/* Botones de Control */
.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.play-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: #ffffff !important;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px var(--glow-color);
}

.play-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.podcast-notes p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.podcast-notes i {
    color: var(--color-accent);
}

/* ==========================================================================
   SECCIÓN: REFERENCIAS BIBLIOGRÁFICAS
   ========================================================================== */
.references-list {
    padding: 30px;
}

.references-list ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.references-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ref-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ref-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ref-citation {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ref-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    margin-top: var(--spacing-lg);
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    max-width: 450px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-secondary);
}

.footer-info p strong {
    color: var(--text-primary);
}

.footer-info p:last-child {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   SECCIÓN: ESTUDIANTES UNIMINUTO
   ========================================================================== */
.authors-section {
    position: relative;
    overflow: hidden;
}

.authors-bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.authors-glow {
    position: absolute;
    border-radius: var(--radius-circle);
    filter: blur(90px);
    opacity: 0.35;
}

.authors-glow-1 {
    width: 420px;
    height: 420px;
    background: var(--color-secondary);
    top: -15%;
    right: -8%;
}

.authors-glow-2 {
    width: 360px;
    height: 360px;
    background: var(--color-accent);
    bottom: -20%;
    left: -10%;
}

.authors-section .container {
    position: relative;
    z-index: 1;
}

.teacher-card {
    --card-accent: #ec4899;
    position: relative;
    max-width: 680px;
    margin: 40px auto 0;
    padding: 22px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 20px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-accent);
    opacity: 0.85;
}

.teacher-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--card-accent);
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.teacher-badge {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.28);
}

.author-accent-rose { --card-accent: #ec4899; }

.author-accent-rose:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.2);
}

.avatar-bg-rose {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

.teacher-card:hover .avatar-bg-rose {
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.5);
}

@media (min-width: 992px) {
    .teacher-card {
        flex-direction: row;
        text-align: left;
        max-width: 520px;
    }
}

.authors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 50px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.authors-grid .author-card.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.authors-grid .author-card.scroll-reveal:nth-child(2) { transition-delay: 0.12s; }
.authors-grid .author-card.scroll-reveal:nth-child(3) { transition-delay: 0.19s; }
.authors-grid .author-card.scroll-reveal:nth-child(4) { transition-delay: 0.26s; }
.authors-grid .author-card.scroll-reveal:nth-child(5) { transition-delay: 0.33s; }

.author-card {
    --card-accent: var(--color-accent);
    position: relative;
    padding: 22px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 20px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    width: 100%;
}

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-accent);
    opacity: 0.85;
    transition: width var(--transition-fast), opacity var(--transition-fast);
}

.author-card:hover::before {
    width: 6px;
    opacity: 1;
}

.author-accent-indigo { --card-accent: #6366f1; }
.author-accent-cyan   { --card-accent: #06b6d4; }
.author-accent-violet { --card-accent: #8b5cf6; }
.author-accent-green  { --card-accent: #10b981; }
.author-accent-yellow { --card-accent: #f59e0b; }

.author-card:hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.15);
}

.author-accent-indigo:hover { border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2); }
.author-accent-cyan:hover   { border-color: rgba(6, 182, 212, 0.5); box-shadow: 0 12px 32px rgba(6, 182, 212, 0.2); }
.author-accent-violet:hover { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2); }
.author-accent-green:hover  { border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 12px 32px rgba(16, 185, 129, 0.2); }
.author-accent-yellow:hover { border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2); }

.author-avatar {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--bg-secondary);
    border: 3px solid rgba(255, 255, 255, 0.15);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    overflow: hidden;
    isolation: isolate;
}

.author-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--card-accent, var(--color-accent));
    opacity: 0.55;
    pointer-events: none;
    z-index: 2;
    transition: opacity var(--transition-normal);
}

.author-card:hover .author-avatar::after,
.teacher-card:hover .author-avatar::after {
    opacity: 0.9;
}

.author-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.08);
    z-index: 1;
}

.avatar-pos-sandra { object-position: center 30%; transform: scale(1.2); }
.avatar-pos-brayan { object-position: center 12%; transform: scale(1.35); }
.avatar-pos-frank  { object-position: center center; transform: scale(1.15); }
.avatar-pos-leidy  { object-position: center 28%; transform: scale(1.2); }
.avatar-pos-analy,
.avatar-pos-samuel { object-position: center center; }

.author-avatar-fallback {
    font-size: 1.65rem;
    color: #ffffff;
    display: none;
    z-index: 1;
}

.author-avatar.is-fallback .author-avatar-img {
    display: none;
}

.author-avatar.is-fallback .author-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.author-card:hover .author-avatar {
    transform: scale(1.08);
}

.author-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
    word-wrap: break-word;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--card-accent);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    width: fit-content;
}

.author-accent-indigo .author-badge { color: #6366f1; background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.28); }
.author-accent-cyan .author-badge   { color: #06b6d4; background: rgba(6, 182, 212, 0.12); border-color: rgba(6, 182, 212, 0.28); }
.author-accent-violet .author-badge { color: #8b5cf6; background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.28); }
.author-accent-green .author-badge  { color: #10b981; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.28); }
.author-accent-yellow .author-badge { color: #f59e0b; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.28); }

.author-badge i {
    font-size: 0.72rem;
}

.author-avatar.avatar-bg-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.author-avatar.avatar-bg-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.author-avatar.avatar-bg-violet {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.author-avatar.avatar-bg-green {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.author-avatar.avatar-bg-yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.author-card:hover .avatar-bg-indigo { box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5); }
.author-card:hover .avatar-bg-cyan   { box-shadow: 0 8px 24px rgba(6, 182, 212, 0.5); }
.author-card:hover .avatar-bg-violet { box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5); }
.author-card:hover .avatar-bg-green  { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5); }
.author-card:hover .avatar-bg-yellow { box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5); }

@media (min-width: 640px) {
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .authors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 100%;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 20px;
    }

    .author-card::before {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 4px;
    }

    .author-card:hover::before {
        width: 100%;
        height: 5px;
    }

    .author-avatar {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
    }

    .author-avatar-fallback {
        font-size: 1.85rem;
    }

    .author-info {
        align-items: center;
    }

    .author-info h3 {
        font-size: 1.05rem;
    }
}

@media (min-width: 1200px) {
    .authors-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==========================================================================
   ANIMACIONES Y REVELADO AL HACER SCROLL (JS INTERACTION)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones Keyframes */
@keyframes rotatePulse {
    0% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(225deg) scale(1.1); }
    100% { transform: rotate(405deg) scale(1); }
}

/* Animaciones de entrada iniciales */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards var(--transition-normal);
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s forwards var(--transition-normal);
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    animation: fadeInRight 1.2s forwards var(--transition-normal);
}

/* Animación retardada */
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
