:root {
    --deep-blue: #07173F;
    --electric-blue: #0042A6;
    --neon-blue: #0960E1;
    --blue-yonder: #2E96F5;
    --white: #FFFFFF;
    --neon-yellow: #EAFE07;
    --martian-red: #8E1100;
    --rocket-red: #E43700;

    --font-display: 'Fira Sans', sans-serif;
    --font-body: 'Overpass', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--deep-blue);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    outline-color: var(--neon-yellow);
}

/* ---------- Ambient background layers ---------- */
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image: url('/public/patterns/orbits.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--white);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.8;
    }
}

/* ---------- Telemetry bar ---------- */
.telemetry-bar {
    position: relative;
    z-index: 3;
    background: rgba(4, 13, 38, 0.9);
    border-bottom: 1px solid rgba(46, 150, 245, 0.25);
    overflow: hidden;
    white-space: nowrap;
}

.telemetry-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0.55rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--blue-yonder);
    justify-content: center;
    flex-wrap: wrap;
}

.telemetry-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.telemetry-item.status {
    color: var(--neon-yellow);
}

.tdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-yonder);
    display: inline-block;
}

.tdot.pulse {
    background: var(--neon-yellow);
    box-shadow: 0 0 6px var(--neon-yellow);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(0, 66, 166, 0.78) 0%, rgba(7, 23, 63, 0.82) 65%);
    padding: 3rem 2rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(46, 150, 245, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(234, 254, 7, 0.05) 0%, transparent 40%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-20px, 20px) rotate(1deg);
    }

    66% {
        transform: translate(20px, -10px) rotate(-1deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--neon-yellow);
    margin-bottom: 1.75rem;
    animation: fadeInUp 1s ease-out both;
}

/* Orbit signature element */
.orbit-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 1.5rem;
    animation: fadeInDown 1s ease-out both;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(46, 150, 245, 0.4);
}

.orbit-ring.r1 {
    inset: 0;
}

.orbit-ring.r2 {
    inset: 26px;
    border-color: rgba(9, 96, 225, 0.35);
}

.orbit-ring.r3 {
    inset: 52px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.08);
}

.satellite {
    position: absolute;
    inset: 0;
    animation: spin 16s linear infinite;
}

.satellite.s2 {
    inset: 26px;
    animation-duration: 10s;
    animation-direction: reverse;
}

.satellite i {
    position: absolute;
    top: -3px;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 50%;
    background: var(--neon-yellow);
    box-shadow: 0 0 10px 2px rgba(234, 254, 7, 0.7);
}

.satellite.s2 i {
    background: var(--blue-yonder);
    box-shadow: 0 0 8px 2px rgba(46, 150, 245, 0.6);
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.main-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 328px;
    max-width: 40vw;
    filter: drop-shadow(0 10px 30px rgba(0, 66, 166, 0.6));
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.15s both;
}

.hero h1 .nasa-text {
    color: var(--rocket-red);
}

.hero h1 .space-text {
    color: var(--white);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
    color: var(--blue-yonder);
    margin-bottom: 2.75rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* Video Section */
.video-section {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 780px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.45s both;
}

.video-frame {
    position: relative;
    padding: 14px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(46, 150, 245, 0.2),
        0 0 40px rgba(9, 96, 225, 0.15);
    background: var(--deep-blue);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--neon-yellow);
    opacity: 0.85;
}

.corner.tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner.tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner.bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner.br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.video-label {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(234, 254, 7, 0.1);
    border: 1px solid var(--neon-yellow);
    border-radius: 50px;
    color: var(--neon-yellow);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    font-family: var(--font-display);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--rocket-red);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(228, 55, 0, 0.4);
}

.btn-primary:hover {
    background: var(--neon-yellow);
    color: var(--deep-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(234, 254, 7, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--blue-yonder);
}

.btn-secondary:hover {
    background: var(--blue-yonder);
    color: var(--deep-blue);
    transform: translateY(-3px);
}

/* ---------- Briefing / Countdown ---------- */
.briefing {
    position: relative;
    z-index: 1;
    background: rgba(5, 15, 48, 0.82);
    border-top: 1px solid rgba(46, 150, 245, 0.15);
    border-bottom: 1px solid rgba(46, 150, 245, 0.15);
    padding: 4rem 2rem;
}

.briefing-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.panel-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-yonder);
    margin-bottom: 1.25rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px dashed rgba(46, 150, 245, 0.2);
    font-size: 0.95rem;
}

.data-row:last-child {
    border-bottom: none;
}

.data-row .label {
    font-family: var(--font-mono);
    color: var(--blue-yonder);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 0.15rem;
}

.data-row .value {
    font-family: var(--font-body);
    font-weight: 600;
    text-align: right;
}

.countdown-panel {
    position: relative;
    background: rgba(0, 66, 166, 0.12);
    border: 1px solid rgba(46, 150, 245, 0.25);
    border-radius: 4px;
    padding: 1.75rem;
}

.countdown-panel .corner {
    width: 14px;
    height: 14px;
}

.countdown {
    display: flex;
    gap: 0.75rem;
}

.c-block {
    flex: 1;
    text-align: center;
    background: rgba(7, 23, 63, 0.6);
    border: 1px solid rgba(46, 150, 245, 0.2);
    border-radius: 4px;
    padding: 0.85rem 0.25rem;
}

.c-block span {
    display: block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--neon-yellow);
    font-variant-numeric: tabular-nums;
}

.c-block label {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-yonder);
}

/* ---------- Briefing: single column variant ---------- */
.briefing-inner--single {
    grid-template-columns: 1fr;
    max-width: 640px;
}

.briefing-inner--single .briefing-data {
    width: 100%;
}

/* ---------- Briefing: pill "Ver Ubicación" centrado ---------- */
.briefing-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.75rem;
}

.briefing-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.75rem;
}

.briefing-cta .inscripciones-link {
    margin-left: 0;
}

/* ================================================================
   CHRONO SECTION — 3D orbital countdown
   A standalone, deliberately maximal set-piece: a tilted orrery
   (three real 3D rings + counter-rotating satellites) orbiting behind
   a bank of flip cards that physically rotate in 3D on every tick.
   ================================================================ */
.chrono-section {
    position: relative;
    z-index: 1;
    background:
        radial-gradient(ellipse 60% 55% at 50% 38%, rgba(9, 96, 225, 0.28) 0%, transparent 70%),
        radial-gradient(ellipse 90% 60% at 50% 100%, rgba(228, 55, 0, 0.10) 0%, transparent 60%),
        #030a24;
    padding: 5.5rem 1.5rem 4.5rem;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid rgba(46, 150, 245, 0.18);
    border-bottom: 1px solid rgba(46, 150, 245, 0.18);
}

.chrono-section::before {
    /* scanline texture — sells the "HUD readout" feel */
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg,
            rgba(255, 255, 255, 0.025) 0px,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 3px);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.chrono-stage {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Orrery: tilted 3D rings + orbiting satellites, sits behind the clock ---- */
.orrery {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%);
    perspective: 900px;
    z-index: 0;
    pointer-events: none;
}

.orrery-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orrery-ring.ring-1 {
    border: 1px solid rgba(228, 55, 0, 0.55);
    animation: ring-spin-1 16s linear infinite;
}

.orrery-ring.ring-2 {
    inset: 44px;
    border: 1px solid rgba(46, 150, 245, 0.55);
    animation: ring-spin-2 22s linear infinite;
}

.orrery-ring.ring-3 {
    inset: 88px;
    border: 1px dashed rgba(234, 254, 7, 0.4);
    animation: ring-spin-1 11s linear infinite reverse;
}

@keyframes ring-spin-1 {
    from {
        transform: rotateX(76deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(76deg) rotateZ(360deg);
    }
}

@keyframes ring-spin-2 {
    from {
        transform: rotateX(68deg) rotateY(18deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(68deg) rotateY(18deg) rotateZ(-360deg);
    }
}

.orrery-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--neon-yellow);
    box-shadow: 0 0 16px 4px rgba(234, 254, 7, 0.7);
}

.orrery-core-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 254, 7, 0.25) 0%, transparent 70%);
    animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Satellites: classic counter-rotation trick, flattened with scaleY to
   read as an elliptical 3D orbit under the tilted rings above. */
.orrery-orbit {
    position: absolute;
    inset: 0;
}

.orrery-orbit .sat {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
}

.sat-1 {
    background: var(--blue-yonder);
    box-shadow: 0 0 10px 2px rgba(46, 150, 245, 0.8);
    animation: orbit-move-a 9s linear infinite;
}

