@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fraunces:ital,opsz,wght@0,9..144,700;0,9..144,900;1,9..144,700&display=swap');

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --bg0:       #F0F7F2;
  --bg1:       #E4F0E8;
  --panel:     #FFFFFF;
  --stroke:    rgba(15, 90, 50, .12);

  --text:      #0D2B1A;
  --muted:     rgba(13, 43, 26, .68);
  --muted2:    rgba(13, 43, 26, .50);

  --green-deep:#0A7A3E;
  --green-mid: #1DA562;
  --green-lite:#5FCF8A;
  --green-pale:#C8EED8;

  --gold0:     #E8A020;
  --gold1:     #FFC857;
  --gold-pale: #FFF0C8;

  --teal:      #0E9485;
  --coral:     #FF6B4A;

  --shadow:       0 20px 48px rgba(10, 80, 40, .14);
  --shadow-light: 0 4px 14px rgba(10, 80, 40, .10);
  --radius:  18px;
  --radius2: 24px;
  --maxw:    1100px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Nunito', 'Helvetica Neue', sans-serif;
}

/* ─── RESET + BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.5;
  overflow-x: clip !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; }

/* ─── FONDO ANIMADO ───────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 820px 560px at 5% 0%,   rgba(29,165,98,.20), transparent 60%),
    radial-gradient(ellipse 640px 440px at 95% 10%,  rgba(232,160,32,.16), transparent 55%),
    radial-gradient(ellipse 900px 500px at 50% 100%, rgba(14,148,133,.12), transparent 60%),
    linear-gradient(170deg, #EBF6EF 0%, #F5FBF7 55%, #EAF4F0 100%);
  background-repeat: no-repeat;
  animation: bgPulse 12s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  from { opacity: 1; }
  to   { opacity: .88; }
}

/* Huellas decorativas SVG de fondo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .055;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cellipse cx='30' cy='20' rx='8' ry='10' fill='%230A7A3E'/%3E%3Cellipse cx='55' cy='12' rx='7' ry='9' fill='%230A7A3E'/%3E%3Cellipse cx='78' cy='16' rx='7' ry='9' fill='%230A7A3E'/%3E%3Cellipse cx='96' cy='30' rx='6' ry='8' fill='%230A7A3E'/%3E%3Cellipse cx='60' cy='55' rx='22' ry='26' fill='%230A7A3E'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cellipse cx='30' cy='20' rx='8' ry='10' fill='%230A7A3E'/%3E%3Cellipse cx='55' cy='12' rx='7' ry='9' fill='%230A7A3E'/%3E%3Cellipse cx='78' cy='16' rx='7' ry='9' fill='%230A7A3E'/%3E%3Cellipse cx='96' cy='30' rx='6' ry='8' fill='%230A7A3E'/%3E%3Cellipse cx='60' cy='55' rx='22' ry='26' fill='%230A7A3E'/%3E%3C/svg%3E");
  background-size: 180px 180px, 180px 180px;
  background-position: 0 0, 90px 90px;
}

/* ─── UTILIDADES ──────────────────────────────────────── */
.container { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }
.muted  { color: var(--muted); }
.tiny   { font-size: 12px; color: var(--muted2); }
.micro  { font-size: 12px; color: var(--muted2); margin-top: 10px; }

/* ─── TOPBAR ──────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.6);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(15,100,55,.12);
  box-shadow: 0 2px 18px rgba(10,80,40,.10);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 14px;
}
.brand { display: flex; gap: 12px; align-items: center; flex: 1 1 auto; min-width: 0; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--green-deep); }
.brand-sub  { font-size: 11px; color: var(--muted); }

.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 7px 12px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--green-pale); color: var(--green-deep); }

/* ─── BOTONES ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid rgba(10,122,62,.20);
  background: #fff;
  color: var(--text);
  font-family: var(--font-body); font-weight: 800; font-size: 14px;
  cursor: pointer; white-space: nowrap;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
  box-shadow: 0 2px 8px rgba(10,80,40,.08);
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,80,40,.15); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-deep) 100%);
  border-color: var(--green-deep);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(10,122,62,.30);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(10,122,62,.38); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold1) 0%, var(--gold0) 100%);
  border-color: var(--gold0);
  color: #3a2000 !important;
  box-shadow: 0 4px 18px rgba(232,160,32,.28);
}
.btn-gold:hover { box-shadow: 0 8px 28px rgba(232,160,32,.38); }

/* ─── HERO ────────────────────────────────────────────── */
.hero { padding: 56px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px; align-items: start;
}
.hero-kicker {
  display: flex; gap: 10px; align-items: center; margin-bottom: 16px;
  animation: fadeUp .5s ease both;
}
.dot { width: 5px; height: 5px; border-radius: 99px; background: var(--green-lite); }

