:root {
    --bg: #070707;
    --surface: #0e0e0e;
    --border: #1a1a1a;
    --accent: #4caf50;
    --accent-glow: rgba(76, 175, 80, 0.15);
    --text: #f0f0f0;
    --text-dim: #777;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
    --radius: 10px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    overflow-x: hidden;
    cursor: none;
}

/* ========== BANNER SUPERIOR DE VÍDEO MP4 ========== */
.top-video-banner {
    width: 100%;
    height: clamp(180px, 25vh, 320px);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.top-video-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.top-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.2) 0%, rgba(7, 7, 7, 0.8) 100%);
    pointer-events: none;
}

/* ========== PARTICULAS EN CANAL FIJO ========== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#page-wrapper {
    position: relative;
    z-index: 1;
}

/* ========== CURSOR PERSONALIZADO ========== */
.cursor {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
}

/* ========== CONTENEDORES ========== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== HEADER ========== */
header {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    height: clamp(55px, 8vw, 85px);
    filter: drop-shadow(0 0 12px var(--accent-glow));
    flex-shrink: 0;
    transition: transform 0.5s var(--ease);
}

.logo:hover {
    transform: scale(1.08) rotate(-2deg);
}

.header-line {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-sub {
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dim);
    font-weight: 300;
}

.header-name {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 900;
    letter-spacing: -0.5px;
}

.header-loc {
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    color: var(--accent);
    letter-spacing: 2px;
    font-weight: 600;
}

/* ========== HERO ========== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    letter-spacing: 6px;
    color: var(--accent);
    font-weight: 700;
    background: var(--accent-glow);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 9vw, 8rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 2rem;
}

.t-line {
    display: block;
    overflow: hidden;
}

.t-word {
    display: inline-block;
}

.hero-title em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent);
}

.hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 300;
    color: var(--text-dim);
    max-width: 550px;
    line-height: 1.5;
}

/* Indicador Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }
}

.scroll-text {
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    writing-mode: vertical-rl;
}

/* ========== SECCIONES Y DIVISORES ========== */
.section-divider {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: var(--accent);
    opacity: 0.3;
}

section {
    padding: clamp(5rem, 12vw, 10rem) 0;
}

.tag {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 2.5rem;
}

.heading-center {
    text-align: center;
}

.consejos-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.body-lead {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.35;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.body-secondary {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: var(--text-dim);
    line-height: 1.6;
}

/* ========== CONTENEDOR PDF (ESTILO VENTANA) ========== */
.window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.window:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(76, 175, 80, 0.1);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #161616;
    border-bottom: 1px solid var(--border);
}

.dots {
    display: flex;
    gap: 5px;
}

.dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dots span:first-child { background: #ff5f57; }
.dots span:nth-child(2) { background: #febc2e; }
.dots span:last-child { background: #28c840; }

.window-label {
    font-size: 0.65rem;
    color: #555;
    letter-spacing: 1px;
    margin-left: 6px;
}

.window-body {
    width: 100%;
    height: clamp(400px, 55vw, 650px);
    overflow: hidden;
}

.window-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== CONTENEDOR YOUTUBE ========== */
.video-desc {
    text-align: center;
    color: var(--text-dim);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    max-width: 600px;
    margin: -1rem auto 2.5rem;
    line-height: 1.5;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    background: #000;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(76, 175, 80, 0.1);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== FOOTER Y CRÉDITOS ========== */
footer {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: #020202;
    border-top: 1px solid var(--border);
}

.footer-top {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-tag {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.names {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.names span {
    font-size: clamp(0.95rem, 1.8vw, 1.3rem);
    font-weight: 600;
}

.teacher-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.teacher-label {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.teacher-name {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 600;
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-year {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: all 0.4s var(--ease);
}

.btn-back svg {
    transition: transform 0.3s ease;
}

.btn-back:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-back:hover svg {
    transform: translateX(4px);
}

/* ========== ADAPTABILIDAD MÓVIL ========== */
@media (max-width: 768px) {
    .top-video-banner {
        height: 160px;
    }

    .consejos-grid {
        grid-template-columns: 1fr;
    }

    .names {
        grid-template-columns: 1fr;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .header-row {
        gap: 1rem;
    }

    .header-line {
        display: none;
    }

    .hero {
        min-height: 75vh;
    }

    section {
        padding: 4rem 0;
    }

    .heading {
        margin-bottom: 1.5rem;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }

    .window-body {
        height: 350px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .cursor,
    .cursor-dot {
        display: none !important;
    }

    body {
        cursor: auto;
    }
}