.sat-2 {
    background: var(--rocket-red);
    box-shadow: 0 0 10px 2px rgba(228, 55, 0, 0.8);
    width: 5px;
    height: 5px;
    animation: orbit-move-b 13s linear infinite;
}

.sat-3 {
    background: var(--white);
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6);
    width: 4px;
    height: 4px;
    animation: orbit-move-c 6.5s linear infinite;
}

@keyframes orbit-move-a {
    0% {
        transform: rotate(0deg) translateX(190px) rotate(0deg) scaleY(0.32);
    }

    100% {
        transform: rotate(360deg) translateX(190px) rotate(-360deg) scaleY(0.32);
    }
}

@keyframes orbit-move-b {
    0% {
        transform: rotate(90deg) translateX(150px) rotate(-90deg) scaleY(0.4);
    }

    100% {
        transform: rotate(450deg) translateX(150px) rotate(-450deg) scaleY(0.4);
    }
}

@keyframes orbit-move-c {
    0% {
        transform: rotate(200deg) translateX(105px) rotate(-200deg) scaleY(0.5);
    }

    100% {
        transform: rotate(560deg) translateX(105px) rotate(-560deg) scaleY(0.5);
    }
}

/* ---- Flip clock: real 3D card flips, sits above the orrery ---- */
.flip-clock {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.flip-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.flip-card {
    position: relative;
    width: 84px;
    height: 96px;
    perspective: 400px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(0deg);
    transition: transform 0.65s cubic-bezier(0.6, 0.05, 0.25, 1);
}

.flip-card-inner.no-transition {
    transition: none;
}

.flip-card-inner.is-flipping {
    transform: rotateX(-180deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    backface-visibility: hidden;
    background:
        linear-gradient(180deg, rgba(46, 150, 245, 0.16) 0%, rgba(3, 10, 36, 0.9) 100%);
    border: 1px solid rgba(46, 150, 245, 0.4);
    box-shadow:
        0 0 0 1px rgba(3, 10, 36, 0.6) inset,
        0 12px 30px rgba(0, 0, 0, 0.45);
}

.flip-face::after {
    /* center hairline, like a real split-flap display */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(3, 10, 36, 0.65);
}

.flip-face span {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.85rem;
    letter-spacing: 0.02em;
    color: var(--neon-yellow);
    text-shadow: 0 0 14px rgba(234, 254, 7, 0.55);
    font-variant-numeric: tabular-nums;
}

.flip-face-back {
    transform: rotateX(180deg);
}

.flip-divider {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--blue-yonder);
    opacity: 0.6;
    padding-bottom: 2rem;
}

.flip-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-yonder);
}

.chrono-caption {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Info Section ---------- */
.info-section {
    position: relative;
    z-index: 1;
    background: rgba(7, 23, 63, 0.82);
    padding: 5rem 2rem;
}

.section-eyebrow {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-yonder);
    max-width: 1100px;
    margin: 0 auto 2.5rem;
}

.info-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    position: relative;
    background: rgba(0, 66, 166, 0.1);
    border: 1px solid rgba(46, 150, 245, 0.15);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--neon-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(9, 96, 225, 0.15);
}

.card-code {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--blue-yonder);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--neon-yellow);
}

.info-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--neon-yellow);
    filter: drop-shadow(0 0 6px rgba(234, 254, 7, 0.5));
}

.info-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.info-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ================================================================
   TEAM SHIP SLIDER — cápsula/nave con una ventana circular (ojo de
   buey) en el centro, dentro de la cual van pasando las fotos del
   equipo. Body en forma de cápsula con morro, aletas y propulsor.
   ================================================================ */
.team-section {
    position: relative;
    z-index: 1;
    background: rgba(5, 15, 48, 0.82);
    padding: 5.5rem 1.5rem;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(46, 150, 245, 0.15);
    border-bottom: 1px solid rgba(46, 150, 245, 0.15);
}

.ship-slider {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.ship-body {
    position: relative;
    height: 320px;
    margin: 2.5rem auto 0;
    max-width: 760px;
    border-radius: 160px;
    background:
        linear-gradient(180deg, rgba(46, 150, 245, 0.16) 0%, rgba(3, 10, 36, 0.92) 55%, rgba(3, 10, 36, 0.98) 100%);
    border: 1px solid rgba(46, 150, 245, 0.35);
    box-shadow:
        0 0 0 1px rgba(3, 10, 36, 0.5) inset,
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(9, 96, 225, 0.12);
}

/* Morro de la nave, apuntando a la izquierda */
.ship-nose {
    position: absolute;
    top: 50%;
    left: -1px;
    width: 120px;
    height: 320px;
    transform: translate(-96%, -50%);
    background: linear-gradient(90deg, rgba(3, 10, 36, 0) 0%, rgba(46, 150, 245, 0.22) 100%);
    clip-path: polygon(100% 0%, 100% 100%, 0% 50%);
    border-top: 1px solid rgba(46, 150, 245, 0.35);
    border-bottom: 1px solid rgba(46, 150, 245, 0.35);
}

/* Franja decorativa tipo fuselaje */
.ship-stripe {
    position: absolute;
    left: 8%;
    right: 22%;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(90deg,
            var(--neon-yellow) 0px,
            var(--neon-yellow) 14px,
            transparent 14px,
            transparent 24px);
    opacity: 0.55;
}

/* Ventana / ojo de buey central */
.ship-window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 2;
}

.ship-window-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(234, 254, 7, 0.5), rgba(46, 150, 245, 0.3));
    padding: 0;
    box-shadow:
        0 0 0 1px rgba(234, 254, 7, 0.4),
        0 0 30px rgba(234, 254, 7, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.5);
}

.ship-window-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #030a24;
}

.ship-window-glass {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(46, 150, 245, 0.08);
    box-shadow: 0 0 0 1px rgba(46, 150, 245, 0.3) inset;
}

.ship-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.6, 0.05, 0.25, 1);
}

.ship-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.ship-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(0.2) brightness(0.95) contrast(1.05);
}

.ship-slide--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(46, 150, 245, 0.18) 0%, transparent 60%),
        rgba(46, 150, 245, 0.06);
    font-size: 2.4rem;
    color: rgba(46, 150, 245, 0.45);
}

.ship-window-bolt {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(46, 150, 245, 0.6);
    box-shadow: 0 0 6px rgba(46, 150, 245, 0.6);
    z-index: 3;
}

.ship-window-bolt.b1 {
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.ship-window-bolt.b2 {
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.ship-window-bolt.b3 {
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.ship-window-bolt.b4 {
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

/* Aletas traseras, arriba y abajo */
.ship-fin {
    position: absolute;
    right: 6%;
    width: 80px;
    height: 60px;
    background: linear-gradient(160deg, rgba(228, 55, 0, 0.55), rgba(228, 55, 0, 0.15));
    border: 1px solid rgba(228, 55, 0, 0.5);
}

.ship-fin.fin-top {
    top: 0;
    transform: translateY(-55%) skewX(-18deg);
    border-radius: 4px 10px 0 0;
}

.ship-fin.fin-bottom {
    bottom: 0;
    transform: translateY(55%) skewX(18deg);
    border-radius: 0 0 10px 4px;
}

/* Propulsor con "llamas" pulsantes en el extremo derecho */
.ship-thruster {
    position: absolute;
    right: -26px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 3px;
}

.ship-thruster .flame {
    display: block;
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--neon-yellow), var(--rocket-red));
    box-shadow: 0 0 10px 2px rgba(234, 254, 7, 0.55);
    animation: flame-flicker 0.9s ease-in-out infinite;
}

.ship-thruster .f1 {
    height: 26px;
    animation-delay: 0s;
}

.ship-thruster .f2 {
    height: 38px;
    animation-delay: 0.15s;
}

.ship-thruster .f3 {
    height: 22px;
    animation-delay: 0.3s;
}

@keyframes flame-flicker {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.85;
    }

    50% {
        transform: scaleY(0.7);
        opacity: 1;
    }
}

/* Nombre / rol de la persona activa en el slider */
.ship-caption {
    margin-top: 1.75rem;
    min-height: 3.2rem;
}

.ship-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
}

.ship-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--blue-yonder);
    margin-top: 0.25rem;
}

/* Controles: flechas + puntos de navegación */
.ship-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.ship-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(46, 150, 245, 0.4);
    background: rgba(46, 150, 245, 0.1);
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ship-btn:hover,
.ship-btn:focus-visible {
    background: var(--neon-yellow);
    border-color: var(--neon-yellow);
    color: var(--deep-blue);
    transform: scale(1.08);
}

