/* Pantalla previa al lanzamiento */
body.adetcam-hold-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.adetcam-hold {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.adetcam-hold-logo {
    display: block;
    width: min(360px, 72vw);
    height: auto;
}
:root {
    --adetcam-red: #e30613;
    --adetcam-black: #111111;
    --adetcam-text: #1f1f1f;
    --adetcam-muted: #5f6673;
    --adetcam-white: #ffffff;
    --adetcam-border: rgba(17, 17, 17, 0.08);
    --adetcam-shadow: 0 18px 48px rgba(0, 0, 0, 0.13);
    --adetcam-radius-lg: 22px;
    --adetcam-radius-md: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: auto;
}

body.adetcam-coming-soon-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 88% 8%, rgba(227, 6, 19, 0.10), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    color: var(--adetcam-text);
    font-family: Arial, Helvetica, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.adetcam-coming-soon-page img,
body.adetcam-coming-soon-page video {
    max-width: 100%;
}

.adetcam-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

.adetcam-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 78px 20px 28px;
    overflow-x: hidden;
}

.adetcam-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    text-align: center;
}

/* Logo discreto superior izquierdo */
.adetcam-header {
    position: fixed;
    top: 18px;
    left: 32px;
    z-index: 10;
    margin: 0;
}

.adetcam-logo {
    display: block;
    width: 150px;
    height: auto;
}

/* Texto */
.adetcam-content {
    width: min(820px, 100%);
    margin: 0 auto 20px;
}

.adetcam-kicker {
    margin: 0 0 12px;
    color: #000000;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
}

.adetcam-content h1 {
    max-width: 900px;
    margin: 0 auto;
    color: #1d2636;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.045em;
}

.adetcam-subtitle {
    max-width: 620px;
    margin: 18px auto 0;
    color: var(--adetcam-muted);
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.45;
}

/* Vídeo: el contenedor controla el tamaño; el video conserva 16:9 real */
.adetcam-video-section {
    width: min(760px, 92vw);
    margin: 0 auto;
}

.adetcam-video-frame {
    position: relative;
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--adetcam-border);
    border-radius: var(--adetcam-radius-lg);
    box-shadow: var(--adetcam-shadow);
}

.adetcam-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: var(--adetcam-radius-md);
    object-fit: cover;
}

.adetcam-video:focus {
    outline: 3px solid rgba(227, 6, 19, 0.45);
    outline-offset: 4px;
}

/* Escritorio ancho */
@media (min-width: 1180px) and (min-height: 780px) {
    .adetcam-video-section {
        width: min(820px, 88vw);
    }
}

/* Pantallas bajas: compactamos para que entre todo */
@media (max-height: 760px) and (min-width: 760px) {
    .adetcam-hero {
        padding-top: 28px;
        padding-bottom: 1px;
    }

    .adetcam-logo {
        width: 135px;
    }

    .adetcam-content {
        margin-bottom: 14px;
    }

    .adetcam-kicker {
        margin-bottom: 0;
        font-size: 0.95rem;
    }

    .adetcam-content h1 {
        font-size: clamp(1.85rem, 3.4vw, 2.75rem);
        line-height: 1.14;
    }

    .adetcam-subtitle {
        margin-top: 12px;
        font-size: 1rem;
    }

    .adetcam-video-section {
        width: min(700px, 82vw);
    }

    .adetcam-video-frame {
        padding: 8px;
    }
}

/* Tablet */
@media (max-width: 860px) {
    .adetcam-hero {
        align-items: flex-start;
        padding: 86px 16px 28px;
    }

    .adetcam-header {
        top: 18px;
        left: 18px;
    }

    .adetcam-logo {
        width: 140px;
    }

    .adetcam-content {
        margin-bottom: 22px;
    }

    .adetcam-kicker {
        font-size: 0.95rem;
    }

    .adetcam-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.7rem);
    }

    .adetcam-video-section {
        width: min(720px, 94vw);
    }

    .adetcam-video-frame {
        padding: 8px;
        border-radius: 20px;
    }

    .adetcam-video {
        border-radius: 13px;
    }
}

/* Móvil */
@media (max-width: 520px) {
    .adetcam-hero {
        padding: 78px 14px 22px;
    }

    .adetcam-header {
        top: 16px;
        left: 16px;
    }

    .adetcam-logo {
        width: 122px;
    }

    .adetcam-content {
        margin-bottom: 20px;
    }

    .adetcam-kicker {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .adetcam-content h1 {
        font-size: clamp(1.65rem, 9vw, 2.2rem);
        line-height: 1.14;
        letter-spacing: -0.04em;
    }

    .adetcam-subtitle {
        margin-top: 12px;
        font-size: 0.95rem;
    }

    .adetcam-video-section {
        width: 100%;
    }

    .adetcam-video-frame {
        padding: 7px;
        border-radius: 18px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    }

    .adetcam-video {
        border-radius: 12px;
    }
}
/* Ocultar logo fijo al hacer scroll */
.adetcam-header {
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    will-change: opacity, transform;
}

body.adetcam-logo-hidden .adetcam-header {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
}