:root {
  color-scheme: dark;
  --bg: #06090e;
  --text: #f8fafc;
  --muted: #b8c1cf;
  --orange: #ff6a00;
  --gold: #f6b94a;
  --red: #ef3f2c;
  --blue: #1ba8ff;
  --card: rgba(7, 10, 16, .68);
  --line: rgba(255, 255, 255, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.page-shell {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #05080d;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: image-set(url("assets/la-casa-593.webp") type("image/webp"), url("assets/la-casa-593.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.03);
  animation: cinematicZoom 16s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 6, 10, .94) 0%, rgba(3, 6, 10, .74) 42%, rgba(3, 6, 10, .22) 72%, rgba(3, 6, 10, .48) 100%),
    linear-gradient(0deg, rgba(3, 6, 10, .92) 0%, transparent 45%, rgba(3, 6, 10, .38) 100%),
    radial-gradient(circle at 55% 55%, transparent 0 22%, rgba(3, 6, 10, .25) 60%, rgba(3, 6, 10, .8) 100%);
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: max(24px, env(safe-area-inset-top)) clamp(22px, 5vw, 72px) 16px;
  z-index: 3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  letter-spacing: .2em;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
}
.brand strong { color: var(--orange); }
.brand-eye {
  display: grid;
  place-items: center;
  width: 34px;
  height: 24px;
  border: 1px solid rgba(246,185,74,.8);
  border-radius: 90% 15%;
  transform: rotate(45deg);
  color: var(--blue);
  box-shadow: 0 0 18px rgba(27,168,255,.35);
}
.brand-eye::first-letter { transform: rotate(-45deg); }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 12, 18, .54);
  backdrop-filter: blur(14px);
  font-size: .86rem;
  font-weight: 700;
  transition: .25s ease;
}
.social-link svg { width: 18px; fill: currentColor; }
.social-link:hover { transform: translateY(-2px); border-color: rgba(255,106,0,.7); background: rgba(255,106,0,.12); }

.hero-content {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 34px clamp(22px, 5vw, 72px) 64px;
  z-index: 2;
}

.content-card {
  width: min(720px, 100%);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(15,20,29,.84), rgba(4,7,11,.56));
  backdrop-filter: blur(18px) saturate(115%);
  box-shadow: 0 24px 90px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  animation: cardIn .9s cubic-bezier(.2,.75,.25,1) both;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255,106,0,.35);
  border-radius: 999px;
  background: rgba(255,106,0,.1);
  color: #ffd4b2;
  font-size: .72rem;
  letter-spacing: .16em;
  font-weight: 900;
}
.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,106,0,.7);
  animation: pulse 1.8s infinite;
}

.eyebrow {
  margin: 24px 0 10px;
  color: var(--gold);
  font-size: clamp(.72rem, 1vw, .86rem);
  letter-spacing: .23em;
  font-weight: 900;
}

h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(2.35rem, 6.2vw, 5.3rem);
  line-height: .96;
  letter-spacing: -.055em;
  text-wrap: balance;
}
h1 em {
  display: inline-block;
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, #fff4dd 0%, #ffb55c 34%, #ff6a00 70%, #ef3f2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,106,0,.22));
}

.lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.65;
}
.lead strong { color: #fff; }

.tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
  color: #e9eef6;
  font-size: .76rem;
  letter-spacing: .13em;
  font-weight: 900;
}
.tagline i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }

.progress-block {
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
}
.progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: .82rem;
}
.progress-copy strong { color: #fff; letter-spacing: .08em; font-size: .74rem; }
.progress-track {
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  overflow: hidden;
}
.progress-track span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--red));
  box-shadow: 0 0 18px rgba(255,106,0,.55);
  animation: progressGlow 3.5s ease-in-out infinite alternate;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #ff8b22, #e83d22);
  color: white;
  box-shadow: 0 14px 34px rgba(239,63,44,.24);
}
.btn-primary:hover { box-shadow: 0 18px 42px rgba(239,63,44,.4); }
.btn-secondary {
  background: rgba(255,255,255,.04);
  color: #fff;
  border-color: var(--line);
}
.btn-secondary:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }

.microcopy {
  margin: 24px 0 0;
  color: rgba(226,232,240,.56);
  font-size: .76rem;
}

.corner-label {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: 22px;
  color: rgba(255,255,255,.17);
  font-size: clamp(1.5rem, 4vw, 4.5rem);
  font-weight: 950;
  letter-spacing: -.05em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  pointer-events: none;
  user-select: none;
}

