/* Colores inspirados en pósters vintage de los 70s */
:root {
    --bar-height: 52px;
    --bar2-height: 0px;
    --total-bar-height: calc(var(--bar-height) + var(--bar2-height));

    --color-primary: #FF6B35;      /* Naranja vibrante */
    --color-secondary: #F7931E;    /* Naranja medio */
    --color-accent: #FBB03B;       /* Amarillo dorado */
    --color-purple: #7B2CBF;       /* Púrpura */
    --color-pink: #E83F6F;         /* Rosa fucsia */
    --color-teal: #00B4D8;         /* Azul turquesa */
    --color-green: #06D6A0;        /* Verde agua */
    --color-dark: #2B2D42;         /* Azul oscuro */
    --color-light: #EDF2F4;        /* Blanco crema */
    --color-yellow: #FFD60A;       /* Amarillo brillante */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-dark);
    color: var(--color-light);
    overflow: hidden;
    height: 100vh;
}

/* ===================================================
   LANDING PAGE
=================================================== */
.landing-page {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: var(--color-dark);
    overflow: hidden;
}

.landing-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.landing-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.landing-title {
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.landing-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.landing-date {
    font-size: 1rem;
    opacity: 0.55;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.landing-choices {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2.5rem 3rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    min-width: 220px;
    font-family: inherit;
}

.choice-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.choice-slides {
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    color: #fff;
}

.choice-video {
    background: linear-gradient(135deg, var(--color-teal), var(--color-purple));
    color: #fff;
}

.choice-icon {
    font-size: 2.8rem;
    line-height: 1;
}

.choice-label {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.choice-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.landing-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* ===================================================
   BACK BUTTON
=================================================== */
.back-btn {
    background: rgba(255,255,255,0.1);
    color: var(--color-light);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.45rem 1.1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.back-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Solo el botón de volver de la presentación es fixed */
.presentation-back {
    position: fixed;
    top: calc(var(--total-bar-height) + 0.8rem);
    left: 1.5rem;
    z-index: 200;
}

/* ===================================================
   VIDEO SECTION
=================================================== */
#video-section {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.video-top-bar {
    position: sticky;
    top: var(--total-bar-height);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1.5rem;
    background: rgba(43, 45, 66, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.video-top-title {
    font-size: 0.9rem;
    opacity: 0.6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.full-video-link {
    font-size: 0.9rem;
    color: var(--color-teal);
    text-decoration: none;
    border: 1px solid var(--color-teal);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    transition: background 0.2s;
}

.full-video-link:hover {
    background: var(--color-teal);
    color: var(--color-dark);
}

.video-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

/* Header del clip */
.video-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.video-badge {
    display: inline-block;
    background: var(--color-pink);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.video-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--color-light);
}

.video-speaker {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.video-context {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 1.2rem;
}

.full-video-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--color-teal);
    color: var(--color-teal);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.full-video-btn:hover {
    background: var(--color-teal);
    color: var(--color-dark);
}

/* Embed */
.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.video-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Section titles */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    letter-spacing: 0.02em;
}

/* Highlights */
.video-highlights {
    margin-bottom: 3rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.highlight-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.2s, background 0.2s;
}

.highlight-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.07);
}

.highlight-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-pink);
    margin-bottom: 0.5rem;
}

.highlight-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--color-light);
}

.highlight-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.75;
}

/* Questions */
.video-questions {
    margin-bottom: 3rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
}

.questions-list {
    list-style: none;
    counter-reset: q;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.questions-list li {
    counter-increment: q;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: 0;
    font-size: 0.97rem;
    line-height: 1.65;
    opacity: 0.88;
    border-left: 3px solid var(--color-purple);
    padding-left: 1rem;
}

.q-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-purple);
}

/* Transcript */
.video-transcript {
    margin-bottom: 3rem;
}