.ship-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ship-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(46, 150, 245, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.ship-dot.is-active {
    background: var(--neon-yellow);
    box-shadow: 0 0 8px rgba(234, 254, 7, 0.6);
    transform: scale(1.3);
}

@media (max-width: 720px) {
    .ship-body {
        height: 240px;
        border-radius: 120px;
        max-width: 92vw;
    }

    .ship-nose {
        width: 80px;
        height: 240px;
    }

    .ship-window {
        width: 190px;
        height: 190px;
    }

    .ship-fin {
        width: 40px;
        height: 32px;
    }

    .ship-thruster .f1 {
        height: 18px;
    }

    .ship-thruster .f2 {
        height: 27px;
    }

    .ship-thruster .f3 {
        height: 15px;
    }

    .team-section {
        padding: 4rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ship-track,
    .ship-thruster .flame,
    .ship-dot,
    .ship-btn {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 23, 63, 0.85) 0%, rgba(4, 13, 38, 0.9) 100%);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(46, 150, 245, 0.1);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-title {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--blue-yonder);
    margin-bottom: 2.5rem;
}

.footer-jerarquia {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--neon-yellow);
    text-align: center;
    margin-bottom: 1rem;
}

.institutions-panel {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(46, 150, 245, 0.15);
}

.institutions-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/public/patterns/voronoi.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.institutions-grid {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 2.75rem;
}

/* Caja de tamaño fijo por logo: esto es lo que hace que archivos muy
   distintos entre sí (cuadrados, anchos, altos) se vean parejos. */
.institution-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 100px;
}

.institution-logo-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.institution-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.15);
    opacity: 0.92;
    transition: all 0.3s ease;
}

.institution-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.06);
}

.institutions-panel--sm .institution-logo-box {
    width: 100px;
    height: 65px;
}

@media (max-width: 720px) {
    .institutions-panel--sm .institution-logo-box {
        width: 75px;
        height: 50px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(46, 150, 245, 0.1);
}

.social-ships-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-yonder);
    opacity: 0.75;
    margin-top: 0.25rem;
}

.social-ships {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin: 0.85rem 0 1.5rem;
}

.ship-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 54px;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.25s ease;
}

.ship-chip .rocket-outline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--electric-blue);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
    transition: stroke 0.25s ease, filter 0.25s ease;
}

.ship-chip .chip-icon {
    position: relative;
    z-index: 1;
    margin-top: 3px;
}

.ship-chip:hover,
.ship-chip:focus-visible {
    transform: translateY(-4px) scale(1.05);
}

.ship-chip:hover .rocket-outline,
.ship-chip:focus-visible .rocket-outline {
    filter: drop-shadow(0 0 8px currentColor);
}

.ship-chip--ig .rocket-outline {
    stroke: var(--neon-blue);
}

.ship-chip--discord .rocket-outline {
    stroke: var(--blue-yonder);
}

.ship-chip--wpp .rocket-outline {
    stroke: var(--neon-yellow);
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.4rem 0.9rem 0.4rem 0.4rem;
    border-radius: 999px;
    background: rgba(46, 150, 245, 0.06);
    border: 1px solid rgba(46, 150, 245, 0.15);
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-credit:hover {
    background: rgba(46, 150, 245, 0.12);
    border-color: rgba(46, 150, 245, 0.35);
    transform: translateY(-2px);
}

.footer-credit-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-credit span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.footer-credit strong {
    color: var(--blue-yonder);
    font-weight: 700;
}

.footer-copyright {
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .institutions-panel {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .institutions-grid {
        gap: 1.25rem 1.75rem;
    }

    .institution-logo-box {
        width: 110px;
        height: 72px;
    }

    .briefing-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .data-row .value {
        text-align: right;
        font-size: 0.85rem;
    }

    .telemetry-track {
        gap: 1.25rem;
        font-size: 0.62rem;
    }

    .orbit-wrap {
        width: 200px;
        height: 200px;
    }

    .main-logo {
        width: 100px;
    }

    .c-block span {
        font-size: 1.3rem;
    }

    .orrery {
        width: 300px;
        height: 300px;
    }

    .orrery-ring.ring-1 {
        border-width: 1px;
    }

    @keyframes orbit-move-a {
        0% {
            transform: rotate(0deg) translateX(135px) rotate(0deg) scaleY(0.32);
        }

        100% {
            transform: rotate(360deg) translateX(135px) rotate(-360deg) scaleY(0.32);
        }
    }

    @keyframes orbit-move-b {
        0% {
            transform: rotate(90deg) translateX(107px) rotate(-90deg) scaleY(0.4);
        }

        100% {
            transform: rotate(450deg) translateX(107px) rotate(-450deg) scaleY(0.4);
        }
    }

    @keyframes orbit-move-c {
        0% {
            transform: rotate(200deg) translateX(75px) rotate(-200deg) scaleY(0.5);
        }

        100% {
            transform: rotate(560deg) translateX(75px) rotate(-560deg) scaleY(0.5);
        }
    }

    .flip-card {
        width: 58px;
        height: 68px;
    }

    .flip-face span {
        font-size: 1.25rem;
    }

    .flip-divider {
        font-size: 1.1rem;
        padding-bottom: 1.4rem;
    }

    .chrono-section {
        padding: 4rem 1rem 3.5rem;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

    .satellite,
    .hero::before,
    .star,
    .tdot.pulse,
    .orrery-ring,
    .orrery-orbit .sat,
    .orrery-core-glow {
        animation: none !important;
    }

    .flip-card-inner {
        transition: none !important;
    }

    * {
        scroll-behavior: auto !important;
    }
}

/* ================================================================
   JURADO DRAWER — slides in from the left edge, overlay fades behind it
   ================================================================ */
.jurado-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(2, 7, 26, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.jurado-overlay.is-open {
    opacity: 1;
}

.jurado-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 41;
    width: min(720px, 94vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(7, 23, 63, 0.98) 0%, rgba(3, 10, 36, 0.99) 100%);
    border-right: 1px solid rgba(46, 150, 245, 0.35);
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.55);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1);
    padding: 2rem 2rem 2.5rem;
    overflow-y: auto;

    /* scrollbar fina y con la estética de la página, en vez de la gris por defecto */
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 150, 245, 0.45) transparent;
}

.jurado-modal::-webkit-scrollbar {
    width: 6px;
}

.jurado-modal::-webkit-scrollbar-track {
    background: transparent;
}

.jurado-modal::-webkit-scrollbar-thumb {
    background: rgba(46, 150, 245, 0.45);
    border-radius: 999px;
}

.jurado-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 150, 245, 0.75);
}

.jurado-modal[hidden] {
    display: none;
}

.jurado-modal.is-open {
    transform: translateX(0);
}

.jurado-modal .corner {
    border-color: var(--neon-yellow);
}

.jurado-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(46, 150, 245, 0.25);
}

.jurado-header h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.9rem;
    color: var(--white);
}

.jurado-header .panel-label {
    margin-bottom: 0.4rem;
}

.jurado-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(46, 150, 245, 0.4);
    background: rgba(46, 150, 245, 0.1);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.jurado-close:hover,
.jurado-close:focus-visible {
    background: var(--rocket-red);
    border-color: var(--rocket-red);
    transform: rotate(90deg);
}

/* Contenedor exterior: dos columnas, Honor a la izq, Evaluador a la der */
.jurado-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.jurado-group-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--neon-yellow);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(234, 254, 7, 0.2);
}

/* Grilla interior de cada grupo: una sola columna, fotos apiladas */
.jurado-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.jurado-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.jurado-photo {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(46, 150, 245, 0.25);
    background: rgba(46, 150, 245, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jurado-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(0.25) brightness(0.95);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.jurado-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(46, 150, 245, 0.18) 0%, transparent 60%),
        rgba(46, 150, 245, 0.06);
}

.jurado-photo--empty img {
    display: none;
}

.jurado-photo--empty::after {
    content: '☆';
    font-size: 1.8rem;
    color: rgba(46, 150, 245, 0.45);
}

.jurado-card:hover .jurado-photo img {
    transform: scale(1.06);
    filter: grayscale(0) brightness(1.05);
}

.jurado-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.jurado-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
}

