/* Estilos compartidos para todas las páginas de clientes.
   Los colores de cada cliente llegan como variables CSS (--accent, --accent2, --bg). */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --text: #f5efe8;
  --muted: rgba(245, 239, 232, .62);
  --line: rgba(255, 255, 255, .16);
  --radius: 999px;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: max(env(safe-area-inset-top), 0px) 18px max(env(safe-area-inset-bottom), 24px);
  display: flex;
  flex-direction: column;
}

/* ---------- Encabezado / hero ---------- */
.hero {
  position: relative;
  margin: 0 -18px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  z-index: -2;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 70%, transparent 100%);
}

/* Sin foto: escena de parrilla hecha con CSS (brillo de brasas + marcas de parrilla) */
.hero.no-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 45% at 22% 92%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    radial-gradient(50% 40% at 80% 100%, color-mix(in srgb, var(--accent2) 35%, transparent), transparent 70%),
    repeating-linear-gradient(-28deg, transparent 0 34px, rgba(0, 0, 0, .55) 34px 40px),
    radial-gradient(90% 70% at 50% 100%, #3a1a0c, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 75%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 30%, #000 75%, transparent 100%);
}

.hero::after {
  /* oscurece la parte superior para que el logo se lea siempre */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 42%, transparent 62%, var(--bg) 100%);
}

.brand {
  padding-top: 34px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo { width: 46px; height: 58px; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 70%, transparent)); }
.brand-logo svg, .brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-logo.image { width: auto; height: 72px; }
.brand-logo.image img { width: auto; max-width: 220px; }

.brand-name {
  margin: 2px 0 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3rem, 15vw, 3.75rem);
  line-height: 1;
  letter-spacing: .01em;
  color: #fbf3ea;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}

.brand-sub {
  margin: 10px 0 0;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .38em;
  padding-left: .38em; /* compensa el letter-spacing para centrar */
  color: var(--muted);
}

/* Chispas que suben */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.embers i {
  position: absolute;
  bottom: 18%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 6px 1px var(--accent);
  opacity: 0;
  animation: rise 5s linear infinite;
}
.embers i:nth-child(1) { left: 12%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 24%; animation-delay: 1.4s; animation-duration: 6s; }
.embers i:nth-child(3) { left: 33%; animation-delay: 2.6s; }
.embers i:nth-child(4) { left: 61%; animation-delay: .7s; animation-duration: 6.5s; }
.embers i:nth-child(5) { left: 72%; animation-delay: 3.1s; }
.embers i:nth-child(6) { left: 84%; animation-delay: 1.9s; animation-duration: 5.5s; }
.embers i:nth-child(7) { left: 18%; animation-delay: 4s; width: 2px; height: 2px; }
.embers i:nth-child(8) { left: 90%; animation-delay: 2.2s; width: 2px; height: 2px; }

@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: .9; }
  100% { transform: translate(14px, -170px); opacity: 0; }
}

/* ---------- Botones ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: -18px;
  position: relative;
}

.btn {
  --fg: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 18px 10px 20px;
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  animation: enter .5s cubic-bezier(.2, .7, .2, 1) both;
}
.btn:nth-child(1) { animation-delay: .05s; }
.btn:nth-child(2) { animation-delay: .1s; }
.btn:nth-child(3) { animation-delay: .15s; }
.btn:nth-child(4) { animation-delay: .2s; }
.btn:nth-child(5) { animation-delay: .25s; }
.btn:nth-child(n+6) { animation-delay: .3s; }

@keyframes enter { from { opacity: 0; transform: translateY(10px); } }

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }

.btn-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.btn-icon svg { width: 32px; height: 32px; }

.btn-text { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.btn-label { font-size: .86rem; font-weight: 500; opacity: .92; }
.btn-title { font-size: 1.16rem; font-weight: 700; letter-spacing: .005em; }

.btn-arrow { flex: none; width: 18px; height: 18px; opacity: .85; }

/* Variantes por tipo */
.btn--whatsapp { background: linear-gradient(180deg, #2fd35a, #1aa83f); }
.btn--google   { background: linear-gradient(180deg, #ffffff, #e9e9e9); --fg: #1d1d1f; }
.btn--google .btn-icon svg { width: 28px; height: 28px; }
.btn--instagram { background: linear-gradient(90deg, #8a3ab9 0%, #c13584 35%, #e1306c 60%, #fd7a2c 100%); }
.btn--facebook { background: linear-gradient(180deg, #2d88ff, #1466d6); }
.btn--tiktok,
.btn--web,
.btn--maps,
.btn--phone,
.btn--menu,
.btn--email,
.btn--link {
  background: linear-gradient(180deg, #1b1a19, #0f0e0d);
  border-color: var(--line);
}
.btn--maps .btn-icon, .btn--menu .btn-icon, .btn--phone .btn-icon { color: var(--accent2); }

/* ---------- Pie ---------- */
.foot { margin-top: auto; padding-top: 30px; text-align: center; }
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; }
.divider span { height: 1px; width: 80px; background: linear-gradient(90deg, transparent, var(--accent)); }
.divider span:last-child { transform: scaleX(-1); }
.divider svg { width: 12px; height: 16px; }
.tagline {
  margin: 12px 0 4px;
  font-size: .72rem;
  letter-spacing: .32em;
  padding-left: .32em;
  color: var(--muted);
}

/* ---------- Página raíz ---------- */
.root { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.root p { color: var(--muted); max-width: 30ch; line-height: 1.5; }

@media (min-width: 600px) {
  body { padding: 24px 0; }
  .card { border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .embers i { animation: none; }
  .embers { display: none; }
  .btn { transition: none; }
}