.transcript-note {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.transcript-block {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid transparent;
}

.transcript-block:has(.moderador) {
    border-left-color: var(--color-teal);
}

.transcript-block:has(.jorge) {
    border-left-color: var(--color-accent);
}

.transcript-speaker {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.transcript-speaker.moderador { color: var(--color-teal); }
.transcript-speaker.jorge { color: var(--color-accent); }

.transcript-block p {
    font-size: 0.95rem;
    line-height: 1.75;
    opacity: 0.85;
    margin-bottom: 0.8rem;
}

.transcript-block p:last-child { margin-bottom: 0; }

.ts {
    font-weight: 400;
    opacity: 0.5;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

.presentation-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

.slide.prev {
    transform: translateX(-100%);
}

/* Geometric Background Elements */
.geometric-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

/* Circles */
.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--color-teal);
    bottom: -50px;
    left: -50px;
    animation-delay: 1s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--color-purple);
    top: 50%;
    left: 10%;
    animation-delay: 2s;
}

/* Squares */
.square {
    position: absolute;
    opacity: 0.1;
    animation: rotate 10s linear infinite;
}

.square-1 {
    width: 250px;
    height: 250px;
    background: var(--color-accent);
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
}

.square-2 {
    width: 150px;
    height: 150px;
    background: var(--color-pink);
    bottom: 20%;
    left: 15%;
    transform: rotate(25deg);
}

/* Triangles */
.triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.12;
    animation: pulse 4s ease-in-out infinite;
}

.triangle-1 {
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid var(--color-green);
    top: 10%;
    left: 5%;
}

.triangle-2 {
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid var(--color-yellow);
    bottom: 15%;
    right: 20%;
    animation-delay: 1s;
}

/* Hexagons */
.hexagon {
    position: absolute;
    width: 200px;
    height: 116px;
    background: var(--color-purple);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.hexagon::before,
.hexagon::after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
}

.hexagon::before {
    bottom: 100%;
    border-bottom: 58px solid var(--color-purple);
}

.hexagon::after {
    top: 100%;
    border-top: 58px solid var(--color-purple);
}

.hexagon-1 {
    top: 15%;
    right: 10%;
    animation-delay: 0.5s;
}

.hexagon-2 {
    bottom: 20%;
    left: 10%;
    animation-delay: 1.5s;
}

/* Spiral */
.spiral {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: spin 15s linear infinite;
}

.spiral::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    border: 3px solid var(--color-teal);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.spiral-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Rectangles */
.rectangle {
    position: absolute;
    opacity: 0.08;
    animation: slide 12s ease-in-out infinite;
}

.rect-1 {
    width: 400px;
    height: 150px;
    background: var(--color-primary);
    top: 10%;
    left: -50px;
}

.rect-2 {
    width: 300px;
    height: 100px;
    background: var(--color-green);
    bottom: 15%;
    right: -50px;
    animation-delay: 2s;
}

/* Network Nodes */
.network-node {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--color-teal);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
}

.node-1 {
    top: 20%;
    left: 20%;
}

.node-2 {
    top: 30%;
    right: 25%;
    animation-delay: 0.5s;
}

.node-3 {
    bottom: 25%;
    left: 30%;
    animation-delay: 1s;
}

.network-line {
    position: absolute;
    height: 2px;
    background: var(--color-accent);
    opacity: 0.15;
    animation: extend 4s ease-in-out infinite;
}

.line-1 {
    width: 200px;
    top: 23%;
    left: 22%;
    transform: rotate(20deg);
}

.line-2 {
    width: 250px;
    bottom: 27%;
    right: 30%;
    transform: rotate(-30deg);
    animation-delay: 1s;
}

/* Fractal */
.fractal {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fractal::before,
.fractal::after {
    content: "";
    position: absolute;
    border: 2px solid var(--color-pink);
    opacity: 0.1;
    animation: fractalPulse 5s ease-in-out infinite;
}

.fractal::before {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.fractal::after {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(22.5deg);
    animation-delay: 0.5s;
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--color-primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-teal) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.05;
    animation: gridMove 20s linear infinite;
}

/* Warning Shape */
.warning-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 15%;
    right: 10%;
    background: var(--color-pink);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.1;
    animation: rotate 8s linear infinite;
}