.jurado-role {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--blue-yonder);
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 520px) {
    .jurado-modal {
        width: 100vw;
        padding: 1.5rem 1.25rem 2rem;
    }

    .jurado-groups {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .jurado-gallery {
        gap: 0.9rem;
    }

    .jurado-header h2 {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .jurado-overlay,
    .jurado-modal,
    .jurado-close,
    .jurado-photo img {
        transition: none !important;
    }
}

/* ================================================================
   MENTOR / ASESOR MODAL — desliza desde la derecha, mismo lenguaje
   visual que el drawer del jurado, con un formulario de inscripción.
   ================================================================ */
.mentor-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(2, 7, 26, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mentor-overlay.is-open {
    opacity: 1;
}

.mentor-modal {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 41;
    width: min(520px, 94vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(7, 23, 63, 0.98) 0%, rgba(3, 10, 36, 0.99) 100%);
    border-left: 1px solid rgba(46, 150, 245, 0.35);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1);
    padding: 2rem 2rem 2.5rem;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(46, 150, 245, 0.45) transparent;
}

.mentor-modal[hidden] {
    display: none;
}

.mentor-modal::-webkit-scrollbar {
    width: 6px;
}

.mentor-modal::-webkit-scrollbar-track {
    background: transparent;
}

.mentor-modal::-webkit-scrollbar-thumb {
    background: rgba(46, 150, 245, 0.45);
    border-radius: 999px;
}

.mentor-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 150, 245, 0.75);
}

.mentor-modal.is-open {
    transform: translateX(0);
}

.mentor-modal .corner {
    border-color: var(--neon-yellow);
}

.mentor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(46, 150, 245, 0.25);
}

.mentor-header h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--white);
}

.mentor-header .panel-label {
    margin-bottom: 0.4rem;
}

.mentor-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(46, 150, 245, 0.4);
    background: rgba(46, 150, 245, 0.1);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mentor-close:hover,
.mentor-close:focus-visible {
    background: var(--rocket-red);
    border-color: var(--rocket-red);
    transform: rotate(90deg);
}

/* ---- Form ---- */
.mentor-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row label,
.form-label-group {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-yonder);
}

.form-row input[type="text"],
.form-row input[type="number"] {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--white);
    background: rgba(46, 150, 245, 0.08);
    border: 1px solid rgba(46, 150, 245, 0.3);
    border-radius: 6px;
    padding: 0.75rem 0.9rem;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.form-row input[type="text"]::placeholder,
.form-row input[type="number"]::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-row input[type="text"]:focus,
.form-row input[type="number"]:focus {
    border-color: var(--neon-yellow);
    background: rgba(46, 150, 245, 0.14);
}

.form-row input[type="file"] {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(46, 150, 245, 0.08);
    border: 1px dashed rgba(46, 150, 245, 0.35);
    border-radius: 6px;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
}

.form-row input[type="file"]::file-selector-button {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--deep-blue);
    background: var(--neon-yellow);
    border: none;
    border-radius: 50px;
    padding: 0.45rem 0.9rem;
    margin-right: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.form-row input[type="file"]::file-selector-button:hover {
    transform: scale(1.05);
}

.form-hint {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
}

.form-warning {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--neon-yellow);
    background: rgba(234, 254, 7, 0.08);
    border: 1px solid rgba(234, 254, 7, 0.3);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
}

.form-warning strong {
    color: var(--white);
}

.form-warning a {
    color: #ffffff;
}

.form-warning a:hover {
    color: #cccccc;
}

.radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--white);
    background: rgba(46, 150, 245, 0.08);
    border: 1px solid rgba(46, 150, 245, 0.3);
    border-radius: 50px;
    padding: 0.55rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.radio-option input[type="radio"] {
    accent-color: var(--neon-yellow);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.radio-option:has(input:checked) {
    border-color: var(--neon-yellow);
    background: rgba(234, 254, 7, 0.1);
}

.form-error {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--rocket-red);
    background: rgba(228, 55, 0, 0.1);
    border: 1px solid rgba(228, 55, 0, 0.35);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
}

.mentor-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
}

.form-note {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

@media (max-width: 520px) {
    .mentor-modal {
        width: 100vw;
        padding: 1.5rem 1.25rem 2rem;
    }

    .mentor-header h2 {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mentor-overlay,
    .mentor-modal,
    .mentor-close,
    .form-row input,
    .radio-option {
        transition: none !important;
    }
}

/* ---------- Aviso de apertura de inscripciones ---------- */
.inscripciones-note {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--neon-yellow);
    background: rgba(234, 254, 7, 0.08);
    border: 1px solid rgba(234, 254, 7, 0.3);
    border-radius: 22px;
    padding: 0.85rem 1.4rem;
    text-align: center;
}

.inscripciones-note strong {
    color: var(--white);
    font-weight: 700;
}

@media (max-width: 720px) {
    .inscripciones-note {
        font-size: 0.7rem;
        padding: 0.45rem 0.9rem;
        text-align: center;
    }
}

.inscripciones-link {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--deep-blue);
    background: var(--neon-yellow);
    border: none;
    border-radius: 50px;
    padding: 0.3rem 0.8rem;
    margin-left: 0.4rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inscripciones-link:hover,
.inscripciones-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(234, 254, 7, 0.4);
}

@media (max-width: 720px) {
    .inscripciones-note {
        flex-wrap: wrap;
        justify-content: center;
    }

    .inscripciones-link {
        margin-left: 0;
        margin-top: 0.3rem;
    }
}

/* ================================================================
   UBICACIÓN MODAL — modal centrado (entrada distinta al drawer del
   jurado a propósito: aparece con fade + scale desde el centro) con
   mapa embebido y una galería de fotos del lugar.
   ================================================================ */
.ubicacion-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(2, 7, 26, 0.75);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ubicacion-overlay.is-open {
    opacity: 1;
}

.ubicacion-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 51;
    width: min(720px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0;
    background: linear-gradient(160deg, rgba(7, 23, 63, 0.98) 0%, rgba(3, 10, 36, 0.99) 100%);
    border: 1px solid rgba(46, 150, 245, 0.3);
    border-radius: 14px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.16, 0.8, 0.24, 1), opacity 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 150, 245, 0.45) transparent;
}

.ubicacion-modal.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.ubicacion-modal::-webkit-scrollbar {
    width: 6px;
}

.ubicacion-modal::-webkit-scrollbar-track {
    background: transparent;
}

.ubicacion-modal::-webkit-scrollbar-thumb {
    background: rgba(46, 150, 245, 0.45);
    border-radius: 999px;
}

.ubicacion-modal .corner {
    border-color: var(--neon-yellow);
}

.ubicacion-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px dashed rgba(46, 150, 245, 0.25);
}

.ubicacion-header h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.7rem;
    color: var(--white);
}

.ubicacion-header .panel-label {
    margin-bottom: 0.3rem;
}

.ubicacion-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(46, 150, 245, 0.4);
    background: rgba(46, 150, 245, 0.1);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ubicacion-close:hover,
.ubicacion-close:focus-visible {
    background: var(--rocket-red);
    border-color: var(--rocket-red);
    transform: rotate(90deg);
}

.ubicacion-map {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(46, 150, 245, 0.3);
    margin-bottom: 1.25rem;
    filter: grayscale(0.15) contrast(1.05);
}

.ubicacion-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ubicacion-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ubicacion-address {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--blue-yonder);
    letter-spacing: 0.03em;
}

.ubicacion-gallery-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-yonder);
    margin-bottom: 1rem;
}

.ubicacion-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.place-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(46, 150, 245, 0.25);
    background: rgba(46, 150, 245, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) brightness(0.95);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.place-photo:hover img {
    transform: scale(1.06);
    filter: grayscale(0) brightness(1.05);
}

.place-photo--empty {
    background:
        radial-gradient(circle at 50% 35%, rgba(46, 150, 245, 0.18) 0%, transparent 60%),
        rgba(46, 150, 245, 0.06);
}

.place-photo--empty img {
    display: none;
}

.place-photo--empty::after {
    content: '📍';
    font-size: 1.6rem;
    opacity: 0.5;
}

@media (max-width: 520px) {
    .ubicacion-modal {
        width: 94vw;
        padding: 1.5rem 1.25rem;
        max-height: 90vh;
    }

    .ubicacion-header h2 {
        font-size: 1.3rem;
    }

    .ubicacion-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ubicacion-overlay,
    .ubicacion-modal,
    .ubicacion-close,
    .place-photo img {
        transition: none !important;
    }
}

/* ================================================================
   FLOATING THANKS TAB — fijo al borde derecho, siempre centrado
   verticalmente, altura escala con el viewport (~20% de la pantalla)
   y se adapta entre dispositivos con clamp() + media query mobile.
   ================================================================ */
.thanks-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translate(0%, -50%);
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 64px;
    height: clamp(160px, 20vh, 260px);
    padding: 1rem 0.5rem;
    border: 1px solid rgba(46, 150, 245, 0.4);
    border-right: none;
    border-radius: 20px 0 0 20px;
    background: linear-gradient(160deg, rgba(46, 150, 245, 0.22) 0%, rgba(3, 10, 36, 0.96) 70%);
    box-shadow:
        -10px 10px 40px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(46, 150, 245, 0.15);
    color: var(--white);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.thanks-tab:hover,
