:root {
    color-scheme: dark;
    --fondo: #161112;
    --superficie: #1e1718;
    --texto: #fff1f1;
    --texto-suave: #c9aeb0;
    --marca: #ea0612;
    --marca-hover: #ff2b36;
    --marca-fuerte: #ffb4b8;
    --linea: #3d3032;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    background: var(--fondo);
    color: var(--texto);
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; position: relative; }
.container { width: min(100% - 2.5rem, 1400px); margin-inline: auto; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--marca-fuerte); outline-offset: 4px; }

/* Fondo con dos videos superpuestos para alternar sin cortes. */
.pantalla__bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #0c0c0e; }
.pantalla__bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(.78) contrast(1.05) saturate(1.1);
    transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1);
    backface-visibility: hidden;
}
.video-a { opacity: 1; z-index: 2; }
.video-b { opacity: 0; z-index: 1; }
.pantalla__overlay {
    position: fixed;
    inset: 0;
    z-index: 3;
    background: linear-gradient(90deg, rgba(12,12,14,.92) 0%, rgba(12,12,14,.78) 40%, rgba(12,12,14,.25) 65%, transparent 85%),
        linear-gradient(180deg, rgba(12,12,14,.45) 0%, transparent 25%, transparent 80%, rgba(12,12,14,.75) 100%);
    pointer-events: none;
}
.pantalla__grid {
    position: fixed;
    inset: 0;
    z-index: 4;
    background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 30% 50%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 30% 50%, black 30%, transparent 75%);
    pointer-events: none;
}