/* Orbits */
.orbit {
    position: absolute;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.15;
}

.orbit-1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 20s linear infinite;
}

.orbit-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 15s linear infinite reverse;
}

/* Typography */
.main-title {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    animation: titlePulse 3s ease-in-out infinite;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.subtitle {
    font-size: 2rem;
    color: var(--color-light);
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.slide-title {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Content Boxes */
.content-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    max-width: 900px;
    width: 90%;
    animation: fadeInUp 0.8s ease-out;
}

.bullet-list {
    list-style: none;
    font-size: 1.8rem;
    line-height: 2.5;
}

.bullet-list li::before {
    content: "▸";
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 1rem;
    font-size: 2rem;
}

/* Icon Container */
.icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* SVG Styles */
.feedback-loop {
    width: 200px;
    height: 200px;
}

.loop-circle {
    fill: none;
    stroke: var(--color-teal);
    stroke-width: 4;
    animation: drawCircle 3s ease-in-out infinite;
}

.arrow {
    fill: var(--color-accent);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

/* Split Content */
.split-content {
    display: flex;
    gap: 3rem;
    width: 90%;
    max-width: 1200px;
}

.content-half {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.content-half h3 {
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-half p {
    font-size: 1.3rem;
    margin: 0.8rem 0;
    opacity: 0.9;
}

.diagram-box {
    margin: 1.5rem 0;
}

.system-box {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 3;
    animation: pulse 2s ease-in-out infinite;
}

.feedback-arrow {
    fill: none;
    stroke: var(--color-teal);
    stroke-width: 2;
    marker-end: url(#arrowhead);
    animation: dashArray 2s linear infinite;
}

.observer-circle {
    fill: var(--color-yellow);
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

.system-circle {
    fill: none;
    stroke: var(--color-teal);
    stroke-width: 2;
    animation: pulse 3s ease-in-out infinite 0.5s;
}

.reflect-arrow {
    fill: var(--color-accent);
    animation: bounce 2s ease-in-out infinite;
}

/* Quote Container */
.quote-container {
    background: rgba(255, 107, 53, 0.1);
    border-left: 5px solid var(--color-primary);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    position: relative;
}

.quote-mark {
    font-size: 5rem;
    color: var(--color-accent);
    position: absolute;
    top: -20px;
    left: 20px;
    opacity: 0.3;
}

.quote-text {
    font-size: 1.8rem;
    font-style: italic;
    margin-left: 2rem;
    line-height: 1.6;
}

/* Autopoiesis Diagram */
.autopoiesis-diagram {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.autopoiesis-diagram svg {
    width: 300px;
    height: 300px;
}

.cell-membrane {
    fill: none;
    stroke: var(--color-green);
    stroke-width: 4;
    animation: pulse 4s ease-in-out infinite;
}

.cell-inner {
    fill: rgba(6, 214, 160, 0.1);
    animation: pulse 4s ease-in-out infinite 0.5s;
}

.component {
    fill: var(--color-accent);
    animation: float 3s ease-in-out infinite;
}

.component:nth-child(4) {
    animation-delay: 0.5s;
}

.component:nth-child(5) {
    animation-delay: 1s;
}

.production-arrow {
    fill: var(--color-pink);
    animation: bounce 2s ease-in-out infinite;
}

.definition {
    font-size: 1.8rem;
    color: var(--color-accent);
    text-align: center;
    margin: 1.5rem 0;
    font-weight: 600;
}

/* Communication Diagram */
.communication-diagram {
    margin: 2rem 0;
}

.communication-diagram .node {
    fill: var(--color-teal);
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

.communication-diagram .node:nth-child(2) {
    animation-delay: 0.3s;
}

.communication-diagram .node:nth-child(3) {
    animation-delay: 0.6s;
}

.communication-diagram .connection {
    stroke: var(--color-accent);
    stroke-width: 3;
    animation: dashArray 3s linear infinite;
}

.communication-diagram .label {
    fill: var(--color-light);
    font-size: 14px;
    text-anchor: middle;
}

.key-point {
    font-size: 1.8rem;
    color: var(--color-accent);
    text-align: center;
    margin: 2rem 0;
    font-weight: 600;
    line-height: 1.6;
}

/* Systems Diagram */
.systems-diagram svg {
    width: 350px;
    height: 250px;
    margin: 2rem auto;
    display: block;
}

.environment-box {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    stroke-dasharray: 10, 5;
    animation: dashArray 3s linear infinite;
}

.system-boundary {
    fill: rgba(0, 180, 216, 0.2);
    stroke: var(--color-teal);
    stroke-width: 3;
    animation: pulse 3s ease-in-out infinite;
}

.system-label,
.env-label {
    fill: var(--color-light);
    font-size: 16px;
    text-anchor: middle;
    font-weight: 600;
}

/* Complexity Visual */
.complexity-visual svg {
    width: 400px;
    height: 250px;
    margin: 2rem auto;
    display: block;
}

.complex-network circle {
    fill: var(--color-yellow);
    animation: pulse 2s ease-in-out infinite;
}

.complex-network circle:nth-child(even) {
    animation-delay: 0.5s;
}

.complex-network line {
    stroke: var(--color-accent);
    stroke-width: 2;
    opacity: 0.6;
    animation: fadeInOut 3s ease-in-out infinite;
}

/* Grid Content */
.grid-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 90%;
    max-width: 900px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.icon-box {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.grid-item h4 {
    color: var(--color-accent);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.grid-item p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Critique Container */
.critique-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.critique-item {
    display: flex;
    align-items: center;
    background: rgba(232, 63, 111, 0.1);
    border-left: 4px solid var(--color-pink);
    padding: 1.5rem;
    border-radius: 10px;
    animation: slideInLeft 0.6s ease-out;
}

.critique-item:nth-child(1) { animation-delay: 0.1s; }
.critique-item:nth-child(2) { animation-delay: 0.2s; }
.critique-item:nth-child(3) { animation-delay: 0.3s; }
.critique-item:nth-child(4) { animation-delay: 0.4s; }

.critique-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
}

.critique-item p {
    font-size: 1.6rem;
    margin: 0;
}

/* Future List */
.future-list {
    list-style: none;
    font-size: 1.8rem;
}

.future-list li {
    padding: 1.2rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
    animation: slideInRight 0.6s ease-out;
}

.future-list li:nth-child(1) { animation-delay: 0.1s; }
.future-list li:nth-child(2) { animation-delay: 0.2s; }
.future-list li:nth-child(3) { animation-delay: 0.3s; }
.future-list li:nth-child(4) { animation-delay: 0.4s; }
.future-list li:nth-child(5) { animation-delay: 0.5s; }

/* Contact Info */
.contact-info {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Wave Animation */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.wave {
    width: 100%;
    height: 200px;
}

.wave-path {
    fill: var(--color-teal);
    opacity: 0.2;
    animation: waveMove 4s ease-in-out infinite;
}

/* Navigation Controls */
.controls {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(43, 45, 66, 0.9);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.5);
}

.nav-btn:active {
    transform: scale(0.95);
}

.slide-counter {
    font-size: 1.3rem;
    color: var(--color-light);
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-teal));
    transition: width 0.3s ease;
    width: 8.33%;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes slide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(50px);
    }
}

@keyframes extend {
    0%, 100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.2);
    }
}

@keyframes fractalPulse {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.1);
    }
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 107, 53, 0.8);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawCircle {
    0% {
        stroke-dasharray: 0, 502;
    }
    50% {
        stroke-dasharray: 502, 0;
    }
    100% {
        stroke-dasharray: 0, 502;
    }
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes dashArray {
    0% {
        stroke-dasharray: 0, 100;
    }
    50% {
        stroke-dasharray: 100, 0;
    }
    100% {
        stroke-dasharray: 0, 100;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes waveMove {
    0%, 100% {
        d: path("M0,100 Q300,50 600,100 T1200,100 L1200,200 L0,200 Z");
    }
    50% {
        d: path("M0,100 Q300,150 600,100 T1200,100 L1200,200 L0,200 Z");
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-title {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .content-box {
        padding: 2rem;
    }
    
    .bullet-list {
        font-size: 1.4rem;
    }
    
    .split-content {
        flex-direction: column;
    }
    
    .grid-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .bullet-list {
        font-size: 1.2rem;
    }
    
    .slide {
        padding: 2rem;
    }
}

/* ===================================================
   COMMENTS TICKER BAR (segunda barra — comentarios reales)
=================================================== */
#comments-ticker-bar {
    position: fixed;
    top: var(--bar-height);
    left: 0;
    right: 0;
    height: 44px;
    z-index: 2999;
    display: none;          /* oculta hasta que haya comentarios */
    align-items: center;
    gap: 1rem;
    padding: 0 1.2rem;
    background: rgba(10, 10, 22, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(251, 176, 59, 0.18);
    overflow: hidden;
}

#comments-ticker-bar.active {
    display: flex;
}

.ctbar-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.ctbar-ticker {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.ctbar-track {
    display: flex;
    width: max-content;
    animation: cticker-scroll 70s linear infinite;
}

.ctbar-track:hover {
    animation-play-state: paused;
}

.ctbar-item {
    white-space: nowrap;
    padding-right: 3rem;
    font-size: 0.86rem;
    color: var(--color-light);
    opacity: 0.9;
}

.ctbar-author {
    font-weight: 700;
    color: var(--color-accent);
    margin-right: 0.3em;
}

@keyframes cticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================================
   COMMENTS BAR (primera barra — preguntas)
=================================================== */
.comments-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--bar-height);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0 1.2rem;
    background: rgba(15, 15, 28, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
    color: var(--color-light);
    overflow: hidden;
}

/* Live dot */
.cbar-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.cbar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7); }
    70%  { box-shadow: 0 0 0 6px rgba(6, 214, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0); }
}

.cbar-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-green);
    opacity: 0.9;
}

/* Ticker */
.cbar-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.cbar-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 55s linear infinite;
}

.cbar-track:hover {
    animation-play-state: paused;
}

.cbar-item {
    white-space: nowrap;
    padding-right: 2.5rem;
    opacity: 0.75;
    font-size: 0.86rem;
    letter-spacing: 0.01em;
}

/* Estilo especial para comentarios reales en el ticker */
.cbar-item.is-comment {
    opacity: 1;
    color: var(--color-accent);
}

.cbar-item.is-comment .cbar-author {
    font-weight: 700;
    color: var(--color-teal);
}

.cbar-item.is-comment::before {
    content: '💬 ';
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Open button */
.cbar-open-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    background: var(--color-pink);
    color: #fff;
    border: none;
    padding: 0.38rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.cbar-open-btn:hover {
    background: #d0305a;
    transform: scale(1.03);
}

.cbar-open-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.15);
}

