@charset "UTF-8";

/* Reset general y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    background-color: #000000;
}

/* Sección de video a pantalla completa (introducción) */
.hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

/* Encabezado y menú (sobre el video) */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    z-index: 10;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Botones en cajas pequeñas (Chips) */
.nav-links {
    display: flex;
    flex-wrap: nowrap;          /* Evita que se rompan en varias filas */
    justify-content: center;
    align-items: center;
    gap: 6px;                   /* Separación mínima estandarizada */
    max-width: 100%;
    overflow-x: auto;           /* Permite scroll horizontal si la pantalla es ultra estrecha */
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
}

/* Ocultar barra de scroll para mantener estética limpia */
.nav-links::-webkit-scrollbar {
    display: none;
}

/* Estilo de la caja pequeña */
.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;        /* Evita que el texto de un botón se divida en 2 líneas */
    padding: 4px 10px;          /* Caja pequeña y compacta */
    font-size: 0.82rem;         /* Texto ajustado */
    font-weight: 500;
    text-decoration: none;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;         /* Esquinas suavemente redondeadas */
    background: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.3px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* Estado Activo (páginas internas) */
.nav-links a.active {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
    font-weight: 600;
}

/* Flecha para invitar a hacer scroll */
.scroll-hint {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-hint span {
    display: block;
    width: 16px;
    height: 16px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    margin: -6px auto 0;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Sección Central (aparece al hacer scroll) */
.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 20px;
    background-color: #000000;
    width: 100%;
}

.intro-card {
    background: rgba(10, 15, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    width: 100%;
    max-width: 750px;
    padding: 45px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.intro-card h1,
.intro-card .intro-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #e0e6ed;
    text-align: center;
}

.intro-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #8ab4f8;
    font-weight: 600;
    text-align: center;
}

.intro-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 30px;
    font-weight: 300;
    text-align: left;
}

.intro-card p strong {
    color: #ffffff;
}

/* Botón de exploración */
.btn-explore {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid #8ab4f8;
    color: #8ab4f8;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    background: #8ab4f8;
    color: #0a0f19;
    box-shadow: 0 0 15px rgba(138, 180, 248, 0.4);
}

/* Fila de enlaces al final de la introducción */
.outro-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.btn-explore--ghost {
    border-color: rgba(255, 255, 255, 0.25);
    color: #cbd5e1;
}

.btn-explore--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* Subtítulo del héroe sobre el vídeo */
.hero-subtitle {
    position: absolute;
    top: 40vh;
    left: 60px;
    max-width: 480px;
    z-index: 5;
    font-family: 'Cinzel', serif;
    font-weight: 450;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9aa5b3;  
    text-align: left;
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    opacity: 0;
    animation: fadeInSubtitle 2s ease-in-out 1s forwards;
}

@keyframes fadeInSubtitle {
    to { opacity: 1; }
}

.publication-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 450;
    font-size: 1rem;
    color: #d8dde2;
    margin-top: -6px;
    margin-bottom: 14px;
    line-height: 1.8;
}

/* ==========================================
   CABECERA DE PÁGINAS INTERNAS (sin video)
   ========================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 60px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .logo {
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.site-header .logo a {
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================
   MINI-HERO de páginas internas
   ========================================== */

.page-hero {
    position: relative;
    padding: 90px 20px 70px;
    text-align: center;
    background-color: #000000;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6) 50%, transparent 51%),
        radial-gradient(1px 1px at 65% 15%, rgba(255,255,255,0.4) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 80% 55%, rgba(255,255,255,0.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,0.35) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 90% 80%, rgba(255,255,255,0.45) 50%, transparent 51%),
        radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,0.3) 50%, transparent 51%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero .eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #8ab4f8;
    margin-bottom: 25px;
}

.page-hero h1 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 2.6rem;
    letter-spacing: 1px;
    color: #f1f4f9;
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: #9aa5b3;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 300;
}

.page-hero .quote-block {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.65;
    color: #8ab4f8;
    max-width: 540px;
    margin: 22px auto 0;
}

/* ==========================================
   PIE DE PÁGINA Y NOTAS
   ========================================== */

.site-footer {
    padding: 40px 20px;
    text-align: center;
    background-color: #050811;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #6b7484;
    font-size: 0.9rem;
}

.site-footer a {
    color: #8ab4f8;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.placeholder-note {
    display: flex;
    gap: 16px;
    background: rgba(138, 180, 248, 0.06);
    border: 1px dashed rgba(138, 180, 248, 0.35);
    border-radius: 12px;
    padding: 22px 25px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.placeholder-note p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #9aa5b3;
    margin: 0;
}

.placeholder-note strong {
    color: #cbd5e1;
}

/* ==========================================
   PÁGINA: SOBRE EL AUTOR
   ========================================== */

.author-section {
    background-color: #050811;
    padding: 70px 20px 100px;
}

.author-layout {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 50px;
    align-items: start;
}

.author-portrait {
    width: 210px;
    height: 276px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(138,180,248,0.15), rgba(10,15,25,0.9));
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #6b7484;
    text-align: center;
    overflow: hidden;
}

.author-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-name {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    color: #e0e6ed;
    margin-bottom: 6px;
}

.author-title {
    color: #8ab4f8;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
}

.author-bio p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 18px;
    font-weight: 300;
}

.credentials-list {
    list-style: none;
    margin-top: 25px;
    padding-left: 0;
}

.credentials-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: #b6bec9;
    font-size: 0.98rem;
}

