/* Campaña Navideña 2026 - kölbi
 * Página principal del landing (/navidad). Se carga junto a landing.css.
 */
:root {
  /* Verdes del diseño: centro claro y orillas fuertes */
  --home-green-center: #2a7d43;
  --home-green-mid: #17552b;
  --home-green-edge: #04290f;
  --home-green-band: #003d0b;
  --home-kolbi-green: #3fae49;
  --home-bright-green: #32c332;
  --home-gold-300: #f3dc95;
  --home-gold-500: #d4b46a;
  --home-gold-700: #a87b22;
  --home-purple: #6c3f7f;
  --home-text-dark: #1d1d1b;
  --home-cream: #fcf9f0;
}

body.home {
  padding: 0;
  background: var(--white);
  color: var(--white);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
}

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

/* Texto dorado con degradado */
.home-gold {
  background: linear-gradient(90deg, #a98a4a 0%, #f2e2a4 50%, #a98a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
/* El arte trae los textos; el fondo verde del tope y el piso crema empatan con la imagen */
.home-hero {
  position: relative;
  background: var(--home-cream);
}
/* Franja superior del mismo verde que el borde de la imagen, con el logo */
.home-hero-top {
  display: flex;
  justify-content: center;
  padding: clamp(14px, 2vw, 28px) 16px clamp(4px, .8vw, 12px);
  background: #0f2813;
}

/* Logo kölbi (estilos en landing.css) */
.home-logo { font-size: clamp(28px, 3vw, 42px); }
.home-logo--band { font-size: clamp(30px, 3vw, 42px); }
.home-hero-art { display: block; width: 100%; height: auto; }

/* ---------- Botón Ingresar ---------- */
.home-cta {
  background: var(--home-cream);
  text-align: center;
  padding: clamp(24px, 4vw, 64px) 16px clamp(40px, 5vw, 80px);
}
.home-cta-btn {
  display: inline-block;
  width: auto;
  min-width: min(440px, 80%);
  padding: clamp(12px, 1.6vw, 22px) 40px;
  border-radius: clamp(18px, 2.4vw, 34px);
  background: var(--home-purple);
  color: var(--white);
  font-size: clamp(28px, 4.2vw, 60px);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(94, 39, 119, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(94, 39, 119, .4); }
.home-cta-btn:focus-visible { outline: 3px solid var(--home-gold-500); outline-offset: 3px; }

/* ---------- Sección verde ---------- */
.home-green {
  position: relative;
  overflow: hidden;
  padding: 0 16px clamp(56px, 8vw, 140px);
  background: radial-gradient(ellipse 70% 55% at 50% 45%, var(--home-green-center) 0%, var(--home-green-mid) 55%, var(--home-green-edge) 100%);
}
/* Gota crema al centro, continuación de la sección del botón */
.home-green-curve {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(230px, 21vw, 400px);
  height: auto;
  fill: var(--home-cream);
}

.home-green-inner {
  width: min(1060px, 100%);
  margin: 0 auto;
  padding-top: clamp(110px, 13vw, 200px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-title {
  font-size: clamp(36px, 5.2vw, 76px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.home-title .home-gold { display: block; font-weight: 700; }

.home-features {
  list-style: none;
  margin: clamp(32px, 5vw, 80px) 0 clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: center;
  gap: 20px clamp(40px, 6vw, 96px);
  text-align: left;
}
.home-features li {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  font-size: clamp(17px, 2.4vw, 36px);
  line-height: 1.3;
}
.home-features b { font-weight: 700; }
.home-feature-icon { flex: 0 0 clamp(52px, 6vw, 96px); width: clamp(52px, 6vw, 96px); height: auto; }

.home-text {
  max-width: 900px;
  font-size: clamp(15px, 1.8vw, 26px);
  line-height: 1.45;
}

.home-restart {
  margin: clamp(28px, 4vw, 60px) 0 clamp(32px, 6vw, 100px);
  color: var(--home-bright-green);
  font-size: clamp(22px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1.2;
}
.home-restart + .home-text--strong { margin-top: 0; }

/* ¿Cómo ganás esferas? — la esfera se recorta del arte original
 * (PNG 1500x555: la esfera ocupa x 0–470, el texto "esferas?" empieza en ~500) */
.home-how {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  margin: clamp(40px, 6vw, 90px) 0 clamp(32px, 5vw, 72px);
  text-align: left;
}
.home-how-sphere {
  flex: 0 0 auto;
  width: clamp(96px, 12vw, 170px);
  overflow: hidden;
}
.home-how-sphere img {
  display: block;
  width: 319%;
  max-width: none;
  margin-left: 0;
  height: auto;
}
.home-how-text { display: flex; flex-direction: column; line-height: 1; }
.home-how-small { font-size: clamp(28px, 3.8vw, 56px); font-weight: 500; }
.home-how-big { font-size: clamp(56px, 8vw, 116px); font-weight: 700; letter-spacing: -.02em; }

/* ---------- Acordeón ---------- */
.home-faq { width: min(1000px, 100%); text-align: left; }
.home-faq-item { border-bottom: 2px solid var(--home-gold-500); }
.home-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(22px, 3vw, 44px) 0;
  font-size: clamp(20px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: clamp(10px, 1vw, 14px);
  height: clamp(10px, 1vw, 14px);
  border-right: 2px solid var(--home-gold-500);
  border-bottom: 2px solid var(--home-gold-500);
  transform: translateY(-30%) rotate(45deg);
  transition: transform .2s ease;
  margin-right: 6px;
}
.home-faq-item[open] summary::after { transform: translateY(20%) rotate(-135deg); }
.home-faq-item summary:focus-visible { outline: 3px solid var(--home-gold-500); outline-offset: 4px; }

.home-faq-body {
  padding: 0 0 clamp(24px, 3vw, 44px);
  font-size: clamp(15px, 1.6vw, 22px);
  line-height: 1.5;
}

/* Tablas de esferas con encabezados en píldoras moradas */
.home-table {
  margin: clamp(16px, 2vw, 28px) auto 8px;
  border-collapse: separate;
  border-spacing: 12px 6px;
  font-size: clamp(14px, 1.5vw, 20px);
}
.home-table th {
  padding: 2px 18px;
  border-radius: 8px;
  background: var(--home-purple);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.home-table td { padding: 4px 6px; }
.home-table td + td { text-align: center; }
.home-table-note { text-align: center; font-size: clamp(13px, 1.3vw, 17px); }

.home-contact-note {
  width: min(1000px, 100%);
  margin: clamp(28px, 4vw, 56px) 0 0;
  font-size: clamp(15px, 1.6vw, 22px);
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
/* Evita que iOS/Android conviertan el teléfono/correo en enlace azul subrayado */
.home-contact-note a,
.home-contact-note a[x-apple-data-detectors],
.home-contact-note a[href^="tel"],
.home-contact-note a[href^="mailto"] {
  color: inherit !important;
  text-decoration: none !important;
  font: inherit !important;
  pointer-events: none;
}

.home-rules {
  margin-top: clamp(16px, 2vw, 28px);
  color: var(--white);
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-rules:hover { color: var(--home-gold-300); }

/* ---------- Pie de página ---------- */
.home-footer {
  background: var(--white);
  color: #3a3a3a;
  text-align: center;
  padding: clamp(28px, 3.5vw, 48px) 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.home-footer-title { font-size: clamp(13px, 1vw, 16px); margin-bottom: 10px; }
.home-social { display: flex; gap: clamp(20px, 2.6vw, 38px); margin-bottom: 12px; }
.home-social a { display: inline-flex; color: var(--home-green-band); }
.home-social a:hover { color: var(--home-kolbi-green); }
.home-social svg { width: 24px; height: 24px; fill: currentColor; }
.home-footer-legal { font-size: clamp(13px, 1vw, 16px); color: #3a3a3a; }
.home-footer-legal a { color: inherit; text-decoration: none; }
.home-footer-legal a:hover { text-decoration: underline; }

.home-footer-band {
  background: var(--home-green-band);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(18px, 2.4vw, 34px) 16px;
}
/* Sello "Somos esencial Costa Rica" */
.home-essential {
  width: clamp(48px, 3.6vw, 56px);
  height: clamp(48px, 3.6vw, 56px);
  border: 1.5px solid var(--white);
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  line-height: 1;
  text-align: center;
}
.home-essential-img {
  width: clamp(48px, 3.6vw, 56px);
  height: auto;
  display: block;
}
.home-essential-small { font-size: 7px; font-weight: 700; }
.home-essential-script { font-size: 11px; font-style: italic; margin: 1px 0; }

@media (max-width: 640px) {
  .home-features { grid-template-columns: 1fr; gap: 18px; justify-content: start; }
  .home-text br, .home-features br { display: none; }
  .home-table { border-spacing: 6px 6px; }
  .home-table th { padding: 2px 10px; white-space: normal; }
}