.thanks-tab:focus-visible {
    transform: translate(0%, -50%) scale(1.04);
    box-shadow:
        -14px 10px 50px rgba(0, 0, 0, 0.55),
        0 0 34px rgba(234, 254, 7, 0.25);
}

.thanks-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(234, 254, 7, 0.12);
    color: var(--neon-yellow);
    flex-shrink: 0;
}

.thanks-tab-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .thanks-tab {
        width: 52px;
        height: clamp(130px, 18vh, 200px);
        transform: translate(0%, -50%);
    }

    .thanks-tab:hover,
    .thanks-tab:focus-visible {
        transform: translate(0%, -50%) scale(1.04);
    }

    .thanks-tab-icon {
        width: 26px;
        height: 26px;
    }

    .thanks-tab-text {
        font-size: 0.72rem;
    }
}

/* ---- Modal de agradecimientos: mismo fade+scale centrado que ubicación ---- */
.thanks-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(2, 7, 26, 0.75);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thanks-overlay.is-open {
    opacity: 1;
}

.thanks-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 51;
    width: min(820px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0;
    background: linear-gradient(160deg, rgba(7, 23, 63, 0.98) 0%, rgba(3, 10, 36, 0.99) 100%);
    border: 1px solid rgba(46, 150, 245, 0.3);
    border-radius: 14px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.16, 0.8, 0.24, 1), opacity 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 150, 245, 0.45) transparent;
}

.thanks-modal.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.thanks-modal::-webkit-scrollbar {
    width: 6px;
}

.thanks-modal::-webkit-scrollbar-track {
    background: transparent;
}

.thanks-modal::-webkit-scrollbar-thumb {
    background: rgba(46, 150, 245, 0.45);
    border-radius: 999px;
}

.thanks-modal .corner {
    border-color: var(--neon-yellow);
}

.thanks-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px dashed rgba(46, 150, 245, 0.25);
}

.thanks-header h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.7rem;
    color: var(--white);
}

.thanks-header .panel-label {
    margin-bottom: 0.3rem;
}

.thanks-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(46, 150, 245, 0.4);
    background: rgba(46, 150, 245, 0.1);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.thanks-close:hover,
.thanks-close:focus-visible {
    background: var(--rocket-red);
    border-color: var(--rocket-red);
    transform: rotate(90deg);
}

.thanks-modal .ship-slider--compact {
    max-width: 640px;
    margin: 1.5rem auto 0;
}

.thanks-modal .ship-slider--compact .ship-body {
    margin-top: 1.5rem;
}

@media (max-width: 520px) {
    .thanks-modal {
        width: 94vw;
        padding: 1.5rem 1.25rem;
    }

    .thanks-header h2 {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .thanks-tab,
    .thanks-overlay,
    .thanks-modal,
    .thanks-close {
        transition: none !important;
    }
}

/* ================================================================
   MISSION CHAT WIDGET — Tachy Bot
   ================================================================ */
.chat-fab-stage {
    position: fixed;
    bottom: 4px;
    right: 4px;
    z-index: 60;
    width: 150px;
    height: 150px;
    overflow: hidden;
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.85);
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 44px;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75));
}

.star-a {
    animation: shooting-star-a 3.4s ease-in infinite;
    animation-delay: 0.2s;
}

.star-b {
    animation: shooting-star-b 4.1s ease-in infinite;
    animation-delay: 1.6s;
}

.star-c {
    animation: shooting-star-c 3.8s ease-in infinite;
    animation-delay: 2.7s;
}

@keyframes shooting-star-a {
    0% {
        top: 4%;
        left: 96%;
        opacity: 0;
        transform: rotate(135deg) scale(0.7);
    }

    8% {
        opacity: 1;
    }

    32% {
        opacity: 1;
    }

    42% {
        top: 68%;
        left: 28%;
        opacity: 0;
        transform: rotate(135deg) scale(1);
    }

    100% {
        opacity: 0;
    }
}

@keyframes shooting-star-b {
    0% {
        top: 0%;
        left: 60%;
        opacity: 0;
        transform: rotate(135deg) scale(0.6);
    }

    10% {
        opacity: 0.9;
    }

    30% {
        opacity: 0.9;
    }

    40% {
        top: 55%;
        left: 4%;
        opacity: 0;
        transform: rotate(135deg) scale(0.9);
    }

    100% {
        opacity: 0;
    }
}

@keyframes shooting-star-c {
    0% {
        top: 14%;
        left: 100%;
        opacity: 0;
        transform: rotate(135deg) scale(0.5);
    }

    9% {
        opacity: 1;
    }

    28% {
        opacity: 1;
    }

    38% {
        top: 80%;
        left: 42%;
        opacity: 0;
        transform: rotate(135deg) scale(0.8);
    }

    100% {
        opacity: 0;
    }
}

.chat-bubble-hint {
    position: absolute;
    top: 0;
    right: 4px;
    z-index: 3;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(46, 150, 245, 0.35);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(7, 23, 63, 0.98) 0%, rgba(3, 10, 36, 0.99) 100%);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: nowrap;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(6px) scale(0.92);
    animation: chat-bubble-in 0.35s ease forwards;
    animation-delay: 1.6s;
}

.chat-bubble-hint::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 24px;
    width: 10px;
    height: 10px;
    background: rgb(4, 13, 42);
    border-right: 1px solid rgba(46, 150, 245, 0.35);
    border-bottom: 1px solid rgba(46, 150, 245, 0.35);
    transform: rotate(45deg);
    border-radius: 2px;
}

.chat-bubble-hint[hidden] {
    display: none;
}

@keyframes chat-bubble-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-fab {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 2;
    width: 92px;
    height: 92px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    animation: chat-fab-float 3.2s ease-in-out infinite;
    transition: transform 0.25s ease;
}

.chat-fab:hover,
.chat-fab:focus-visible {
    transform: scale(1.06);
}

.chat-fab-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(46, 150, 245, 0.35));
    pointer-events: none;
}

.chat-fab-close-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rocket-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.chat-fab-close-badge[hidden] {
    display: none;
}

@keyframes chat-fab-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.chat-panel {
    position: fixed;
    bottom: 118px;
    right: 24px;
    z-index: 60;
    width: min(360px, calc(100vw - 32px));
    height: min(520px, calc(100vh - 140px));
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(7, 23, 63, 0.98) 0%, rgba(3, 10, 36, 0.99) 100%);
    border: 1px solid rgba(46, 150, 245, 0.3);
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-panel[hidden] {
    display: none;
}

.chat-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px dashed rgba(46, 150, 245, 0.25);
    flex-shrink: 0;
}

.chat-header h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--white);
}

.chat-header .panel-label {
    margin-bottom: 0.2rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 150, 245, 0.45) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(46, 150, 245, 0.45);
    border-radius: 999px;
}

.chat-msg {
    max-width: 85%;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.45;
}

.chat-msg--bot {
    align-self: flex-start;
    background: rgba(46, 150, 245, 0.12);
    border: 1px solid rgba(46, 150, 245, 0.25);
    color: rgba(255, 255, 255, 0.9);
    border-bottom-left-radius: 4px;
}

.chat-msg--user {
    align-self: flex-end;
    background: var(--neon-yellow);
    color: var(--deep-blue);
    font-weight: 600;
    border-bottom-right-radius: 4px;
}

.chat-msg--typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.75rem 0.9rem;
}

.chat-msg--typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-yonder);
    animation: chat-typing-bounce 1.1s ease-in-out infinite;
}

.chat-msg--typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-msg--typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chat-typing-bounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.chat-input-row {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem;
    border-top: 1px solid rgba(46, 150, 245, 0.2);
    background: rgba(3, 10, 36, 0.6);
}

