/* ============================================
   SIRIO REPLAI — WhatsApp con IA para negocios
   Design tokens
   ============================================ */
:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --card: #111312;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-strong: rgba(255, 255, 255, 0.16);

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.62);
  --text-eyebrow: rgba(255, 255, 255, 0.62);

  --accent: #25d366;
  --accent-strong: #1fb955;
  --accent-soft: rgba(37, 211, 102, 0.12);
  --on-accent: #04170b;

  --font-display: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --max-width: 1180px;

  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* ============================================
   Reset
   ============================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================
   Layout utilities
   ============================================ */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--narrow { max-width: 760px; }

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
  margin: 0 0 16px;
}
.eyebrow--tight { margin-bottom: 8px; }

.h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin-bottom: 20px;
}
.h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  display: inline-block;
}
.h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}
.h3 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  display: inline-block;
}
.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 18px;
}
.lead strong { color: var(--text); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 15px 28px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; }

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--accent:hover { background: var(--accent-strong); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--card-border-strong);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { padding: 18px 34px; font-size: 16px; }
.btn--sm { padding: 12px 18px; font-size: 14px; min-height: 44px; }
.btn--block { width: 100%; }

.link-more {
  display: inline-block;
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 14px;
  border-bottom: 1px solid transparent;
}
.link-more:hover { color: var(--accent); border-color: var(--accent); }

.cite {
  color: var(--accent);
  border-bottom: 1px dotted var(--accent);
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.nav__logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  flex: 1;
  justify-content: center;
}
.nav__links a:hover { color: var(--accent); }
.nav__cta { display: none; }
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -11px;
  background: none;
  border: none;
  padding: 0;
}
.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

/* mobile menu panel */
.nav__links.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--bg);
  padding: 8px 20px 16px;
  border-bottom: 1px solid var(--card-border);
  align-items: stretch;
  gap: 0;
  font-size: 16px;
}
.nav__links.is-open a { padding: 13px 0; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}
/* Background video: sits under the text, darkened so the headline stays readable.
   Stays invisible until it is actually playing (see js/main.js). */
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero__video.is-playing { opacity: 1; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.8) 60%, var(--bg) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero__media { display: none; }
}

.hero__glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; }
.hero__title {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 920px;
  margin: 0 auto 24px;
}
.hero__title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  display: inline-block;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero__ctas { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.hero__proof {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--card-border);
}
.hero__proof p {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.hero__proof-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero__proof-icons span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--card-border-strong);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ============================================
   Stat grid (data cards)
   ============================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 40px 0 48px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.stat-card__num {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-card__label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.stat-card__source {
  font-size: 13px;
  color: var(--text-faint);
}
.stat-card__source a { color: var(--text-faint); border-bottom: 1px dotted var(--text-faint); }
.stat-card__source a:hover { color: var(--accent); border-color: var(--accent); }
.stat-card--academic { border-color: rgba(37, 211, 102, 0.35); }
.stat-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.stat-card--quote .stat-card__quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 16px;
}

.callout {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px clamp(20px, 4vw, 48px);
  margin-top: 48px;
}

/* ============================================
   Steps
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.step__num {
  display: block;
  font-size: 34px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 14px;
}
.step__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}
.step p { color: var(--text-muted); font-size: 14.5px; }

/* ============================================
   Google Maps demo
   ============================================ */