/* ===================================================
   COMMENTS DRAWER (panel lateral)
=================================================== */
.comments-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 100vw);
    height: 100vh;
    z-index: 3100;
    background: #1a1b2e;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

.comments-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.2rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    padding-top: calc(var(--bar-height) + 0.8rem);
}

.drawer-header-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 0.15rem;
}

.drawer-header-text p {
    font-size: 0.75rem;
    opacity: 0.5;
    margin: 0;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--color-light);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: background 0.2s;
    font-family: inherit;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.drawer-actions {
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drawer-scroll-btn {
    background: none;
    border: none;
    color: var(--color-teal);
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.drawer-scroll-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

/* El drawer-body contiene el div de Cusdis que a su vez inyecta un iframe */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.drawer-body #cusdis_thread_drawer iframe {
    width: 100% !important;
    min-height: 500px !important;
    border: none !important;
    display: block;
}

/* Overlay */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 3050;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ===================================================
   CLASSIC BLOG COMMENTS SECTION
=================================================== */
.comments-classic {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-classic-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.reload-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-accent);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}

.reload-btn:hover {
    background: rgba(255, 255, 255, 0.13);
}

.reload-btn:active {
    transform: rotate(180deg);
}

.comments-intro {
    font-size: 0.95rem;
    line-height: 1.65;
    opacity: 0.65;
    margin-bottom: 2rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--color-pink);
    border-radius: 0 8px 8px 0;
}