.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute;
  bottom: -20px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange), 0 0 24px rgba(255,106,0,.6);
  opacity: 0;
  animation: rise var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 20;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(10,14,20,.92);
  color: #fff;
  box-shadow: 0 10px 35px rgba(0,0,0,.42);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,106,0,.6); }
  70% { box-shadow: 0 0 0 9px rgba(255,106,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,106,0,0); }
}
@keyframes rise {
  0% { transform: translate3d(0,0,0) scale(.6); opacity: 0; }
  12% { opacity: .8; }
  80% { opacity: .35; }
  100% { transform: translate3d(var(--drift), -115vh, 0) scale(1.4); opacity: 0; }
}
@keyframes cinematicZoom { from { transform: scale(1.03); } to { transform: scale(1.095); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes progressGlow { from { width: 56%; filter: saturate(.9); } to { width: 66%; filter: saturate(1.2); } }

@media (max-width: 820px) {
  /* alto de la banda donde vive el logo; el resto se calcula a partir de aquí */
  .page-shell { --logo-band: 37svh; min-height: 100svh; }

  /* en pantalla estrecha la imagen completa recorta el logo, así que se usa
     una versión ya recortada y se muestra entera en una banda superior */
  .hero-image {
    inset: 0 0 auto;
    height: var(--logo-band);
    background-image: image-set(url("assets/logo-movil.webp") type("image/webp"), url("assets/logo-movil.jpg") type("image/jpeg"));
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    transform: none;
    animation: none;
    /* el fondo del recorte es negro puro: con screen se funde exactamente
       con el fondo de la página y el rectángulo deja de notarse */
    mix-blend-mode: screen;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(3,6,10,.96) 0%, rgba(3,6,10,.6) 34%, transparent 60%),
      linear-gradient(180deg, rgba(3,6,10,.72) 0%, transparent 16%);
  }
  .site-header { padding-bottom: 6px; }
  .hero-content {
    align-items: end;
    padding-top: calc(var(--logo-band) - 46px);
    padding-bottom: 26px;
  }
  .content-card { border-radius: 24px; }
  .corner-label { display: none; }
}

@media (max-width: 560px) {
  .site-header { padding-inline: 18px; }
  .brand { font-size: .7rem; letter-spacing: .14em; }
  .social-link { padding: 0 13px; }
  .social-link span { display: none; }
  .hero-content { padding-inline: 14px; }
  .content-card { padding: 18px 17px; }
  .status-pill { padding: 6px 10px; font-size: .66rem; }
  .eyebrow { margin: 13px 0 7px; font-size: .68rem; letter-spacing: .16em; }
  h1 { font-size: clamp(1.75rem, 9vw, 2.4rem); line-height: .98; }
  .lead { margin-top: 12px; font-size: .92rem; line-height: 1.5; }
  .tagline { margin: 13px 0; gap: 7px; font-size: .64rem; }
  .progress-block { padding: 10px 0 2px; }
  .progress-copy { align-items: flex-start; flex-direction: column; gap: 3px; font-size: .76rem; }
  .progress-track { height: 6px; margin-top: 9px; }
  .actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 16px; }
  .btn { width: 100%; min-height: 46px; }
  .microcopy { margin-top: 13px; font-size: .72rem; }
}

/* móvil en horizontal: hay muy poca altura, así que el logo pasa al costado
   en vez de ocupar una banda superior */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-image {
    inset: 0 0 auto auto;
    width: 44%;
    height: 100svh;
    background-image: image-set(url("assets/logo-movil.webp") type("image/webp"), url("assets/logo-movil.jpg") type("image/jpeg"));
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform: none;
    animation: none;
    mix-blend-mode: screen;
  }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(3,6,10,.92) 0%, rgba(3,6,10,.55) 48%, transparent 72%);
  }
  .site-header { padding-top: 10px; padding-bottom: 2px; }
  .hero-content {
    align-items: start;
    padding-top: 6px;
    padding-bottom: 16px;
  }
  .content-card { width: min(58%, 540px); padding: 14px 16px; }
  .status-pill { padding: 5px 10px; font-size: .64rem; }
  .eyebrow { margin: 9px 0 5px; font-size: .66rem; }
  h1 { font-size: clamp(1.45rem, 3.2vw, 1.95rem); line-height: .98; }
  .lead { margin-top: 8px; font-size: .8rem; line-height: 1.4; }
  .tagline { margin: 9px 0; font-size: .62rem; }
  .progress-block { padding: 7px 0 2px; }
  .progress-track { height: 5px; margin-top: 7px; }
  /* en una sola fila: partidos en dos ocupan 66 px de más y sacan el botón de pantalla */
  .actions { flex-wrap: nowrap; gap: 8px; margin-top: 11px; }
  .btn { min-height: 40px; padding: 0 13px; font-size: .8rem; gap: 7px; }
  .btn svg { width: 15px; }
  .microcopy { margin-top: 9px; font-size: .7rem; }
  .corner-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