.maps-demo {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.maps-card {
  background: #16181a;
  border: 1px solid var(--card-border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-card);
}
.maps-card__header { display: flex; gap: 14px; margin-bottom: 20px; }
.maps-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.maps-card__name { font-weight: 800; font-size: 15px; }
.maps-card__stars { font-size: 13px; color: #f5b301; margin: 4px 0; }
.maps-card__stars span { color: var(--text-faint); }
.maps-card__cat { font-size: 13px; color: var(--text-faint); }
.maps-card__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.maps-card__action {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.maps-card__action--muted { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }
.maps-card__action--wa {
  background: var(--accent);
  color: var(--on-accent);
  position: relative;
}
.pulse-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.maps-card__note {
  font-size: 13px;
  color: var(--accent);
  text-align: center;
  font-weight: 700;
}
.maps-demo__arrow {
  font-size: 28px;
  color: var(--text-faint);
  display: none;
}
.maps-demo__text { flex: 1; min-width: 220px; }
.maps-demo__text p:last-child { color: var(--text-muted); font-size: 15px; }

@media (min-width: 700px) {
  .maps-demo__arrow { display: block; }
}

/* ============================================
   Pricing
   ============================================ */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.08), var(--card) 40%);
}
.price-card__badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card__name { font-size: 15px; font-weight: 800; color: var(--text-muted); margin-bottom: 10px; }
.price-card__price {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 24px;
}
.price-card__price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-faint);
  margin: 0 2px;
}
.price-card__list { margin-bottom: 28px; flex: 1; }
.price-card__list li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 9px 0;
  border-top: 1px solid var(--card-border);
  padding-left: 22px;
  position: relative;
}
.price-card__list li:first-child { border-top: none; }
.price-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.fair-use {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.fair-use summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}
.fair-use summary::-webkit-details-marker { display: none; }
.fair-use summary::after { content: "+"; float: right; color: var(--accent); font-weight: 900; }
.fair-use[open] summary::after { content: "–"; }
.fair-use p { color: var(--text-muted); font-size: 14px; margin-top: 14px; }

/* ============================================
   FAQ
   ============================================ */
.faq-list { margin-top: 40px; border-top: 1px solid var(--card-border); }
.faq-item { border-bottom: 1px solid var(--card-border); padding: 6px 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__num {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
  width: 44px;
}
.faq-item__q { font-weight: 700; font-size: 16px; flex: 1; }
.faq-item__icon {
  font-size: 20px;
  color: var(--accent);
  font-weight: 300;
  flex-shrink: 0;
}
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { padding: 0 4px 22px 60px; }
.faq-item__a p { color: var(--text-muted); font-size: 14.5px; max-width: 640px; }

/* ============================================
   CTA band
   ============================================ */
.cta-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  padding: 56px 0;
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.cta-band .h2 { margin-bottom: 0; }
@media (min-width: 760px) {
  .cta-band__inner { flex-direction: row; align-items: center; }
}

/* ============================================
   Footer
   ============================================ */
.footer { padding: 64px 0 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--card-border);
}
.footer__brand p { color: var(--text-faint); font-size: 14px; margin-top: 14px; max-width: 240px; }
.footer__contact a { color: var(--accent); font-weight: 700; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__heading {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.footer__col a, .footer__col span { color: var(--text-muted); font-size: 14px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-faint);
}

@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ============================================
   Floating WhatsApp button
   ============================================ */
.fab-wa {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  z-index: 90;
  transition: transform 0.15s ease;
}
.fab-wa svg { width: 28px; height: 28px; }
.fab-wa:hover { transform: scale(1.06); }

/* ============================================
   Cookie banner
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 95;
  background: #111312;
  border: 1px solid var(--card-border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  max-width: 620px;
  margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner:not([hidden]) { display: flex; }
.cookie-banner__text p { font-size: 14px; line-height: 1.45; color: var(--text-muted); }
.cookie-banner__text a { color: var(--accent); }
.cookie-banner__actions { display: flex; gap: 12px; }

@media (min-width: 560px) {
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================
   Mobile refinements (< 560px)
   ============================================ */
@media (max-width: 559px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; gap: 12px; }
  .cookie-banner__actions .btn { flex: 1; }

  .fab-wa { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .fab-wa svg { width: 26px; height: 26px; }

  .link-more { padding: 12px 0; margin-top: 6px; }
  .faq-item__a { padding-left: 4px; }

  .footer { padding-bottom: 88px; }
  .footer__col { gap: 0; }
  .footer__heading { margin-bottom: 8px; }
  .footer__col a { padding: 12px 0; }
}

/* very small phones (320–379px) */
@media (max-width: 379px) {
  .btn--lg { padding: 18px 22px; }
  .price-card { padding: 28px 22px; }
  .price-card__price { font-size: 30px; }
}

/* ============================================
   Legal pages
   ============================================ */
.legal-page { padding: 64px 0 96px; }
.legal-page h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 900; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 40px; }
.legal-page h2 { font-size: 20px; font-weight: 800; margin: 36px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page a { color: var(--accent); }
.legal-page .back-link { display: inline-block; margin-bottom: 40px; color: var(--text-faint); font-size: 14px; }
.legal-page .back-link:hover { color: var(--accent); }
