/* AhiVa — Landing styles */

:root {
  --amarillo-maiz: #F9C74F;
  --rojo-salsa: #D62828;
  --verde-elote: #4CAF50;
  --gris-ciudad: #2F2F2F;
  --blanco: #FFFFFF;
  --crema-tamal: #FFF4D6;
  --shadow-soft: 0 4px 24px rgba(47, 47, 47, 0.1);
  --shadow-card: 0 8px 32px rgba(47, 47, 47, 0.12);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --header-h: 4.5rem;
  --font-title: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gris-ciudad);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--rojo-salsa);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section--crema {
  background: var(--crema-tamal);
}

.section__lead {
  font-size: 1.05rem;
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section__header {
  margin-bottom: 2.5rem;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rojo-salsa);
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--amarillo-maiz);
  color: var(--gris-ciudad);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--rojo-salsa);
  color: var(--blanco);
}

.btn--secondary {
  background: var(--blanco);
  color: var(--gris-ciudad);
  border: 2px solid var(--gris-ciudad);
}

.btn--secondary:hover {
  background: var(--crema-tamal);
  border-color: var(--rojo-salsa);
  color: var(--rojo-salsa);
}

.btn--full {
  width: 100%;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 47, 47, 0.08);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--gris-ciudad);
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo__icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.logo__wordmark {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  background: none;
  border: 2px solid var(--gris-ciudad);
  border-radius: 0.5rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gris-ciudad);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: none;
}

.nav--open {
  display: flex;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--gris-ciudad);
  font-weight: 500;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--rojo-salsa);
  text-decoration: none;
}

.header__cta {
  display: none;
}

/* Mobile nav panel */
.nav-panel {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--blanco);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 99;
  overflow-y: auto;
}

.nav-panel--open {
  transform: translateX(0);
}

.nav-panel .nav__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.nav-panel .nav__link {
  font-size: 1.15rem;
}

.nav-panel .btn {
  width: 100%;
}

.nav-overlay {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(47, 47, 47, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 98;
}

.nav-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 900px) {
  .nav-toggle,
  .nav-panel,
  .nav-overlay {
    display: none;
  }

  .nav {
    display: block;
    flex: 1;
  }

  .nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .header__cta {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, var(--crema-tamal) 0%, var(--blanco) 70%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__subtitle {
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero__microcopy {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(47, 47, 47, 0.75);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__svg {
  width: min(100%, 22rem);
  height: auto;
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 0 5rem;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Map glow animation */
@keyframes demand-glow {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.05);
  }
}

.demand-glow {
  animation: demand-glow 3s ease-in-out infinite;
  transform-origin: center;
}

/* Bell shake */
@keyframes bell-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(8deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  45% {
    transform: rotate(6deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(2deg);
  }
}

.bell-shake {
  transform-origin: 60px 22px;
  animation: bell-shake 2.5s ease-in-out infinite;
}

/* Steps grid */
.steps {
  display: grid;
  gap: 1.25rem;
}

.step-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.section--crema .step-card {
  border-color: rgba(47, 47, 47, 0.06);
}

.step-card:hover {
  border-color: var(--amarillo-maiz);
  transform: translateY(-3px);
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--amarillo-maiz);
  color: var(--gris-ciudad);
  font-family: var(--font-title);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.step-card__title {
  margin-bottom: 0.5rem;
}

.step-card__text {
  margin: 0;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Vendors section */
.vendors-grid {
  display: grid;
  gap: 1.5rem;
}

.vendors-bullets {
  display: grid;
  gap: 0.85rem;
}

.vendors-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  list-style: none;
}

.vendors-bullets ul {
  margin: 0;
  padding: 0;
}

.vendors-bullets__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--verde-elote);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* Sin SAT callout — visually loud */
.sin-sat-callout {
  background: linear-gradient(135deg, var(--rojo-salsa) 0%, #b81f1f 100%);
  color: var(--blanco);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.sin-sat-callout::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(249, 199, 79, 0.25) 0%, transparent 60%);
  animation: demand-glow 4s ease-in-out infinite;
}

.sin-sat-callout__badge {
  display: inline-block;
  background: var(--amarillo-maiz);
  color: var(--gris-ciudad);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  position: relative;
}

.sin-sat-callout__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  margin-bottom: 0.75rem;
  position: relative;
  line-height: 1.1;
}

.sin-sat-callout__text {
  font-size: 1.05rem;
  margin: 0;
  position: relative;
  opacity: 0.95;
  max-width: 28rem;
  margin-inline: auto;
}

.vendors-flavor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.flavor-chip {
  background: var(--crema-tamal);
  border: 1px dashed rgba(47, 47, 47, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-style: italic;
}

@media (min-width: 768px) {
  .vendors-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .sin-sat-callout {
    padding: 2.5rem 2rem;
  }
}

/* Colonia cards */
.colonia-cards {
  display: grid;
  gap: 1.25rem;
}

.colonia-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.colonia-card__time {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--verde-elote);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.colonia-card__title {
  margin-bottom: 0.35rem;
}

.colonia-card p {
  margin: 0;
  font-size: 0.95rem;
}

.colonia-features {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.colonia-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.colonia-feature__emoji {
  font-size: 1.75rem;
  line-height: 1;
}

@media (min-width: 640px) {
  .colonia-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .colonia-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tech section */
.tech-grid {
  display: grid;
  gap: 1.25rem;
}

.tech-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 4px solid var(--verde-elote);
  box-shadow: var(--shadow-soft);
}

.tech-card h3 {
  color: var(--gris-ciudad);
}

.tech-card p {
  margin: 0;
  font-size: 0.95rem;
}

.tech-highlight {
  margin-top: 2rem;
  background: var(--gris-ciudad);
  color: var(--blanco);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  text-align: center;
}

.tech-highlight p {
  margin: 0;
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Waitlist CTA */
.cta-section {
  background: linear-gradient(160deg, var(--amarillo-maiz) 0%, #f5b82e 50%, var(--crema-tamal) 100%);
  padding: 4rem 0;
}

.cta-section__inner {
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
}

.cta-section__copy {
  margin-bottom: 2rem;
}

.waitlist-form {
  background: var(--blanco);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid rgba(47, 47, 47, 0.15);
  border-radius: 0.75rem;
  background: var(--blanco);
  color: var(--gris-ciudad);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--amarillo-maiz);
  box-shadow: 0 0 0 3px rgba(249, 199, 79, 0.35);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--rojo-salsa);
}

.form-error {
  color: var(--rojo-salsa);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-error--visible {
  display: block;
}

.waitlist-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.waitlist-success--visible {
  display: block;
}

.waitlist-success__icon {
  width: 4rem;
  height: 4rem;
  background: var(--verde-elote);
  color: var(--blanco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.waitlist-success h3 {
  color: var(--verde-elote);
}

.waitlist-form--hidden {
  display: none;
}

/* Footer */
.footer {
  background: var(--gris-ciudad);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer .logo {
  color: var(--blanco);
}

.footer a {
  color: var(--amarillo-maiz);
}

.footer a:hover {
  color: var(--blanco);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand p {
  margin: 0.75rem 0 0;
  opacity: 0.8;
  max-width: 22rem;
}

.footer__heading {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin-bottom: 0.5rem;
}

.footer__socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.85rem;
}

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

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Waitlist: honeypot, optional label, global error, loading */
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-optional {
  font-weight: 400;
  opacity: 0.7;
}
.form-error--global {
  margin: 0 0 0.75rem;
  text-align: center;
}
.waitlist-form button[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.btn {
  touch-action: manipulation;
}
