/* =========================================================
   YAX — hoja de estilos principal
   Paleta: verde marca + crema calido + acento ambar (ofertas)
   Tipografia: Baloo 2 (titulos, redondeada y cercana)
               Work Sans (texto, clara y legible)
   Motivo visual: circulos y pines — "siempre cerca"
   ========================================================= */

:root {
  --green-900: #14311d;
  --green-700: #1f5c2e;
  --green-600: #2a7a3b;
  --green-500: #3fa34d;
  --green-400: #5cbf68;
  --green-100: #e4f4e6;
  --green-50:  #f2faf1;

  --amber-500: #e8a33d;
  --amber-600: #cf8a26;
  --amber-100: #fbedd3;

  --cream:  #fdfbf5;
  --paper:  #ffffff;
  --ink:    #1c2321;
  --ink-60: #4d564f;
  --line:   #e4e0d4;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px rgba(20, 49, 29, 0.08);
  --shadow-card: 0 4px 14px rgba(20, 49, 29, 0.07);

  --maxw: 1160px;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
}

/* ---------- Reset basico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { max-width: 62ch; margin: 0 0 1em; }
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(42, 122, 59, 0.28);
}
.btn--primary:hover { background: var(--green-700); }
.btn--outline {
  background: transparent;
  border-color: var(--green-600);
  color: var(--green-700);
}
.btn--outline:hover { background: var(--green-100); }
.btn--amber {
  background: var(--amber-500);
  color: var(--green-900);
  box-shadow: 0 8px 20px rgba(232, 163, 61, 0.35);
}
.btn--amber:hover { background: var(--amber-600); }
.btn--small { padding: 10px 20px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo { width: 44px; height: 44px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--green-800, var(--green-700));
}
.brand__tagline { font-size: 0.78rem; color: var(--ink-60); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
}
.site-nav a { color: var(--ink-60); padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.is-active { color: var(--green-700); border-color: var(--green-500); }
.site-nav a.nav-cta { border: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-800, var(--green-700));
  border-radius: 2px;
}

/* ---------- Hero (motivo: circulos concentricos = "siempre cerca") ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
}
.hero__rings {
  position: absolute;
  right: -160px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 2px solid var(--green-100);
  pointer-events: none;
}
.hero__rings::before,
.hero__rings::after {
  content: "";
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 2px solid var(--green-100);
}
.hero__rings::after { inset: 120px; border-color: var(--amber-100); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero__title { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.hero__text { font-size: 1.1rem; color: var(--ink-60); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  animation: rise 0.7s ease both;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media { animation: none; }
}

/* Banner ancho tipo franja (para paginas internas) */
.page-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px auto 0;
  max-width: var(--maxw);
  box-shadow: var(--shadow-soft);
}
.page-banner img { width: 100%; aspect-ratio: 16/5; object-fit: cover; }
@media (max-width: 720px) {
  .page-banner img { aspect-ratio: 4/3; }
}

/* ---------- Secciones generales ---------- */
section { padding: 76px 0; }
.section--tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--ink-60); }

.section--soft { background: var(--green-50); }

/* Dos columnas texto/estadistica tipo "explicacion" */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  background: var(--green-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split__media .pin {
  width: 100%;
  max-width: 280px;
}

/* ---------- Categorias (circulos, eco del logo) ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.category__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-600);
  font-size: 1.3rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.category:hover .category__icon { transform: translateY(-4px); border-color: var(--green-400); }
.category__label { font-size: 0.92rem; font-weight: 600; color: var(--ink); }

/* ---------- Tarjetas "para negocios / para vecinos" ---------- */
.audience-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.audience-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--green-500);
}
.audience-card:nth-child(2) { border-top-color: var(--amber-500); }
.audience-card h3 { font-size: 1.4rem; }
.audience-card p { color: var(--ink-60); }

/* ---------- Listas con check ---------- */
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--ink-60);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-500);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- Planes ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}
.plan {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--line);
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--green-500);
  background: var(--green-900);
  color: #fff;
  transform: translateY(-10px);
  box-shadow: var(--shadow-soft);
}
.plan--featured h3, .plan--featured .plan__price { color: #fff; }
.plan--featured .check-list li { color: rgba(255,255,255,0.85); }
.plan__badge {
  align-self: flex-start;
  background: var(--amber-500);
  color: var(--green-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan__price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--green-700); }
.plan__period { font-size: 0.9rem; color: var(--ink-60); font-weight: 500; margin-bottom: 20px; display: block; }
.plan--featured .plan__period { color: rgba(255,255,255,0.7); }
.plan .check-list { margin-bottom: 24px; flex-grow: 1; }
.plan .btn { margin-top: auto; }

/* ---------- Descarga ---------- */
.download {
  background: var(--green-700);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  text-align: center;
}
.download h2 { color: #fff; }
.download p { color: rgba(255,255,255,0.82); margin: 0 auto 28px; }
.download__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.contact-info__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.contact-form {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.field input, .field textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
}
.form-message {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
}
.form-message--ok { background: var(--green-100); color: var(--green-700); }
.form-message--error { background: #fbe4e4; color: #a33; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.8);
  padding-top: 56px;
}
.footer__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__logo { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 10px; }
.footer__brand p { color: rgba(255,255,255,0.6); }
.footer__col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a:hover { color: var(--amber-500); }
.footer__bottom {
  padding: 20px 24px;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 90;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .split--reverse .split__media { order: -1; }
  .audience-cards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .footer__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  section { padding: 52px 0; }
  .download { padding: 36px 24px; }
  .footer__row { grid-template-columns: 1fr; }
  .hero__rings { opacity: 0.5; }
}