.chat-input {
    flex: 1;
    background: rgba(46, 150, 245, 0.08);
    border: 1px solid rgba(46, 150, 245, 0.25);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-input:focus {
    outline: none;
    border-color: rgba(46, 150, 245, 0.6);
}

.chat-send {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--neon-yellow);
    color: var(--deep-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.chat-send:hover,
.chat-send:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(234, 254, 7, 0.5);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 520px) {
    .chat-fab-stage {
        width: 120px;
        height: 120px;
    }

    .chat-fab {
        bottom: 10px;
        right: 10px;
        width: 72px;
        height: 72px;
    }

    .chat-panel {
        bottom: 92px;
        right: 12px;
        width: calc(100vw - 24px);
        height: min(70vh, 560px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .chat-fab,
    .chat-panel,
    .chat-send,
    .shooting-star {
        transition: none !important;
        animation: none !important;
    }

    .shooting-star {
        display: none;
    }

    .chat-msg--typing span {
        animation: none !important;
    }
}

/* ================================================================
   SPONSOR MODAL — modal centrado (fade + scale, mismo lenguaje que
   el de Ubicación) con un formulario de contacto.
   ================================================================ */
.sponsor-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(2, 7, 26, 0.75);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sponsor-overlay.is-open {
    opacity: 1;
}

.sponsor-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 51;
    width: min(520px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0;
    background: linear-gradient(160deg, rgba(7, 23, 63, 0.98) 0%, rgba(3, 10, 36, 0.99) 100%);
    border: 1px solid rgba(46, 150, 245, 0.3);
    border-radius: 14px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.16, 0.8, 0.24, 1), opacity 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 150, 245, 0.45) transparent;
}

.sponsor-modal[hidden] {
    display: none;
}

.sponsor-modal.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.sponsor-modal::-webkit-scrollbar {
    width: 6px;
}

.sponsor-modal::-webkit-scrollbar-track {
    background: transparent;
}

.sponsor-modal::-webkit-scrollbar-thumb {
    background: rgba(46, 150, 245, 0.45);
    border-radius: 999px;
}

.sponsor-modal .corner {
    border-color: var(--neon-yellow);
}

.sponsor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px dashed rgba(46, 150, 245, 0.25);
}

.sponsor-header h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--white);
}

.sponsor-header .panel-label {
    margin-bottom: 0.3rem;
}

.sponsor-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(46, 150, 245, 0.4);
    background: rgba(46, 150, 245, 0.1);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sponsor-close:hover,
.sponsor-close:focus-visible {
    background: var(--rocket-red);
    border-color: var(--rocket-red);
    transform: rotate(90deg);
}

.sponsor-intro {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.sponsor-field {
    margin-bottom: 1.15rem;
}

.sponsor-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue-yonder);
    margin-bottom: 0.45rem;
}

.sponsor-input,
.sponsor-textarea {
    width: 100%;
    background: rgba(46, 150, 245, 0.08);
    border: 1px solid rgba(46, 150, 245, 0.25);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.sponsor-textarea {
    resize: vertical;
    min-height: 90px;
}

.sponsor-input::placeholder,
.sponsor-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.sponsor-input:focus,
.sponsor-textarea:focus {
    outline: none;
    border-color: rgba(46, 150, 245, 0.7);
}

.sponsor-submit {
    width: 100%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--deep-blue);
    background: var(--neon-yellow);
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.25rem;
}

.sponsor-submit:hover,
.sponsor-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(234, 254, 7, 0.35);
}

@media (max-width: 520px) {
    .sponsor-modal {
        width: 94vw;
        padding: 1.5rem 1.25rem;
    }

    .sponsor-header h2 {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sponsor-overlay,
    .sponsor-modal,
    .sponsor-close,
    .sponsor-submit {
        transition: none !important;
    }
}

/* ================================================================
   SUCCESS MODAL — reemplaza al alert() nativo. Ícono circular con
   glow + "pop" de entrada, tarjeta centrada con el mismo lenguaje
   visual del resto de los modales.
   ================================================================ */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(2, 7, 26, 0.8);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-overlay.is-open {
    opacity: 1;
}

.success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 71;
    width: min(360px, 88vw);
    text-align: center;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    background: linear-gradient(160deg, rgba(7, 23, 63, 0.98) 0%, rgba(3, 10, 36, 0.99) 100%);
    border: 1px solid rgba(46, 150, 245, 0.3);
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    padding: 2.5rem 2rem 2rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.success-modal[hidden] {
    display: none;
}

.success-modal.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.success-badge {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--deep-blue);
    color: var(--white);
    overflow: hidden;
}

.success-badge-img {
    width: 150%;
    height: 150%;
    object-fit: cover;
}

.success-modal h3 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.success-modal p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.75rem;
}

.success-ok {
    width: 100%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--deep-blue);
    background: var(--neon-yellow);
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.success-ok:hover,
.success-ok:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(234, 254, 7, 0.35);
}

@media (prefers-reduced-motion: reduce) {

    .success-overlay,
    .success-modal,
    .success-ok {
        transition: none !important;
    }
}

.rocket-fab {
    position: fixed;
    left: 14px;
    bottom: 0;
    z-index: 35;
    display: block;
    width: 154px;
    height: 234px;
    object-fit: cover;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    overflow: visible;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
    transition: filter 0.3s ease;
}

@media (max-width: 520px) {
    .rocket-fab {
        left: 8px;
        bottom: 4px;
        width: 92px;
        height: 140px;
    }
}

.rocket-fab-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 20px;
}

@keyframes rocket-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(0, -10px) rotate(-2deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.rocket-fab:hover,
.rocket-fab:focus-visible {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 16px rgba(234, 254, 7, 0.5));
}

.rocket-fab-inner {
    position: absolute;
    inset: 0;
   transform: rotate(0deg) scale(1.3333);
    transform-origin: 50% 82%;
    transition: transform 0.25s ease;
}

.rocket-fab.is-launching .rocket-fab-inner {
    animation: rocket-tilt 1.15s cubic-bezier(0.55, 0, 0.85, 0.4) forwards;
}

@keyframes rocket-tilt {
    0% {
        transform: rotate(0deg) scale(1.3333);
        animation-timing-function: ease-in-out;
    }

    25% {
        /* termina de inclinarse en el lugar, apuntando a la dirección
           en la que va a despegar */
        transform: rotate(40deg) scale(1.3333);
    }

    100% {
        /* se mantiene fija en 40° durante todo el despegue */
        transform: rotate(40deg) scale(1.3333);
    }
}

.rocket-fab.is-resetting .rocket-fab-inner {
    transition: none !important;
    animation: none !important;
}

.rocket-fab-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transform: scale(0.75);
    transform-origin: center;
    border-radius: 20px;
}

/* ================================================================
   LLAMA DEL COHETE — 3 formas de "lengua de fuego" (paths SVG),
   turbulencia en varios ejes + brasas.
   AJUSTE: si no queda pegada a la cola del sderocket.png, tocar
   solo --flame-x / --flame-y / --flame-rot acá abajo.
   ================================================================ */
.rocket-flame {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    transform-origin: 50% 0%;
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* posiciones calculadas contra las toberas reales del sderocket1.png:
   booster izquierdo, cluster de 3 motores centrales (fusionados en
   una sola llama), booster derecho. */
.rocket-flame--left {
    left: 16.2%;
    bottom: -4.5%;
    width: 16%;
    height: 20%;
}

.rocket-flame--center {
    left: 36.4%;
    bottom: -14.6%;
    width: 24%;
    height: 28%;
}

.rocket-flame--right {
    left: 66.2%;
    bottom: -5.4%;
    width: 16%;
    height: 20%;
}

/* la llama izquierda enciende apenas arranca el despegue (maniobra
   de inclinación); centro y derecha se suman cuando termina de
   inclinarse, al 25% de rocket-tilt (1.15s * 0.25 ≈ 0.29s). */
.rocket-fab.is-launching .rocket-flame--left {
    opacity: 1;
}

.rocket-fab.is-launching .rocket-flame--center,
.rocket-fab.is-launching .rocket-flame--right {
    opacity: 1;
    transition-delay: 0.29s;
}

.rocket-fab.is-resetting .rocket-flame {
    transition: none !important;
    transition-delay: 0s !important;
}

.rocket-flame-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    transform-origin: 50% 0%;
    overflow: visible;
}

.rocket-flame-layer--outer {
    filter: blur(3.5px);
    opacity: 0.85;
    animation: flame-writhe-outer 0.7s ease-in-out infinite;
}

.rocket-flame-layer--mid {
    width: 74%;
    left: 13%;
    filter: blur(2px);
    opacity: 0.92;
    animation: flame-writhe-mid 0.46s ease-in-out infinite;
    animation-delay: 0.09s;
}

.rocket-flame-layer--core {
    width: 50%;
    left: 25%;
    filter: blur(1px);
    animation: flame-writhe-core 0.32s ease-in-out infinite;
    animation-delay: 0.05s;
}

@keyframes flame-writhe-outer {
    0% {
        opacity: 0.65;
        transform: scaleY(0.88) scaleX(0.92) skewX(-3deg) rotate(-2deg);
    }

    30% {
        opacity: 1;
        transform: scaleY(1.08) scaleX(1) skewX(2deg) rotate(1deg);
    }

    60% {
        opacity: 0.8;
        transform: scaleY(1.18) scaleX(0.94) skewX(-4deg) rotate(-3deg);
    }

    100% {
        opacity: 0.7;
        transform: scaleY(0.94) scaleX(1.04) skewX(3deg) rotate(2deg);
    }
}