@keyframes revealCinematicDown {
    from { opacity: 0; transform: translateY(-24px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes revealCinematicUp {
    from { opacity: 0; transform: translateY(38px) scale(.97); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.cabecera {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(61,48,50,.35);
    background: rgba(22,17,18,.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: revealCinematicDown 1.3s cubic-bezier(.16,1,.3,1) .2s both;
}
.cabecera-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: clamp(.5rem,.9vw,.85rem); }
.brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; line-height: 0; }
.logo { display: block; height: clamp(2.3rem,3.2vw,3.2rem); max-width: min(40vw, 12rem); object-fit: contain; }
.boton-ingresar {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    border: 1px solid var(--marca);
    border-radius: .35rem;
    background: var(--marca);
    padding: .5rem 1.15rem;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.boton-ingresar .flecha { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #fff; color: var(--marca); transition: transform .2s ease; }
.boton-ingresar:hover { background: var(--marca-hover); border-color: var(--marca-hover); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(234,6,18,.4); }
.boton-ingresar:hover .flecha { transform: translateX(2px); color: var(--marca-hover); }

.hero {
    position: relative;
    z-index: 10;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-block: clamp(.5rem,2vh,1.5rem);
    max-width: 1400px;
    width: 100%;
    margin-inline: auto;
    /* padding-inline: clamp(1.2rem,5vw,4rem); */
}
.hero__content { max-width: 580px; min-width: 0; width: 100%; text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero__title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.95rem,3.8vw,3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.015em;
    text-transform: uppercase;
    margin-bottom: clamp(.4rem,1.1vh,.85rem);
    color: var(--texto);
    animation: revealCinematicUp 1.5s cubic-bezier(.16,1,.3,1) .4s both;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
}
.hero__title-line { display: block; white-space: nowrap; max-width: 100%; }
.dia-text {
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    line-height: 1.15;
    mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
    padding-block: .15em;
    margin-block: -.15em;
}
.dia-text__spacer { visibility: hidden; display: inline-block; white-space: nowrap; pointer-events: none; user-select: none; padding-right: .25em; }
.dia-text__item { position: absolute; left: 0; top: .15em; bottom: .15em; display: inline-flex; align-items: center; white-space: nowrap; }
.dia-text__item.is-entering { animation: diaSpringEnter .95s cubic-bezier(.16,1,.3,1) forwards; }
.dia-text__item.is-exiting { animation: diaSpringExit .45s cubic-bezier(.4,0,1,1) forwards; }
@keyframes diaSpringEnter {
    0% { transform: translateY(120%); opacity: 0; filter: blur(6px); }
    30% { opacity: 1; }
    100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes diaSpringExit {
    from { transform: translateY(0); opacity: 1; filter: blur(0); }
    to { transform: translateY(-90%); opacity: 0; filter: blur(6px); }
}
.dia-text__gradient {
    display: inline-block;
    padding-right: .2em;
    background-image: linear-gradient(90deg,#fff 50%,#ea0612 50%,#ff2b36,#ff8087,#fff);
    background-size: 250% 100%;
    background-position: 100% 0%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    white-space: nowrap;
}
.dia-text__item.is-entering .dia-text__gradient { animation: diaGradientSweep .85s cubic-bezier(.4,0,.2,1) .1s forwards; }
@keyframes diaGradientSweep { from { background-position: 100% 0%; } to { background-position: 0% 0%; } }
.hero__subtitle { font-size: clamp(.92rem,1.15vw,1.1rem); font-weight: 400; color: var(--texto-suave); max-width: 520px; line-height: 1.5; margin-bottom: clamp(.85rem,2vh,1.5rem); animation: revealCinematicUp 1.5s cubic-bezier(.16,1,.3,1) .75s both; }
.hero__usos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.65rem,1.2vw,1rem); width: 100%; max-width: 560px; margin-bottom: clamp(.9rem,2.2vh,1.6rem); list-style: none; text-align: left; }
.hero__uso-card { background: rgba(30,23,24,.7); border: 1px solid rgba(61,48,50,.7); border-left: 4px solid var(--marca); border-radius: .45rem; padding: clamp(.7rem,1.2vh,1rem) clamp(.85rem,1.2vw,1.2rem); backdrop-filter: blur(8px); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.hero__uso-card--1 { animation: revealCinematicUp 1.4s cubic-bezier(.16,1,.3,1) 1.1s both; }
.hero__uso-card--2 { animation: revealCinematicUp 1.4s cubic-bezier(.16,1,.3,1) 1.35s both; }
.hero__uso-card:hover { transform: translateY(-2px); border-color: var(--marca); box-shadow: 0 6px 20px rgba(234,6,18,.15); }
.hero__uso-card strong { display: block; font-family: 'Syne',sans-serif; color: var(--texto); font-size: clamp(1rem,1.15vw,1.15rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: .2rem; }
.hero__uso-card span { display: block; color: var(--texto-suave); font-size: clamp(.84rem,.9vw,.92rem); line-height: 1.4; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 1.1rem; width: 100%; }
.descarga-lema { width: 100%; text-align: left; margin-bottom: .1rem; color: var(--marca-fuerte); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; animation: revealCinematicUp 1.3s cubic-bezier(.16,1,.3,1) 1.6s both; }
.btn-tienda { display: inline-flex; align-items: center; gap: .85rem; background: rgba(14,12,13,.85); border: 1px solid var(--linea); border-radius: .45rem; padding: .55rem 1.35rem; color: #fff; text-decoration: none; backdrop-filter: blur(8px); transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease; min-height: 52px; animation: revealCinematicUp 1.4s cubic-bezier(.16,1,.3,1) 1.8s both; }
.btn-tienda svg { flex-shrink: 0; }
.btn-tienda-text { text-align: left; line-height: 1.2; }
.btn-tienda-text small { display: block; font-size: .75rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .05em; }
.btn-tienda-text strong { display: block; font-family: 'Syne',sans-serif; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.btn-tienda:hover { border-color: var(--marca); background: var(--superficie); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.45); }

@keyframes ctaSoftBounceRutando {
    0%,68%,100% { transform: translateY(0); box-shadow: 0 0 0 rgba(234,6,18,0); border-color: var(--marca-fuerte); }
    74% { transform: translateY(-6px); box-shadow: 0 10px 24px -2px rgba(234,6,18,.45),0 0 15px rgba(255,180,184,.35); border-color: #fff; }
    80% { transform: translateY(0); border-color: var(--marca-fuerte); }
    86% { transform: translateY(-3px); box-shadow: 0 6px 16px -2px rgba(234,6,18,.3),0 0 10px rgba(255,180,184,.2); border-color: #fff; }
    92% { transform: translateY(0); }
}
.btn-contacto-container { display: inline-flex; animation: revealCinematicUp 1.4s cubic-bezier(.16,1,.3,1) 2.05s both; }
.btn-contacto-attention { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 52px; padding: .55rem 1.6rem; border: 1px solid var(--marca-fuerte); border-radius: .45rem; background: rgba(30,23,24,.55); color: #fff; font-size: .84rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; backdrop-filter: blur(8px); transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; animation: ctaSoftBounceRutando 4.5s cubic-bezier(.2,.8,.2,1) 3.5s infinite; overflow: hidden; }
.btn-contacto-attention::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn-contacto-attention:hover::before { left: 140%; }
.btn-contacto-attention:hover { animation: none; background: var(--marca-fuerte); color: #171213; border-color: var(--marca-fuerte); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(255,180,184,.35); }
.btn-contacto-attention svg { transition: transform .25s ease; }
.btn-contacto-attention:hover svg { transform: scale(1.15); }

footer { position: relative; z-index: 20; border-top: 1px solid rgba(61,48,50,.4); background: rgba(30,23,24,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding-block: clamp(.5rem,.8vh,.75rem); font-size: .85rem; animation: revealCinematicUp 1.3s cubic-bezier(.16,1,.3,1) 2.3s both; }
footer .container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem 1.75rem; }
footer a, .movimiento-control { color: var(--marca-fuerte); text-decoration: none; transition: color .2s ease; }
footer a:hover, .movimiento-control:hover { color: #fff; text-decoration: underline; }
.movimiento-control { background: none; border: 0; cursor: pointer; font: inherit; padding: .25rem; }
.animaciones-pausadas *, .animaciones-pausadas *::before { animation-play-state: paused !important; }

@media (max-width: 992px) {
    html, body { height: auto; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; }
    body { display: flex; flex-direction: column; justify-content: flex-start; background: #0d0a0b; }
    .cabecera { order: 1; z-index: 10; }
    .pantalla__bg { order: 2; position: relative; inset: auto; z-index: 5; width: min(100% - 2rem,640px); aspect-ratio: 16 / 9; margin: .75rem auto 1.25rem; border-radius: 18px; border: 1px solid rgba(234,6,18,.28); box-shadow: 0 20px 40px -15px rgba(0,0,0,.8),0 0 35px -5px rgba(234,6,18,.25); background: #000; }
    .pantalla__bg video { object-fit: contain; background: #000; }
    .pantalla__overlay { z-index: 1; background: radial-gradient(circle at 50% 15%,rgba(234,6,18,.15),transparent 60%),linear-gradient(180deg,#130e10 0%,#0d0a0b 100%); }
    .pantalla__grid { z-index: 2; opacity: .25; }
    .hero { order: 3; justify-content: center; padding: 0 1.25rem 2.5rem; min-height: auto; flex: 1; }
    footer { order: 4; z-index: 10; }
    .hero__content { max-width: 600px; text-align: center; align-items: center; margin-inline: auto; }
    .hero__title { align-items: center; text-align: center; }
    .hero__subtitle { max-width: 520px; margin-inline: auto; text-align: center; }
    .hero__actions { justify-content: center; }
    .descarga-lema { text-align: center; }
}
@media (max-width: 768px) {
    .hero__title { font-size: clamp(1.75rem,5.5vw,2.5rem); line-height: 1.15; }
    .hero__usos { grid-template-columns: 1fr; gap: .75rem; max-width: 480px; margin-inline: auto; }
    .hero__uso-card { text-align: left; padding: .85rem 1.1rem; }
    footer .container { gap: .25rem; flex-direction: column; align-items: center; }
    footer a { display: inline-flex; align-items: center; min-height: 44px; }
    .movimiento-control { min-height: 44px; }
}
@media (max-width: 580px) {
    .pantalla__bg { width: min(100% - 1.5rem,500px); border-radius: 14px; margin: .5rem auto 1rem; }
    .container { width: min(100% - 1.75rem,1400px); }
    .hero { padding-inline: .85rem; }
    .hero__title { font-size: clamp(1.35rem,6.2vw,2.1rem); }
    .hero__subtitle { font-size: .92rem; margin-bottom: 1.1rem; }
    .hero__actions { flex-direction: column; gap: .75rem; width: 100%; max-width: 320px; margin-inline: auto; }
    .btn-tienda, .btn-contacto-container, .btn-contacto-attention { width: 100%; justify-content: center; }
    .cabecera-inner { padding-block: .65rem; }
    .boton-ingresar { padding: .45rem .9rem; font-size: .78rem; }
}
/* En ventanas bajas el contenido sigue siendo accesible mediante scroll. */
@media (min-width: 993px) and (max-height: 700px) {
    html, body { height: auto; min-height: 100dvh; overflow-y: auto; }
    body { grid-template-rows: auto 1fr auto; }
    .hero { padding-block: 1.25rem; }
}
@media (max-height: 600px) and (orientation: landscape) {
    html, body { height: auto; overflow-y: auto; }
    .hero { padding-block: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .dia-text__gradient { background: none; -webkit-text-fill-color: var(--texto); color: var(--texto); }
}
