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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.video-wrapper {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

.intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobile (≤767px): vídeo vertical visible, horizontal oculto */
.intro-video-desktop { display: none; }
.intro-video-mobile  { display: block; }

/* Tablet / Desktop (≥768px): vídeo horizontal visible, vertical oculto */
@media (min-width: 768px) {
    .intro-video-mobile  { display: none; }
    .intro-video-desktop { display: block; }
}

/* ── Overlay de inicio ── */
.start-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.start-text {
    font-family: 'Georgia', serif;
    color: #fff;
    font-size: clamp(1rem, 4.5vw, 1.6rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 0.75em 2.2em;
    animation: pulse 2.2s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}

.btn-skip {
    margin-top: 3.5em;
    font-family: 'Georgia', serif;
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.55em 1.6em;
    background: rgba(255, 255, 255, 0.07);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
    transition: color 0.25s, border-color 0.25s, background 0.25s;
    pointer-events: all;
}

.btn-skip:hover,
.btn-skip:focus {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.97); }
}

/* ── Overlay de fin ── */
.end-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding-bottom: max(clamp(2.5rem, 7vh, 5rem), env(safe-area-inset-bottom, 2.5rem));
    z-index: 10;
    /* Gradiente suave solo en la franja inferior */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.38) 0%, transparent 28%);
    animation: fadeInEnd 1.2s ease forwards;
}

@keyframes fadeInEnd {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.end-overlay.hidden {
    display: none;
}

/* ── Botón principal: Continuar ── */
.btn-continue {
    font-family: 'Georgia', serif;
    font-size: clamp(0.72rem, 2.2vw, 0.88rem);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    width: clamp(180px, 40vw, 260px);
    padding: 0.82em 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(156, 76, 76, 0.85);
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 2px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.3s, border-color 0.3s;
    animation: floatHint 3.5s ease-in-out 1.8s infinite;
}

@keyframes floatHint {
    0%, 80%, 100% { transform: translateY(0); }
    90%            { transform: translateY(-5px); }
}

.btn-continue:hover,
.btn-continue:focus {
    background: rgba(156, 76, 76, 1);
    border-color: #fff;
    color: #fff;
    outline: none;
}

/* ── Botón secundario: Volver a ver ── */
.btn-replay {
    font-family: 'Georgia', serif;
    font-size: clamp(0.6rem, 1.8vw, 0.75rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    width: clamp(140px, 30vw, 200px);
    padding: 0.65em 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    outline: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 2px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.3s, border-color 0.3s;
}

.btn-replay:hover,
.btn-replay:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    outline: none;
}