@keyframes flame-writhe-mid {
    0% {
        opacity: 0.7;
        transform: scaleY(0.82) scaleX(0.9) skewX(3deg) rotate(2deg);
    }

    35% {
        opacity: 1;
        transform: scaleY(1.14) scaleX(1.05) skewX(-3deg) rotate(-2deg);
    }

    70% {
        opacity: 0.85;
        transform: scaleY(0.96) scaleX(0.96) skewX(4deg) rotate(3deg);
    }

    100% {
        opacity: 0.75;
        transform: scaleY(1.05) scaleX(0.98) skewX(-2deg) rotate(-1deg);
    }
}

@keyframes flame-writhe-core {
    0% {
        opacity: 0.75;
        transform: scaleY(0.85) skewX(-4deg) rotate(-2deg);
    }

    40% {
        opacity: 1;
        transform: scaleY(1.2) skewX(3deg) rotate(2deg);
    }

    75% {
        opacity: 0.85;
        transform: scaleY(0.95) skewX(-3deg) rotate(-1deg);
    }

    100% {
        opacity: 0.9;
        transform: scaleY(1.1) skewX(2deg) rotate(1deg);
    }
}

.ember {
    position: absolute;
    top: 55%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff3c4 0%, #ff9a3d 55%, rgba(255, 90, 20, 0) 80%);
    opacity: 0;
    animation: ember-rise 1.4s ease-in infinite;
}

.ember--1 {
    left: 30%;
    animation-delay: 0s;
}

.ember--2 {
    left: 55%;
    animation-delay: 0.45s;
}

.ember--3 {
    left: 40%;
    animation-delay: 0.85s;
}

.ember--4 {
    left: 65%;
    animation-delay: 1.15s;
}

@keyframes ember-rise {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.6);
    }

    15% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(var(--ember-drift, 6px), 60px) scale(0.2);
    }
}

.ember--1,
.ember--3 {
    --ember-drift: -8px;
}

.ember--2,
.ember--4 {
    --ember-drift: 10px;
}

/* ================================================================
   SECUENCIA DE DESPEGUE 
   ================================================================ */
.rocket-fab.is-launching {
    animation: rocket-launch 1.15s cubic-bezier(0.55, 0, 0.85, 0.4) forwards;
    pointer-events: none;
}

.rocket-fab.is-resetting {
    animation: none !important;
    transition: none !important;
}

@keyframes rocket-launch {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    25% {
        /* se queda quieto, solo inclinándose en el lugar */
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    93% {
        /* sale por arriba de la pantalla, todavía opaco */
        transform: translate(85vw, -96vh) scale(0.72);
        opacity: 1;
    }

    100% {
        /* ya invisible para el usuario, se apaga del todo */
        transform: translate(96vw, -103vh) scale(0.68);
        opacity: 0;
    }
}

/* ================================================================
   GLOBO DE DIÁLOGO del cohete
   ================================================================ */
.rocket-bubble-wrap {
    position: absolute;
    left: 50%;
    bottom: 109%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    z-index: 3;
    pointer-events: none;
    width: max-content;
    max-width: 118px;
    opacity: 0;
    animation: bubble-fade-in .45s ease-out .9s forwards;
}

.rocket-bubble {
    position: relative;
    display: block;
    padding: 6px 10px;
    background: var(--white);
    border-radius: 12px;
    color: var(--deep-blue);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    animation: bubble-bounce 2.6s ease-in-out infinite;
    animation-delay: 1.4s;
}

.rocket-bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 5px 0 5px;
    border-color: var(--white) transparent transparent transparent;
}

@keyframes bubble-fade-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(6px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes bubble-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.rocket-bubble-wrap.is-hidden {
    animation: none !important;
    opacity: 0 !important;
    transition: opacity 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {

    .rocket-bubble-wrap,
    .rocket-bubble {
        animation: none !important;
        opacity: 1;
    }
}

/* ---------- Partners por categoría (nuevo patrón) ---------- */
.partners-section {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 2rem 1.5rem;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(46, 150, 245, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "col1 col2"
        "col3 col3";
    gap: 0;
}

.partners-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/public/patterns/Rosette.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.partners-category {
    position: relative;
    z-index: 1;
    padding: 0 1.5rem;
}

.partners-category:nth-of-type(1) {
    grid-area: col1;
    border-right: 1px solid rgba(7, 23, 63, 0.1);
}

.partners-category:nth-of-type(2) {
    grid-area: col2;
}

.partners-category:nth-of-type(3) {
    grid-area: col3;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(7, 23, 63, 0.1);
}

.partners-category-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--electric-blue);
    margin-bottom: 1rem;
    text-decoration: none;
}

.partners-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
}

.partner-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 56px;
    overflow: hidden;
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.15);
    opacity: 0.92;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.06);

}

.partner-logo--zoom {
    transform: scale(1.4);
}

@media (max-width: 720px) {
    .partners-section {
        padding: 1.5rem 1.25rem 1.25rem;
        border-radius: 12px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "col1"
            "col2"
            "col3";
    }

    .partners-category {
        padding: 0;
    }

    .partners-category:nth-of-type(1) {
        border-right: none;
    }

    .partners-category:nth-of-type(2) {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(7, 23, 63, 0.1);
    }

    .partners-category:nth-of-type(3) {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .partner-logo-box {
        width: 70px;
        height: 46px;
    }

    .partners-row {
        gap: 0.85rem 1.25rem;
    }
}

.partner-logo-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ALERTA DOCENTES */
.header-title {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.meteorito-explosivo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999999;
}

.btn-meteorito {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  background: transparent;
  color: white;
  border: none !important;
  border-radius: 0;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none;
  padding: 2.25rem 3rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: -0.5rem;
  cursor: pointer;
  animation: flotarBoton 3s ease-in-out infinite, reboteBoton 1.5s ease-in-out infinite;
  transition: transform 0.3s ease;
  position: relative;
  isolation: isolate;
  z-index: 10000;
}

.btn-meteorito:focus,
.btn-meteorito:focus-visible {
  outline: none;
}

.btn-meteorito::before,
.btn-meteorito::after {
  content: '';
  position: absolute;
  clip-path: polygon(
    48% 2%, 58% 18%, 74% 4%, 78% 22%,
    94% 12%, 90% 32%, 100% 40%, 86% 48%,
    96% 62%, 80% 62%, 84% 80%, 68% 72%,
    64% 92%, 52% 78%, 42% 96%, 36% 76%,
    18% 88%, 22% 68%, 4% 70%, 14% 54%,
    0% 44%, 16% 36%, 6% 20%, 24% 24%,
    28% 6%, 40% 20%
  );
}

.btn-meteorito::before {
  inset: 0;
  background: #E43700;
  box-shadow: 0 0 20px rgba(228, 55, 0, 0.5), 0 0 40px rgba(228, 55, 0, 0.3);
  z-index: 0;
  transition: box-shadow 0.3s ease;
}

.btn-meteorito::after {
  inset: 12px;
  background: #0a0a0a;
  z-index: 1;
  transition: inset 0.3s ease, background 0.3s ease;
}

.btn-meteorito-icon,
.btn-meteorito-text {
  position: relative;
  z-index: 2;
}

.btn-meteorito:hover {
  transform: scale(1.06);
}

.btn-meteorito:hover::before {
  box-shadow: 0 0 40px rgba(228, 55, 0, 0.8), 0 0 70px rgba(228, 55, 0, 0.5);
}

.btn-meteorito:hover::after {
  inset: 8px;
  background: #1a1a1a;
}

/* Trayectoria que cruza toda la pantalla */
.meteorito-track {
  position: absolute;
  top: -100px;
  left: -100px;
  animation: cruzarPantalla 2s linear forwards;
}

.meteorito {
  font-size: 4rem;
  animation: temblorMeteorito 0.1s linear infinite;
  filter:
    drop-shadow(0 0 10px rgba(228, 55, 0, 0.8)) drop-shadow(0 0 20px rgba(142, 17, 0, 0.6));
  transform-origin: center;
}

/* Contenedor de la explosión */
.explosion-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  text-align: center;
  animation: aparecerExplosion 0.3s ease-out 1.8s forwards;
  opacity: 0;
  pointer-events: auto;
}

.explosion {
  font-size: 6rem;
  animation: explosionEfecto 0.5s ease-out 1.8s forwards;
  opacity: 0;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(142, 17, 0, 0.9));
}

.mensaje-explosion {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.5;
  text-shadow: 0 0 6px rgba(228, 55, 0, 0.5);
  background: rgba(10, 10, 10, 0.92);
  padding: 1.75rem 2rem;
  border-radius: 20px;
  border: 3px solid rgba(234, 254, 7, 0.6);
  box-shadow:
    0 0 25px rgba(228, 55, 0, 0.5),
    inset 0 0 15px rgba(255, 255, 255, 0.15);
  animation: aparecerMensaje 0.5s ease-out 2.1s forwards;
  opacity: 0;
  transform: translateY(20px);
  max-width: 600px;
  text-align: left;
}