.pill {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid var(--green-pale);
  background: rgba(200,238,216,.55);
  font-size: 12px; font-weight: 700; color: var(--green-deep);
}
.pill.gold {
  border-color: rgba(255,200,87,.55);
  background: rgba(255,248,200,.70);
  color: #6a3c00;
}

h1 {
  font-family: var(--font-display);
  font-size: 52px; line-height: 1.04; margin: 0 0 14px;
  letter-spacing: -.5px; color: var(--text);
  animation: fadeUp .55s .08s ease both;
}
h1 em { font-style: italic; color: var(--green-deep); }

.hero-left h1 { color: var(--text) !important; }

.lead {
  font-size: 17px; color: var(--muted); margin: 0 0 18px; max-width: 56ch;
  animation: fadeUp .55s .14s ease both;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px;
  animation: fadeUp .55s .20s ease both;
}
.chip {
  padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid rgba(10,122,62,.18);
  background: rgba(255,255,255,.90);
  font-size: 12px; font-weight: 700;
  color: var(--green-deep) !important;
  box-shadow: var(--shadow-light);
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px;
  animation: fadeUp .55s .26s ease both;
}

/* Hero right — card animada */
.hero-right { animation: fadeUp .6s .18s ease both; }

.card {
  border-radius: var(--radius2);
  border: 1.5px solid var(--stroke);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative; overflow: clip;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,238,216,.25) 0%, transparent 60%);
  pointer-events: none;
}
.card-title { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--text); }
.card-sub   { font-size: 12px; color: var(--muted); margin-top: 4px; }
.list       { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--text) !important; font-size: 14px; font-weight: 600;
}
.check {
  width: 20px; height: 20px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--green-lite);
  background: var(--green-pale);
  color: var(--green-deep) !important;
  flex: 0 0 auto; font-size: 11px;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.stat {
  border-radius: 16px;
  border: 1.5px solid rgba(10,122,62,.12);
  background: linear-gradient(135deg, #f8fdf9, #eef8f2);
  padding: 14px 10px; text-align: center;
  transition: transform .15s;
}
.stat:hover { transform: translateY(-2px); }
.stat .k { font-family: var(--font-display); font-weight: 900; font-size: 17px; color: var(--green-deep); }
.stat .l  { font-size: 11px; color: var(--muted); margin-top: 2px; font-weight: 700; }

.shine {
  position: absolute; inset: -40px;
  background: radial-gradient(400px 200px at 80% 10%, rgba(255,255,255,.35), transparent 60%);
  pointer-events: none;
}

/* ─── SECCIONES ───────────────────────────────────────── */
section { padding: 52px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin-bottom: 24px;
}
h2 {
  font-family: var(--font-display);
  margin: 0; font-size: 36px; letter-spacing: -.3px; color: var(--text);
}
.subhead { margin: 8px 0 0; color: var(--muted) !important; max-width: 72ch; font-size: 15px; }

/* Separador decorativo entre secciones */
#beneficios { position: relative; }
#beneficios::before {
  content: "";
  display: block; height: 3px; width: 80px; border-radius: 99px;
  background: linear-gradient(90deg, var(--green-mid), var(--teal));
  margin-bottom: 48px;
}

/* ─── GRID DE BOXES ───────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.box {
  border-radius: var(--radius);
  border: 1.5px solid rgba(10,122,62,.12);
  background: #fff;
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative; overflow: hidden;
}
.box::after {
  content: "";
  position: absolute; bottom: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, var(--green-pale) 0%, transparent 70%);
  pointer-events: none;
}
.box:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.box-title {
  font-family: var(--font-display); font-weight: 900; font-size: 17px;
  margin-bottom: 8px; color: var(--green-deep);
}
.box p { margin: 0; color: var(--muted) !important; font-size: 14px; line-height: 1.6; }

/* Íconos decorativos en beneficios */
.box-icon {
  font-size: 32px; margin-bottom: 12px; display: block;
  filter: drop-shadow(0 2px 4px rgba(10,80,40,.15));
}

