:root {
  --black: #050505;
  --black-soft: #0d0d0f;
  --white: #f8f8f8;
  --muted: #b8b8bd;
  --red: #e00016;
  --red-bright: #ff1730;
  --line: rgba(255,255,255,.12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  background:
    radial-gradient(circle at 15% 10%, rgba(224,0,22,.14), transparent 30%),
    radial-gradient(circle at 85% 82%, rgba(224,0,22,.1), transparent 28%),
    linear-gradient(145deg, #050505 0%, #09090b 52%, #020202 100%);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.ambient {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(224,0,22,.3);
  border-radius: 50%;
  filter: blur(.2px);
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
}
.ambient-one { width: 440px; height: 440px; top: -210px; right: -120px; }
.ambient-two { width: 300px; height: 300px; bottom: -170px; left: -90px; animation-delay: -4s; }

.topbar, footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  padding: calc(26px + var(--safe-top)) 0 10px;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: .22em;
  white-space: nowrap;
}
.brand-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 22px rgba(255,23,48,.85);
}
.location {
  color: #8f8f95;
  text-align: right;
  white-space: nowrap;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: clamp(28px, 6vh, 72px) 0;
  display: grid;
  place-items: center;
}

.hero-card {
  width: min(840px, 100%);
  min-width: 0;
  text-align: center;
  position: relative;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.28), transparent 40%, rgba(224,0,22,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.logo-wrap {
  width: min(620px, 100%);
  margin: 0 auto 25px;
  border-radius: 18px;
  overflow: hidden;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.4));
}
.logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 16px;
  color: #d9d9dd;
  font-size: clamp(.72rem, 2vw, .84rem);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}
.eyebrow span {
  flex: 0 0 auto;
  width: 30px;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255,23,48,.7);
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 strong { color: var(--red-bright); font-weight: 900; }

.intro {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.categories {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
  color: #f0f0f2;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.categories i {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin: 0 auto;
}

.button {
  min-width: 0;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
  font-weight: 800;
  overflow-wrap: anywhere;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.button-primary {
  background: var(--red);
  box-shadow: 0 12px 35px rgba(224,0,22,.25);
}
.button-secondary {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
}
.button:hover { transform: translateY(-2px); }
.button-primary:hover { background: var(--red-bright); box-shadow: 0 16px 40px rgba(224,0,22,.35); }
.button-secondary:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); }
.button:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 3px; }

.contact-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #8f8f95;
  font-size: .9rem;
}
.contact-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #d5d5d8;
  text-decoration: none;
}
.contact-row a:hover { color: white; }
.contact-row svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.contact-row p { margin: 0; }

footer {
  padding: 14px 0 calc(26px + var(--safe-bottom));
  color: #6f6f75;
  font-size: .78rem;
}
footer p { margin: 0; }
.domain { letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

@keyframes float {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,16px,0) scale(1.04); }
}

/* Teléfonos y tablets pequeñas */
@media (max-width: 680px) {
  .page-shell::before { background-size: 42px 42px; opacity: .16; }
  .ambient-one { width: 300px; height: 300px; top: -170px; right: -145px; }
  .ambient-two { width: 230px; height: 230px; bottom: -135px; left: -120px; }

  .topbar, footer { width: calc(100% - 28px); }
  .topbar {
    padding-top: calc(16px + var(--safe-top));
    gap: 12px;
  }
  .mini-brand { font-size: .76rem; letter-spacing: .18em; }
  .location { font-size: .62rem; letter-spacing: .08em; }

  .hero {
    width: calc(100% - 16px);
    padding: 18px 0 26px;
  }
  .hero-card {
    border-radius: 22px;
    padding: 26px 18px 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,.38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .logo-wrap {
    width: min(100%, 480px);
    margin-bottom: 17px;
    border-radius: 12px;
  }
  .eyebrow {
    margin-bottom: 13px;
    font-size: .7rem;
    letter-spacing: .085em;
  }
  .eyebrow span { width: 20px; }
  h1 {
    font-size: clamp(2.35rem, 13.5vw, 4.2rem);
    line-height: .94;
    letter-spacing: -.045em;
  }
  .intro {
    margin-top: 18px;
    font-size: .98rem;
    line-height: 1.55;
  }
  .categories {
    gap: 8px;
    margin: 21px 0;
    font-size: .68rem;
    letter-spacing: .08em;
  }
  .categories span {
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
  }
  .categories i { display: none; }
  .actions { grid-template-columns: 1fr; gap: 10px; }
  .button {
    width: 100%;
    min-height: 56px;
    padding: 15px 16px;
    border-radius: 13px;
    font-size: .96rem;
  }
  .contact-row {
    margin-top: 14px;
    width: 100%;
  }
  .contact-row a {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
    font-weight: 750;
  }
  .contact-row span, .contact-row p { display: none; }

  footer {
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    font-size: .69rem;
  }
  footer p:first-child { max-width: 210px; line-height: 1.35; }
}

/* Teléfonos angostos: 320–390 px */
@media (max-width: 390px) {
  .topbar, footer { width: calc(100% - 20px); }
  .topbar { align-items: flex-start; }
  .mini-brand { gap: 7px; font-size: .7rem; }
  .brand-dot { width: 7px; height: 7px; }
  .location {
    max-width: 120px;
    white-space: normal;
    line-height: 1.25;
  }

  .hero { width: calc(100% - 10px); padding-top: 12px; }
  .hero-card { padding: 22px 13px 18px; border-radius: 18px; }
  .logo-wrap { margin-bottom: 14px; }
  .eyebrow { gap: 7px; font-size: .64rem; }
  .eyebrow span { width: 16px; }
  h1 { font-size: clamp(2.05rem, 13.7vw, 3.2rem); }
  .intro { font-size: .91rem; line-height: 1.48; }
  .categories { margin: 17px 0; gap: 6px; }
  .categories span { padding: 6px 7px; font-size: .62rem; }
  .button { min-height: 54px; font-size: .91rem; }
  .contact-row a { min-height: 48px; font-size: .88rem; }
  footer { padding-bottom: calc(16px + var(--safe-bottom)); }
  .domain { letter-spacing: .08em; }
}

/* Móviles en horizontal o pantallas de poca altura */
@media (max-height: 680px) and (max-width: 900px) {
  .topbar { padding-top: calc(12px + var(--safe-top)); }
  .hero { padding: 12px 0 18px; }
  .hero-card { padding-top: 20px; padding-bottom: 18px; }
  .logo-wrap { width: min(420px, 82%); margin-bottom: 12px; }
  .eyebrow { margin-bottom: 9px; }
  .intro { margin-top: 13px; line-height: 1.45; }
  .categories { margin: 14px 0; }
  .button { min-height: 50px; }
  .contact-row { margin-top: 10px; }
  footer { padding-top: 6px; padding-bottom: calc(12px + var(--safe-bottom)); }
}

@media (hover: none) and (pointer: coarse) {
  .button:hover { transform: none; }
  .button:active { transform: scale(.985); }
}

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