/* =========================================================
   Hielito — landing one-page. CSS puro, mobile-first, sin
   dependencias externas ni fuentes remotas (rendimiento).
   ========================================================= */

:root {
  /* Paleta: hielo / blanco dominante, azul y celeste como acento,
     verde WhatsApp reservado exclusivamente para el CTA principal. */
  --white: #ffffff;
  --ice-50: #f2fafd;
  --ice-100: #e4f4fb;
  --celeste: #29b6f6;
  --azul: #0b5aa6;
  --azul-dark: #06407a;
  --text: #142433;
  --text-muted: #4a5b6b;
  --border: #dcebf4;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(11, 90, 166, 0.12);
  --container: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--azul-dark);
}

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

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

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link (accesibilidad / teclado) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--azul);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

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

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: var(--whatsapp-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--azul);
  color: var(--azul);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--ice-100);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--azul-dark);
}
.brand img {
  height: 36px;
  width: auto;
}
.site-header .btn {
  padding: 10px 18px;
  font-size: 0.92rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--ice-50) 0%, var(--white) 100%);
  padding: 32px 0 40px;
}
.hero .container {
  display: grid;
  gap: 28px;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  color: var(--azul);
  background: var(--ice-100);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ice-100);
  aspect-ratio: 4 / 3;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 860px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- Secciones genéricas ---------- */
section {
  padding: 48px 0;
}
.section-alt {
  background: var(--ice-50);
}
.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

/* ---------- Producto / precio ---------- */
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 20px;
  align-items: center;
}
.price-card .price-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ice-100);
  aspect-ratio: 1 / 1;
}
.price-card .price-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 6px;
}
.price-amount {
  font-size: clamp(2.2rem, 4vw + 1rem, 3rem);
  font-weight: 800;
  color: var(--azul-dark);
}
.price-size {
  font-weight: 700;
  color: var(--text-muted);
}
.other-sizes {
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

@media (min-width: 700px) {
  .price-card {
    grid-template-columns: 220px 1fr;
  }
}

/* ---------- Zonas ---------- */
.zone-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.zone-list li {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--azul-dark);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.zone-note {
  font-size: 0.92rem;
}

/* ---------- Tarjetas con imagen (eventos / comercios) ---------- */
.split-card {
  display: grid;
  gap: 24px;
  align-items: center;
}
.split-card .split-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ice-100);
  aspect-ratio: 4 / 3;
}
.split-card .split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-card ul {
  padding-left: 1.1em;
  color: var(--text-muted);
}
.split-card li {
  margin-bottom: 6px;
}

@media (min-width: 860px) {
  .split-card {
    grid-template-columns: 1fr 1fr;
  }
  .split-card.reverse .split-media {
    order: 2;
  }
}

/* ---------- Beneficios ---------- */
.benefits-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.benefit .icon {
  width: 1.4em;
  height: 1.4em;
  color: var(--whatsapp-dark);
  margin-top: 2px;
}
.benefit strong {
  display: block;
  color: var(--azul-dark);
}

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 12px;
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  font-weight: 700;
  color: var(--azul-dark);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--celeste);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 4px 16px;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--azul-dark);
  color: var(--ice-100);
  padding: 40px 0 100px;
}
.site-footer h2 {
  color: var(--white);
  font-size: 1.4rem;
}
.site-footer a {
  color: var(--white);
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.85rem;
  color: var(--ice-100);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-legal a {
  color: var(--ice-100);
}
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.footer-contact-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 700px) {
  .site-footer {
    padding-bottom: 40px;
  }
}

/* ---------- CTA flotante (mobile) ---------- */
.floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(11, 90, 166, 0.12);
}
.floating-cta .btn {
  width: 100%;
}
@media (min-width: 700px) {
  .floating-cta {
    display: none;
  }
}

/* Evita que el CTA flotante tape el final del contenido en mobile */
@media (max-width: 699px) {
  .site-footer {
    padding-bottom: 96px;
  }
}

/* ---------- Banner de consentimiento ---------- */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--azul-dark);
  color: var(--white);
  padding: 16px;
}
.consent-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.consent-banner p {
  color: var(--ice-100);
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.9rem;
}
.consent-banner a {
  color: var(--white);
}
.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.consent-actions button {
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.consent-accept {
  background: var(--celeste);
  color: var(--azul-dark);
}
.consent-reject {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
