/* ============================================================
   Crublí — sistema de diseño compartido
   Tokens + componentes reutilizados por todas las páginas del sitio.
   Sitio estático sin build tools: este archivo se enlaza con <link>.
   ============================================================ */

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

:root {
  /* marca — muestreada de la referencia visual (static/ChatGPT Image 22 sept 2026, 16_31_59.png) */
  --petrol-900: #0E2E2A;
  --petrol-800: #143C35;
  --petrol-700: #1E5148;
  --petrol-050: #E7F0EC;

  --lime: #9EE05A;
  --lime-bright: #B4EC7C;
  --lime-dim: #6FA82E;
  --lime-soft: rgba(158, 224, 90, 0.18);
  --lime-soft-border: rgba(158, 224, 90, 0.42);

  --coral: #E8623F;
  --coral-dim: #C94E2E;
  --coral-light: rgba(232, 98, 63, 0.10);
  --coral-mid: rgba(232, 98, 63, 0.20);

  --wa-green: #25D366;
  --wa-green-dim: #1DA855;

  --bg: #FBF6EC;
  --bg-alt: #F4EDDC;
  --bg-alt2: #ECE3CC;
  --surface: #FFFFFF;
  --border: rgba(14, 46, 42, 0.10);
  --border-med: rgba(14, 46, 42, 0.20);

  --text: #16302B;
  --muted: #5D6F69;
  --muted-light: #91A39C;

  --font-display: 'Fredoka', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; width: 100% }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%
}

a { color: inherit; text-decoration: none }
img { display: block; max-width: 100% }

/* ── UTILITIES ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--coral-light); border: 1px solid var(--coral-mid);
  color: var(--coral-dim); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px
}
.tag.on-dark { background: rgba(232,98,63,.16); border-color: rgba(232,98,63,.4); color: #FFA789 }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); animation: pulse 1.4s ease-in-out infinite }

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--petrol-900); color: #FBF6EC;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 16px 32px; border-radius: 999px; border: none; cursor: pointer;
  transition: background .2s, transform .15s; text-decoration: none
}
.btn-primary:hover { background: var(--petrol-700); transform: translateY(-1px) }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--text);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 15px 30px; border-radius: 999px; border: 1px solid var(--border-med);
  cursor: pointer; transition: border-color .2s, background .2s; text-decoration: none
}
.btn-secondary:hover { border-color: var(--petrol-700); background: rgba(14,46,42,.04) }

/* Botón principal de WhatsApp: pastilla lima de marca + insignia verde de WhatsApp
   (el verde de WhatsApp queda solo en la insignia redonda, nunca en el botón entero) */
.btn-wa {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--lime); color: var(--petrol-900);
  font-family: var(--font-body); font-size: 15.5px; font-weight: 700;
  padding: 8px 26px 8px 8px; border-radius: 999px; border: none; cursor: pointer;
  transition: background .2s, transform .15s; text-decoration: none; letter-spacing: .01em
}
.btn-wa:hover { background: var(--lime-bright); transform: translateY(-2px) }
.btn-wa .wa-dot {
  width: 38px; height: 38px; border-radius: 50%; background: var(--wa-green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0
}
.wa-icon { width: 19px; height: 19px; fill: white }

.btn-secondary-inv {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: rgba(251,246,236,.75);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 15px 30px; border-radius: 999px; border: 1px solid rgba(251,246,236,0.22);
  cursor: pointer; transition: border-color .2s, background .2s; text-decoration: none
}
.btn-secondary-inv:hover { border-color: rgba(251,246,236,0.5); background: rgba(251,246,236,0.08); color: #FBF6EC }

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime-dim); margin-bottom: 16px
}
.section-label.on-dark { color: var(--lime) }

.headline {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: -.01em; color: var(--text)
}
.headline .accent { color: var(--coral) }
.headline .accent-lime { color: var(--lime-dim) }

.divider { height: 1px; background: var(--border); margin: 0 }

.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease }
.fade-up.visible { opacity: 1; transform: none }