/* Cusdis classic embed — expandible */
#cusdis_thread {
    color-scheme: dark;
}

.cusdis-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    overflow: hidden;
}

#cusdis_thread iframe,
.cusdis-wrap iframe {
    width: 100% !important;
    min-height: 600px !important;
    height: auto;
    border: none !important;
    border-radius: 8px;
    display: block;
    transition: height 0.4s ease;
}

/* Scroll link from bar to classic section */
.scroll-to-comments-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-teal);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}

.scroll-to-comments-link:hover {
    opacity: 0.8;
}

/* ===================================================
   TRANSCRIPT COLLAPSIBLE TOGGLE
=================================================== */
.transcript-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-light);
    text-align: left;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    margin-bottom: 1.2rem;
}

.transcript-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(251, 176, 59, 0.3);
}

.transcript-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.transcript-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.transcript-toggle-hint {
    font-size: 0.8rem;
    opacity: 0.55;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.transcript-chevron {
    font-size: 1.6rem;
    color: var(--color-accent);
    line-height: 1;
    transition: transform 0.35s ease;
    flex-shrink: 0;
}

.transcript-toggle[aria-expanded="true"] .transcript-chevron {
    transform: rotate(180deg);
}

.transcript-content {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.transcript-content.open {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================
   SITE FOOTER
=================================================== */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(237, 242, 244, 0.7);
}

.site-footer p {
    margin: 0.25rem 0;
}

.site-footer a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(251, 176, 59, 0.4);
    transition: color 0.2s, border-color 0.2s;
}

.site-footer a:hover {
    color: var(--color-teal);
    border-bottom-color: var(--color-teal);
}

.footer-sub {
    font-size: 0.78rem;
    opacity: 0.55;
    margin-top: 0.4rem !important;
}

.landing-footer {
    position: absolute;
    bottom: 0.8rem;
    left: 0;
    right: 0;
    z-index: 5;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(237, 242, 244, 0.55);
    padding: 0 1rem;
}

.landing-footer a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.landing-footer a:hover {
    color: var(--color-teal);
}

/* ===================================================
   MOBILE PORTRAIT OPTIMIZATION
=================================================== */

/* Tablet portrait & small laptops */
@media (max-width: 900px) {
    .video-main {
        padding: 2rem 1.2rem 5rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    .video-questions {
        padding: 1.5rem 1.2rem;
    }
}

/* Phones (portrait dominant) */
@media (max-width: 640px) {
    :root {
        --bar-height: 46px;
    }

    /* Landing */
    .landing-page {
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: calc(var(--total-bar-height) + 2rem);
        padding-bottom: 4rem;
    }

    .landing-content {
        padding: 1rem;
        width: 100%;
    }

    .landing-title {
        margin-bottom: 0.6rem;
    }

    .landing-footer {
        position: static;
        margin-top: auto;
        padding-top: 2rem;
    }

    .landing-choices {
        gap: 1rem;
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .choice-btn {
        min-width: 0;
        width: 100%;
        padding: 1.5rem 1.4rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        text-align: left;
    }

    .choice-btn .choice-icon {
        font-size: 2rem;
    }

    .choice-label {
        font-size: 1.15rem;
    }

    .choice-desc {
        font-size: 0.8rem;
    }

    .landing-subtitle {
        padding: 0 1rem;
    }

    .landing-date {
        margin-bottom: 2rem;
    }

    /* Top bars */
    .comments-bar {
        gap: 0.6rem;
        padding: 0 0.7rem;
        font-size: 0.8rem;
    }

    .cbar-label {
        font-size: 0.7rem;
    }

    .cbar-item {
        font-size: 0.78rem;
        padding-right: 1.8rem;
    }

    .cbar-open-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.72rem;
    }

    .cbar-open-btn span:last-child {
        display: none;
    }

    #comments-ticker-bar {
        height: 38px;
        padding: 0 0.7rem;
        gap: 0.6rem;
    }

    .ctbar-label {
        font-size: 0.68rem;
    }

    .ctbar-label span:last-child {
        display: none;
    }

    .ctbar-item {
        font-size: 0.78rem;
        padding-right: 1.8rem;
    }

    /* Video section */
    .video-top-bar {
        padding: 0.55rem 0.8rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .video-top-title {
        display: none;
    }

    .full-video-link {
        font-size: 0.78rem;
        padding: 0.3rem 0.7rem;
    }

    .back-btn {
        font-size: 0.82rem;
        padding: 0.4rem 0.9rem;
    }

    .video-main {
        padding: 1.5rem 1rem 4rem;
    }

    .video-header {
        margin-bottom: 1.8rem;
        padding-bottom: 1.5rem;
    }

    .video-title {
        font-size: 1.5rem;
    }

    .video-speaker {
        font-size: 1rem;
    }

    .video-context {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .full-video-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1.1rem;
    }

    .video-embed-wrapper {
        margin-bottom: 2rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .highlight-card {
        padding: 1.2rem;
    }

    .video-questions {
        padding: 1.2rem 1rem;
        border-radius: 12px;
    }

    .questions-list li {
        font-size: 0.92rem;
        padding-left: 0.8rem;
    }

    /* Transcript */
    .transcript-toggle {
        padding: 0.9rem 1rem;
        border-radius: 12px;
    }

    .transcript-toggle .section-title {
        font-size: 1.15rem !important;
    }

    .transcript-toggle-hint {
        font-size: 0.72rem;
    }

    .transcript-chevron {
        font-size: 1.3rem;
    }

    .transcript-block {
        padding: 1rem;
        border-radius: 10px;
    }

    .transcript-block p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    /* Comments intro + wraps */
    .comments-intro {
        font-size: 0.88rem;
        padding: 0.8rem 1rem;
    }

    .cusdis-wrap {
        padding: 0.5rem;
        border-radius: 12px;
    }

    #cusdis_thread iframe,
    .cusdis-wrap iframe {
        min-height: 520px !important;
    }

    /* Drawer */
    .comments-drawer {
        width: 100vw;
    }

    .drawer-header {
        padding-top: calc(var(--bar-height) + 0.6rem);
    }

    /* Footer */
    .site-footer {
        margin-top: 2.5rem;
        padding: 1.5rem 0.8rem 0.8rem;
        font-size: 0.82rem;
    }

    /* ==============================
       PRESENTATION (slides) — portrait
       ============================== */
    .presentation-container {
        height: 100svh;
        height: 100vh;
    }

    .slide {
        padding: calc(var(--total-bar-height) + 3.2rem) 1rem 6.5rem;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100vh;
        height: 100svh;
    }

    .main-title {
        font-size: 2.4rem;
        letter-spacing: -0.03em;
    }

    .subtitle {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
        letter-spacing: 0.02em;
        padding: 0 0.3rem;
    }

    .content-box {
        padding: 1.2rem;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
    }

    .bullet-list {
        font-size: 1rem;
        line-height: 1.9;
    }

    .bullet-list li::before {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }

    .icon-container svg,
    .feedback-loop {
        width: 130px;
        height: 130px;
    }

    .split-content {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .content-half {
        padding: 1.2rem;
        border-radius: 14px;
    }

    .content-half h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .content-half p {
        font-size: 0.95rem;
        margin: 0.4rem 0;
    }

    .diagram-box svg {
        max-width: 160px;
        height: auto;
    }

    .quote-container {
        padding: 1.2rem 1rem 1.2rem 1.2rem;
        margin-bottom: 1.2rem;
    }

    .quote-text {
        font-size: 1.05rem;
        margin-left: 0.5rem;
        line-height: 1.5;
    }

    .quote-mark {
        font-size: 3rem;
        top: -12px;
        left: 10px;
    }

    .autopoiesis-diagram svg,
    .systems-diagram svg,
    .complexity-visual svg,
    .communication-diagram svg {
        width: 100%;
        max-width: 260px;
        height: auto;
    }

    .definition,
    .key-point {
        font-size: 1.1rem;
        margin: 1rem 0;
        line-height: 1.5;
    }

    .grid-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem;
        width: 100%;
        max-width: 100%;
    }

    .grid-item {
        padding: 1rem 0.8rem;
        border-radius: 14px;
    }

    .icon-box {
        font-size: 2.2rem;
        margin-bottom: 0.4rem;
    }

    .grid-item h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .grid-item p {
        font-size: 0.8rem;
    }

    /* Slide 9 inline-styled h3/grid */
    .slide[data-slide="9"] .content-box h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.8rem !important;
        margin-top: 1rem !important;
    }

    .slide[data-slide="9"] .content-box > div:last-of-type {
        grid-template-columns: 1fr !important;
        font-size: 0.95rem !important;
        gap: 0.6rem !important;
    }

    .slide[data-slide="9"] .content-box > div:last-of-type > div {
        padding: 0.7rem 0.9rem !important;
    }

    /* Slide 11 inline-styled panels */
    .slide[data-slide="11"] .split-content > div {
        padding: 1.1rem !important;
        border-radius: 14px !important;
        flex: none !important;
    }

    .slide[data-slide="11"] .split-content h3 {
        font-size: 1.2rem !important;
    }

    .slide[data-slide="11"] .split-content ul {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .critique-item {
        padding: 1rem;
    }

    .critique-icon {
        font-size: 1.8rem;
        margin-right: 0.8rem;
    }

    .critique-item p {
        font-size: 1rem;
    }

    /* Hide heavy decorative bg shapes that make portrait feel cluttered */
    .geometric-bg .square,
    .geometric-bg .rectangle,
    .geometric-bg .hexagon,
    .geometric-bg .fractal,
    .geometric-bg .orbit,
    .geometric-bg .warning-shape {
        display: none;
    }

    .geometric-bg .circle-1 { width: 220px; height: 220px; }
    .geometric-bg .circle-2 { width: 180px; height: 180px; }
    .geometric-bg .circle-3 { width: 120px; height: 120px; }
    .geometric-bg .triangle-1 {
        border-left-width: 80px;
        border-right-width: 80px;
        border-bottom-width: 140px;
    }
    .geometric-bg .triangle-2 {
        border-left-width: 60px;
        border-right-width: 60px;
        border-bottom-width: 100px;
    }
    .geometric-bg .spiral {
        width: 200px;
        height: 200px;
    }

    /* Controls */
    .controls {
        bottom: 1rem;
        gap: 1rem;
        padding: 0.55rem 1.1rem;
        border-radius: 40px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .slide-counter {
        font-size: 0.95rem;
        min-width: 55px;
    }

    .presentation-back {
        top: calc(var(--total-bar-height) + 0.5rem);
        left: 0.8rem;
        padding: 0.38rem 0.9rem;
        font-size: 0.8rem;
    }

    /* Wave smaller to free vertical space */
    .wave {
        height: 110px;
    }
}

/* Very narrow phones */
@media (max-width: 380px) {
    .main-title {
        font-size: 2rem;
    }

    .slide-title {
        font-size: 1.3rem;
    }

    .bullet-list {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .slide {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .content-box {
        padding: 1rem;
    }

    .choice-btn {
        padding: 1.2rem 1rem;
    }
}

/* Short viewports (landscape phones / small laptops in split screen) */
@media (max-height: 520px) and (max-width: 900px) {
    .slide {
        justify-content: flex-start;
        padding-top: calc(var(--total-bar-height) + 2.2rem);
        padding-bottom: 5rem;
        overflow-y: auto;
    }

    .controls {
        bottom: 0.5rem;
        padding: 0.4rem 0.9rem;
    }

    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .slide-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .wave {
        height: 80px;
    }
}