.credentials-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #8ab4f8;
}

/* ==========================================
   PÁGINA: PUBLICACIONES
   ========================================== */

.publications-section {
    background-color: #050811;
    padding: 70px 20px 100px;
}

.publications-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.publication-card {
    background: rgba(10, 15, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 35px;
    transition: border-color 0.2s ease;
}

.publication-card:hover {
    border-color: rgba(138, 180, 248, 0.4);
}

.publisher-logo-container {
    margin-bottom: 15px;
}

.journal-logo {
    max-height: 45px;
    width: auto;
    display: block;
    filter: brightness(0.95);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.journal-logo:hover {
    opacity: 0.85;
    filter: brightness(1);
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #8ab4f8;
    margin-bottom: 12px;
}

.publication-card h3 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #f1f4f9;
    margin-bottom: 12px;
    line-height: 1.4;
}

.publication-card p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #b6bec9;
    margin-bottom: 16px;
    font-weight: 300;
}

.publication-status {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.status-preprint {
    background: rgba(234, 179, 8, 0.1);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-published {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-draft {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.publication-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 15px;
}

.publication-link {
    color: #8ab4f8;
    text-decoration: none;
    font-size: 0.95rem;
}

.publication-link:hover {
    text-decoration: underline;
}

.publication-link.pdf-link {
    color: #4ade80;
}

.publication-link.pdf-link:hover {
    color: #86efac;
}

/* ==========================================
   HUB DE TEORÍA (theory.html)
   ========================================== */

.theory-choice-grid {
    max-width: 850px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.theory-choice-card {
    background: rgba(10, 15, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 45px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.theory-choice-card:hover {
    transform: translateY(-4px);
    border-color: rgba(138, 180, 248, 0.4);
}

.theory-choice-icon {
    font-size: 2.3rem;
    margin-bottom: 20px;
}

.theory-choice-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: #e0e6ed;
    margin-bottom: 14px;
}

.theory-choice-card p {
    color: #b6bec9;
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 28px;
    flex-grow: 1;
}

.theory-switch-link {
    display: inline-block;
    margin-top: 22px;
    color: #8ab4f8;
    text-decoration: none;
    font-size: 0.92rem;
    border-bottom: 1px dotted rgba(138, 180, 248, 0.5);
}

.theory-switch-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.theory-crosslink {
    text-align: center;
    padding: 40px 20px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
}

.theory-crosslink p {
    color: #9aa5b3;
    margin-bottom: 18px;
    font-size: 0.98rem;
}

/* ==========================================
   SECCIÓN DE TEORÍA Y DESARROLLO
   ========================================== */

.theory-section {
    background-color: #050811;
    padding: 80px 20px;
    color: #e2e8f0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.theory-container {
    max-width: 850px;
    margin: 0 auto;
}

.warning-card {
    display: flex;
    gap: 20px;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.warning-icon {
    font-size: 2rem;
    line-height: 1;
}

.warning-content h3 {
    color: #facc15;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.warning-content p {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.concept-block {
    background: rgba(10, 15, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 40px;
}

.concept-block h3 {
    font-family: 'Cinzel', serif;
    color: #8ab4f8;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.concept-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 18px;
}

.concept-block p strong {
    color: #ffffff;
}

/* Cajas de Ecuaciones */
.equation-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 20px;
    border-radius: 6px;
    margin: 12px auto;
    text-align: center;
    font-size: 1.2rem;
    color: #ffffff;
    overflow-x: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 53px;
    max-width: 100%;
}

.equation-box mjx-container[display="true"] {
    margin: 0 !important;
}

p:has(+ .equation-box) {
    margin-bottom: 0;
}

.equation-box.highlight-eq {
    background: rgba(250, 204, 21, 0.05);
}

.eq-note {
    font-size: 0.9rem !important;
    text-align: center;
    color: #94a3b8 !important;
}

.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.col-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.col-card h4 {
    color: #e0e6ed;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.col-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.math-center {
    text-align: center;
    margin-top: 10px;
}

.styled-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.styled-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #d1d5db;
}

.styled-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #8ab4f8;
    font-size: 1.2rem;
}

/* ==========================================
   ADAPTABILIDAD MÓVIL (Media Queries)
   ========================================== */

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 15px 10px;
    }

    .logo {
        font-size: 1.8rem;
        text-align: center;
    }

    .hero-subtitle {
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        top: 35vh;
        font-size: 0.9rem;
        width: 85%;
        max-width: none;
    }

    .intro-card {
        padding: 20px 15px;
    }

    .intro-card h1,
    .intro-card .intro-eyebrow {
        font-size: 1.5rem;
    }

    .intro-card h2 {
        font-size: 1.2rem;
    }

    .site-header {
        flex-direction: column;
        gap: 12px;
        padding: 18px 20px;
    }

    .page-hero { 
        padding: 60px 20px 45px; 
    }

    .page-hero h1 { 
        font-size: 1.9rem; 
    }

    .grid-two-columns,
    .theory-choice-grid {
        grid-template-columns: 1fr;
    }

    .concept-block {
        padding: 25px 20px;
    }

    .warning-card {
        flex-direction: column;
        gap: 10px;
    }

    .author-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .credentials-list li { 
        text-align: left; 
    }
}

@media (max-width: 480px) {
    .outro-links {
        flex-direction: column;
        align-items: stretch;
    }

    .outro-links .btn-explore {
        text-align: center;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) and (orientation: portrait) {
    #bg-video {
        object-position: 25% center;
    }
}