@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
.anim { animation: fadeUp .65s ease both }
.anim-d1 { animation-delay: .1s }
.anim-d2 { animation-delay: .2s }
.anim-d3 { animation-delay: .3s }

/* ── ICONS ── */
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--lime-soft); border: 1px solid var(--lime-soft-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0
}
.icon-badge svg { width: 24px; height: 24px; stroke: var(--petrol-900); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.icon-badge.coral { background: var(--coral-light); border-color: var(--coral-mid) }
.icon-badge.coral svg { stroke: var(--coral-dim) }
.icon-badge.solid { background: var(--lime); border-color: transparent }
.icon-badge.solid svg { stroke: var(--petrol-900) }
.icon-badge.on-dark { background: rgba(158,224,90,.16); border-color: rgba(158,224,90,.35) }
.icon-badge.on-dark svg { stroke: var(--lime) }
.icon-badge.sm { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 0 }
.icon-badge.sm svg { width: 19px; height: 19px }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 0; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s
}
nav.scrolled {
  background: rgba(251, 246, 236, 0.94); border-color: var(--border);
  backdrop-filter: blur(12px); box-shadow: 0 1px 20px rgba(14,46,42,0.08)
}
.nav-inner { display: flex; align-items: center; justify-content: space-between }
.nav-cta { display: flex; align-items: center; gap: 18px }
.nav-link { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s }
.nav-link:hover { color: var(--text) }

.nav-wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--petrol-900);
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  transition: background .2s, transform .15s
}
.nav-wa-btn:hover { background: var(--lime-bright); transform: translateY(-1px) }

.brand-lockup { display: flex; align-items: center; gap: 10px }
.brand-mascot { height: 40px; width: auto; display: block }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--petrol-900); letter-spacing: -.01em }
.brand-lockup.sm .brand-mascot { height: 30px }
.brand-lockup.sm .brand-word { font-size: 19px }
.brand-lockup.on-dark .brand-word { color: #FBF6EC }

@media (max-width: 640px) {
  .nav-link { display: none }
  .nav-cta { gap: 8px }
}
@media (max-width: 360px) {
  .nav-cta .nav-wa-btn { padding: 7px 13px; font-size: 12px }
}

/* ── CARDS ── */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 32px 28px; transition: box-shadow .2s, border-color .2s
}
.card:hover { box-shadow: 0 10px 32px rgba(14,46,42,.08); border-color: var(--lime-soft-border) }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); font-family: var(--font-display) }
.card-desc { font-size: 14px; color: var(--muted); line-height: 1.65 }

/* Tarjeta oscura para variar el ritmo dentro de secciones claras */
.card.on-dark {
  background: var(--petrol-900); border-color: var(--petrol-700)
}
.card.on-dark .card-title { color: #FBF6EC }
.card.on-dark .card-desc { color: rgba(251,246,236,.65) }

/* ============================================================
   COMPONENTES DE SECCIÓN (portada, blog, artículos)
   Regla de color: verde oscuro = base y estructura · lima = acciones y detalles · coral = solo acento
   ============================================================ */
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.01em; color: var(--text); text-wrap: balance }
.h2.on-dark { color: #FBF6EC }
.h2 .lime { color: var(--lime) }
/* subrayado tipo resaltador: lleva el "lime" del titular del hero a fondos claros sin perder contraste */
.mark { background: linear-gradient(transparent 60%, rgba(158,224,90,.6) 60%, rgba(158,224,90,.6) 92%, transparent 92%); padding: 0 .06em }
.sec-lead { font-size: 16.5px; color: var(--muted); line-height: 1.65; margin-top: 16px; max-width: 540px }
.sec-lead.on-dark { color: rgba(251,246,236,.66) }
.waves { display: inline-block; width: 18px; height: 18px; vertical-align: -3px }
.text-link { font-weight: 600; color: var(--petrol-900); border-bottom: 2px solid var(--lime); padding-bottom: 1px; transition: border-color .2s }
.text-link:hover { border-color: var(--petrol-900) }

/* ── Preguntas frecuentes en lista (details/summary) ── */
.faq-list2 { border-top: 1px solid var(--border-med) }
.faq-q { border-bottom: 1px solid var(--border-med) }
.faq-q summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 16.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 20px }
.faq-q summary::-webkit-details-marker { display: none }
.faq-q .plus { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--petrol-900); position: relative; transition: background .2s }
.faq-q .plus::before, .faq-q .plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--lime); transform: translate(-50%, -50%); transition: transform .2s }
.faq-q .plus::before { width: 11px; height: 2px }
.faq-q .plus::after { width: 2px; height: 11px }
.faq-q[open] .plus { background: var(--lime) }
.faq-q[open] .plus::before { background: var(--petrol-900) }
.faq-q[open] .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0 }
.faq-q p { padding: 0 48px 24px 0; font-size: 15px; color: var(--muted); line-height: 1.7 }
@media (max-width: 900px) { .faq-q p { padding-right: 0 } }