/* ─── PLANES ──────────────────────────────────────────── */
#planes { background: transparent; }
#planes .section-head h2::after {
  content: " 🐾";
  font-size: 28px;
}

.plans { display: grid; gap: 16px; }
.plans-3 { grid-template-columns: repeat(3,1fr); }
.plan {
  border-radius: var(--radius2);
  border: 1.5px solid rgba(10,122,62,.14) !important;
  background: #fff !important;
  padding: 22px;
  position: relative; overflow: clip;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.plan.featured {
  border-color: rgba(232,160,32,.50) !important;
  background: linear-gradient(160deg, #fffdf5 0%, #fff8e0 100%) !important;
  box-shadow: 0 8px 36px rgba(232,160,32,.18);
}
.plan.featured:hover { box-shadow: 0 16px 48px rgba(232,160,32,.28); }

.plan.simple {
  border-color: rgba(10,122,62,.22) !important;
  background: linear-gradient(160deg, #f4fbf7 0%, #e8f7ed 100%) !important;
}

.ribbon {
  position: absolute; top: 22px; right: -32px;
  transform: rotate(35deg);
  background: linear-gradient(135deg, var(--gold1), var(--gold0));
  color: #3a2000;
  padding: 7px 56px;
  font-size: 11px; font-weight: 900;
  letter-spacing: .3px;
  box-shadow: 0 2px 8px rgba(232,160,32,.30);
}
@media (max-width:520px) { .ribbon { display: none !important; } }

.plan-top { margin-bottom: 12px; }
.plan-name {
  font-family: var(--font-display); font-weight: 900; font-size: 22px;
  color: var(--text) !important;
}
.plan-big {
  margin-top: 6px; font-size: 14px; font-weight: 700;
  color: var(--green-deep) !important;
}
.plan ul { margin: 14px 0 0; padding-left: 18px; color: var(--text) !important; font-size: 14px; }
.plan li { line-height: 1.65 !important; margin: 8px 0; color: var(--muted) !important; }
.plan .btn { margin-top: auto; padding-top: 14px; width: 100%; }

/* Plan emoji deco */
.plan-emoji { font-size: 36px; margin-bottom: 10px; display: block; }

/* ─── CALLOUT ─────────────────────────────────────────── */
.callout {
  margin-top: 20px;
  border-radius: var(--radius2);
  border: 1.5px solid rgba(14,148,133,.20);
  background: linear-gradient(135deg, rgba(14,148,133,.06), rgba(29,165,98,.04));
  padding: 20px;
}
.callout-title { font-family: var(--font-display); font-weight: 900; font-size: 16px; color: var(--teal); }
.callout-grid  { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tag {
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid rgba(14,148,133,.25);
  background: rgba(255,255,255,.80);
  color: var(--text) !important;
  font-size: 13px; font-weight: 700;
}

/* ─── FAQ ─────────────────────────────────────────────── */
.faq details {
  border-radius: var(--radius);
  border: 1.5px solid rgba(10,122,62,.14) !important;
  background: #fff !important;
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: box-shadow .15s;
}
.faq details[open] { box-shadow: 0 4px 18px rgba(10,80,40,.09); }
.faq summary {
  font-weight: 800; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text) !important;
}
.faq summary::-webkit-details-marker { display: none; }
.chev { transition: transform .2s; color: var(--green-deep); font-size: 14px; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq p { margin: 10px 0 0; color: var(--muted) !important; font-size: 14px; line-height: 1.7; }

/* ─── FINAL CTA ───────────────────────────────────────── */
.final { padding: 48px 0 32px; }
.final-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  border-radius: var(--radius2);
  border: 1.5px solid rgba(10,122,62,.18) !important;
  background: linear-gradient(135deg, var(--green-deep) 0%, #065a2f 100%) !important;
  padding: 32px 36px;
  box-shadow: 0 16px 48px rgba(10,80,40,.22);
  position: relative; overflow: hidden;
}
.final-card::before {
  content: "";
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.final-card::after {
  content: "";
  position: absolute; bottom: -40px; left: 20%;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.final-card h3 { margin: 0; font-family: var(--font-display); font-size: 24px; color: #fff !important; }
.final-card p  { margin: 6px 0 0; color: rgba(255,255,255,.78) !important; font-size: 14px; }

/* ─── FOOTER ──────────────────────────────────────────── */
.footer { padding: 24px 0 10px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.footer-title { font-family: var(--font-display); font-weight: 900; margin-bottom: 4px; color: var(--green-deep) !important; }

/* ─── FLOATING WA ─────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex; align-items: center; gap: 10px;
}
.wa-pill {
  padding: 10px 16px; border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--green-pale);
  color: var(--green-deep) !important;
  font-size: 13px; font-weight: 800;
  box-shadow: var(--shadow);
  animation: waPulse 3s ease-in-out infinite;
}
.wa-btn {
  width: 56px; height: 56px; border-radius: 20px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: 2px solid rgba(255,255,255,.30);
  box-shadow: 0 6px 24px rgba(18,140,126,.38);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: transform .14s;
}
.wa-btn:hover { transform: scale(1.08); }
@keyframes waPulse {
  0%, 100% { box-shadow: var(--shadow); }
  50%       { box-shadow: 0 4px 24px rgba(37,211,102,.30); }
}

/* ─── HERO ANIMAL DECORATIVO ──────────────────────────── */
.hero-animal {
  position: absolute; right: -10px; bottom: -8px;
  width: 100px; opacity: .12; pointer-events: none;
}

/* ─── SECCIÓN ANIMALES (VISUAL BAND) ─────────────────── */
.animals-band {
  padding: 28px 0;
  display: flex; align-items: center; justify-content: center; gap: 48px;
  border-top: 1px solid rgba(10,122,62,.10);
  border-bottom: 1px solid rgba(10,122,62,.10);
}
.animals-band svg { opacity: .55; transition: opacity .2s, transform .2s; }
.animals-band svg:hover { opacity: .90; transform: scale(1.08) rotate(-4deg); }

/* ─── ANIMACIONES ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animación de entrada para sections */
section { animation: fadeUp .5s ease both; }

/* ─── FORMULARIO (gracias.html) ───────────────────────── */
.form-card {
  margin-top: 20px; border: 1.5px solid rgba(10,122,62,.14);
  border-radius: 24px; background: #fff; padding: 24px;
}
.form-title { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--text); }
.form-sub   { margin: 6px 0 14px; color: var(--muted); font-size: 13px; max-width: 80ch; }
.form-grid  { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; margin-top: 12px; }
.f1 { grid-column: span 6; }
.f2 { grid-column: span 3; }
.f3 { grid-column: span 2; }
.form-grid label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid rgba(10,122,62,.16);
  background: #fff; color: var(--text); font-family: var(--font-body);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 4px rgba(29,165,98,.14);
}
.form-grid select option { color: var(--text); background: #fff; }
.form-grid ::placeholder  { color: rgba(13,43,26,.38); }
.checkline { display: flex; gap: 10px; align-items: center; user-select: none; color: var(--text) !important; }
.checkline input { width: 18px; height: 18px; margin: 0; accent-color: var(--green-mid); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-hint { opacity: .95; }
.form-sub { color: var(--muted) !important; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 980px) {
  .nav      { display: none; }
  h1        { font-size: 40px; }
  h2        { font-size: 28px; }
  .hero-grid      { grid-template-columns: 1fr; }
  .grid-3         { grid-template-columns: 1fr; }
  .plans-3        { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .form-grid      { grid-template-columns: 1fr; }
  .f1,.f2,.f3     { grid-column: span 1; }
  .animals-band   { gap: 24px; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }
  h1 { font-size: 34px; }
  .hero  { padding: 36px 0 20px; }
  section { padding: 36px 0; }
  .wa-pill { display: none; }
  .brand-sub { display: none; }
  .topbar-inner { flex-wrap: nowrap !important; gap: 10px; }
  .btn.btn-primary { padding: 10px 12px; font-size: 13px; }
  .final-card { padding: 22px 20px; }
}

/* overflow safety */
main, section, header, footer, .container { max-width: 100%; }
* { -webkit-tap-highlight-color: transparent; }