.paso-bloque {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.paso-bloque:last-child {
  margin-bottom: 0;
}

.paso-detalle {
  margin: 0;
}

.alerta-tierra {
  color: #EAFE07;
  text-shadow: 0 0 8px rgba(234, 254, 7, 0.7);
  font-weight: 900;
}

.paso-link {
  display: inline-block;
  align-self: flex-start;
  color: #0a0a0a;
  background-color: #EAFE07;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(234, 254, 7, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paso-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(234, 254, 7, 0.8);
}

/* Animación que cruza toda la pantalla */
@keyframes cruzarPantalla {
  0% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0;
  }

  10% {
    transform: translate(150px, 150px) scale(1);
    opacity: 1;
  }

  30% {
    transform: translate(300px, 300px) scale(1.1);
    opacity: 1;
  }

  50% {
    transform: translate(450px, 450px) scale(1.2);
    opacity: 1;
  }

  70% {
    transform: translate(600px, 600px) scale(1.3);
    opacity: 1;
  }

  80% {
    transform: translate(calc(50vw - 50px), calc(50vh - 50px)) scale(1.5);
    opacity: 1;
  }

  85% {
    transform: translate(calc(50vw - 50px), calc(50vh - 50px)) scale(2);
    opacity: 0.8;
  }

  90% {
    transform: translate(calc(50vw - 50px), calc(50vh - 50px)) scale(2.5);
    opacity: 0.5;
  }

  95% {
    transform: translate(calc(50vw - 50px), calc(50vh - 50px)) scale(3);
    opacity: 0.2;
  }

  100% {
    transform: translate(calc(50vw - 50px), calc(50vh - 50px)) scale(4);
    opacity: 0;
  }
}

/* Efecto de temblor para el meteorito */
@keyframes temblorMeteorito {

  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  25% {
    transform: translateX(-1px) translateY(1px);
  }

  50% {
    transform: translateX(1px) translateY(-1px);
  }

  75% {
    transform: translateX(-1px) translateY(-1px);
  }
}

@keyframes aparecerExplosion {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes explosionEfecto {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }

  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

@keyframes aparecerMensaje {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Efectos de estela */
.meteorito-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -30px;
  width: 80px;
  height: 6px;
  background: linear-gradient(90deg,
      transparent,
      rgba(234, 254, 7, 0.9),
      rgba(234, 254, 7, 0.7),
      rgba(228, 55, 0, 0.5),
      transparent);
  border-radius: 50%;
  filter: blur(10px);
  animation: estelaMeteorito 0.15s linear infinite;
}

@keyframes estelaMeteorito {
  0% {
    transform: translateX(0) scaleX(1);
    opacity: 1;
  }

  100% {
    transform: translateX(-60px) scaleX(0.3);
    opacity: 0;
  }
}

/* Onda expansiva de la explosión */
.explosion-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle,
      rgba(234, 254, 7, 0.6) 0%,
      rgba(228, 55, 0, 0.4) 30%,
      rgba(142, 17, 0, 0.2) 60%,
      transparent 80%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ondaExpansiva 1s ease-out 1.8s forwards;
  z-index: -1;
}

@keyframes ondaExpansiva {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.7;
  }

  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .meteorito {
    font-size: 3rem;
  }

  .explosion {
    font-size: 4rem;
  }

  .mensaje-explosion {
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
    margin: 0 1rem;
  }

  @keyframes cruzarPantalla {
    0% {
      transform: translate(0, 0) scale(0.8);
      opacity: 0;
    }

    10% {
      transform: translate(80px, 80px) scale(1);
      opacity: 1;
    }

    30% {
      transform: translate(160px, 160px) scale(1.1);
      opacity: 1;
    }

    50% {
      transform: translate(240px, 240px) scale(1.2);
      opacity: 1;
    }

    70% {
      transform: translate(320px, 320px) scale(1.3);
      opacity: 1;
    }

    80% {
      transform: translate(calc(50vw - 50px), calc(50vh - 50px)) scale(1.5);
      opacity: 1;
    }

    85% {
      transform: translate(calc(50vw - 50px), calc(50vh - 50px)) scale(2);
      opacity: 0.8;
    }

    90% {
      transform: translate(calc(50vw - 50px), calc(50vh - 50px)) scale(2.5);
      opacity: 0.5;
    }

    95% {
      transform: translate(calc(50vw - 50px), calc(50vh - 50px)) scale(3);
      opacity: 0.2;
    }

    100% {
      transform: translate(calc(50vw - 50px), calc(50vh - 50px)) scale(4);
      opacity: 0;
    }
  }
}

/* Mejoras para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.btn-meteorito-icon {
  font-size: 1.9rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(234, 254, 7, 0.7));
}

.btn-meteorito-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.btn-meteorito-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.btn-meteorito-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.95;
  white-space: normal;
}

.btn-meteorito-subtitle strong {
  color: #EAFE07;
  font-weight: 800;
}

@media (max-width: 768px) {
  .btn-meteorito {
    max-width: 100%;
    padding: 0.6rem 1rem;
  }

  .btn-meteorito-title {
    font-size: 1rem;
  }

  .btn-meteorito-subtitle {
    font-size: 0.72rem;
  }

  .btn-meteorito-icon {
    font-size: 1.5rem;
  }
}

/* Flotación suave */
@keyframes flotarBoton {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Rebote sutil */
@keyframes reboteBoton {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

@media (max-width: 768px) {
  .header-title {
    justify-content: center;
    width: 100%;
  }

  .btn-meteorito {
    max-width: 92vw;
    padding: 1.5rem 2rem;
    margin: 0 auto;
  }

  .btn-meteorito::after {
    inset: 8px;
  }
}

.video-frame {
  position: relative;
  padding: 14px;
}

.video-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--neon-yellow);
  background: rgba(5, 10, 30, 0.75);
  color: var(--neon-yellow);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-arrow:hover {
  background: rgba(5, 10, 30, 0.95);
  transform: translateY(-50%) scale(1.1);
}

.video-arrow-prev {
  left: -8px;
}

.video-arrow-next {
  right: -8px;
}

.video-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.video-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-dot.is-active {
  background: var(--neon-yellow);
  transform: scale(1.2);
}

@media (max-width: 480px) {
  .video-container.video-container--instagram {
    min-height: 280px;
  }
}

@media (max-width: 600px) {
  .video-section {
    padding: 0 0.5rem;
  }

  .video-arrow-prev {
    left: 0;
  }

  .video-arrow-next {
    right: 0;
  }
}

.video-container.video-container--instagram {
  padding-bottom: 0;
  height: auto;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-blue);
}

.video-frame.video-frame--portrait {
  max-width: 340px;
  margin: 0 auto;
}

.video-frame.video-frame--portrait .video-container--instagram {
  min-height: 480px;
}

@media (max-width: 480px) {
  .video-frame.video-frame--portrait {
    max-width: 280px;
  }

  .video-frame.video-frame--portrait .video-container--instagram {
    min-height: 400px;
  }
}

/* VENTAS */
.producto-compra {
    display: flex;
    gap: 16px;
    background: var(--deep-blue);
    border: 1px solid var(--electric-blue);
    border-radius: 16px;
    padding: 16px;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.producto-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

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

.producto-titulo {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.2;
}

.producto-precio {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-yellow);
}

.producto-opciones {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.producto-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.producto-talle {
    background: var(--electric-blue);
    color: var(--white);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    padding: 4px 6px;
    font-family: var(--font-body);
}

.producto-cantidad {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cantidad-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--neon-blue);
    background: var(--electric-blue);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
}

.cantidad-btn:hover {
    background: var(--neon-blue);
}

.cantidad-input {
    width: 32px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--font-mono);
}

.producto-resumen {
    font-size: 0.78rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btn-comprar {
    background: var(--rocket-red);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-comprar:hover {
    background: var(--martian-red);
}

.btn-comprar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.producto-nota {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

@media (max-width: 480px) {
    .producto-compra {
        flex-direction: column;
        max-width: 260px;
    }

    .producto-img {
        width: 100%;
        height: 160px;
    }
}

/* para que no tape y se adapte  */
@media (max-width: 768px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20; /* por debajo de la nave (35) y el chatbot (60), nunca los tapa */
    transition: transform 0.3s ease;
  }

  .header.header--oculto {
    transform: translateY(-110%);
  }

  body {
    padding-top: 90px; /* ajustá este valor a la altura real del header en mobile */
  }
}

.fp-solicitar {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    margin-left: 0;
}