/* ── CTA final con la rana ── */
/* ── 6. CTA FINAL (verde oscuro, rana) ── */
.final { padding: 96px 0 90px; position: relative; overflow: hidden; background: radial-gradient(circle at 18% 80%, rgba(158,224,90,.16) 0%, transparent 45%), var(--petrol-900) }
.final-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center }
.final-frog { position: relative; width: 250px; margin: 0 auto }
.final-frog img { width: 100%; transform: rotate(-5deg); filter: drop-shadow(0 20px 28px rgba(0,0,0,.35)) }
.final-frog::after { content: ''; position: absolute; left: 6%; right: 18%; bottom: -8px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.28); z-index: -1 }
.croak { position: absolute; top: -8px; right: -34px; background: var(--lime); color: var(--petrol-900); font-family: var(--font-display); font-weight: 600; font-size: 20px; padding: 8px 16px; border-radius: 18px 18px 18px 4px; transform: rotate(6deg); box-shadow: 0 10px 20px rgba(0,0,0,.25) }
.final-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; color: #FBF6EC; text-wrap: balance }
.final-h .lime { color: var(--lime) }
.final-sub { font-size: 17px; color: rgba(251,246,236,.66); margin: 18px 0 34px; max-width: 480px; line-height: 1.6 }
.final-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center }
.final-note { margin-top: 22px; font-size: 12.5px; color: rgba(251,246,236,.5) }
@media (max-width: 800px) {
  .final { padding: 80px 0 76px }
  .final-layout { grid-template-columns: 1fr; gap: 36px; text-align: center }
  .final-frog { width: 170px }
  .croak { font-size: 16px; right: -44px }
  .final-sub { margin-left: auto; margin-right: auto }
  .final-actions { justify-content: center }
}
@media (max-width: 480px) {
  .final-actions a { width: 100%; justify-content: center }
}

/* ── NAV sobre un primer bloque oscuro: el logo y los enlaces pasan a crema hasta hacer scroll ── */
nav.nav-dark:not(.scrolled) .brand-word { color: #FBF6EC }
nav.nav-dark:not(.scrolled) .nav-link { color: rgba(251,246,236,.72) }
nav.nav-dark:not(.scrolled) .nav-link:hover { color: #FBF6EC }
.nav-link.active { color: var(--text); font-weight: 600 }
nav.nav-dark:not(.scrolled) .nav-link.active { color: var(--lime) }

/* ── FOOTER ── */
footer { padding: 56px 0 40px; background: var(--petrol-900); color: rgba(251,246,236,.7) }
.footer-inner { display: flex; justify-content: center; align-items: center; text-align: center; flex-direction: column; gap: 18px }
.footer-copy { font-size: 13px; color: rgba(251,246,236,.55) }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center }
.footer-links a { font-size: 13px; color: rgba(251,246,236,.7); transition: color .2s }
.footer-links a:hover { color: var(--lime) }
.footer-social { display: flex; gap: 16px }
.footer-social a {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid rgba(251,246,236,.2); color: rgba(251,246,236,.7);
  transition: color .2s, border-color .2s
}
.footer-social a:hover { color: var(--lime); border-color: var(--lime) }
