/* Paleta tierra suave / kit visual */
:root {
  --cream: #f7f3e8;
  --sand: #e9e1d5;
  --sage-50: #f0f3ef;
  --sage-200: #cfe0cf;
  --sage-600: #6b8e69;
  --brown-50: #f6f3ef;
  --brown-200: #d8cfc4;
  --brown-600: #2e5046;
  --ink: #2e3a33;
  --white: #ffffff;

  --radius: 14px;
  --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.06);
  --maxw: 1080px;
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream), var(--cream));
  letter-spacing: 0.01em;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-mark { display: block; height: 56px; max-width: 260px; }
.brand-mark img { height: 100%; width: auto; display: block; object-fit: contain; object-position: left center; }
.nav a { margin-left: 22px; color: var(--ink); text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.hero h1 {
  margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.16; letter-spacing: -0.01em;
  font-family: 'Alegreya', Georgia, 'Times New Roman', serif;
}
.subtitle { margin: 0 0 24px; color: var(--sage-600); font-weight: 400; font-family: 'Caveat', 'Segoe UI', cursive; font-size: clamp(18px, 2.2vw, 22px); }
.hero-figure { display: flex; align-items: center; justify-content: center; }
.botanical { color: var(--brown-600); }

/* Sections */
.section { padding: 64px 0; }
.section--soft { background: linear-gradient(180deg, var(--cream), var(--sand)); }
.section-header { text-align: center; margin-bottom: 28px; }
.section-header h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); font-family: 'Alegreya', Georgia, 'Times New Roman', serif; }
.section-intro { margin: 0; color: var(--sage-600); }

/* Grid & Cards */
.grid { display: grid; gap: 18px; }
.benefits { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid rgba(0,0,0,0.05); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.card h3 { margin: 0 0 8px; color: var(--brown-600); font-size: 18px; font-family: 'Alegreya', Georgia, 'Times New Roman', serif; }
.card p { margin: 0; }

/* How to */
.howto { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.howto-step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--white); border: 1px solid rgba(0,0,0,0.05); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft); }
.howto-step h3 { margin: 0 0 6px; font-size: 17px; color: var(--brown-600); font-family: 'Alegreya', Georgia, serif; }
.howto-step p { margin: 0; color: #4b4b4b; }
.icon { color: var(--sage-600); display: grid; place-items: center; }

/* Testimonials */
.testimonials { grid-template-columns: repeat(3, 1fr); }
.quote-card { background: var(--white); border: 1px solid rgba(0,0,0,0.05); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.quote-card blockquote { margin: 0 0 10px; font-weight: 500; color: var(--ink); font-family: 'Alegreya', Georgia, serif; }
.quote-card figcaption { color: var(--sage-600); font-size: 14px; }

/* CTA */
.cta { text-align: center; }
.cta-inner { background: var(--white); border: 1px solid rgba(0,0,0,0.06); border-radius: calc(var(--radius) + 2px); padding: 36px 28px; box-shadow: var(--shadow-soft); }
.cta h2 { margin: 0 0 10px; }
.cta p { margin: 0 0 16px; color: var(--sage-600); font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.cta-actions { display: flex; gap: 12px; justify-content: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--brown-600); color: var(--white); text-decoration: none; font-weight: 500; box-shadow: 0 4px 14px rgba(0,0,0,0.08); font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.btn:hover { filter: brightness(0.95); }
.btn--ghost { background: transparent; color: var(--brown-600); border: 1px solid var(--brown-200); }

/* Footer */
.site-footer { padding: 40px 0; background: var(--brown-50); border-top: 1px solid rgba(0,0,0,0.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-nav a { margin-right: 16px; color: var(--ink); text-decoration: none; opacity: 0.8; }
.footer-nav a:last-child { margin-right: 0; }
.footer-nav a:hover { opacity: 1; }
.legal { margin: 0; color: var(--sage-600); }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(960px, calc(100% - 24px)); background: var(--white); border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; box-shadow: var(--shadow-soft); z-index: 400; }
.cookie-content { padding: 18px; display: grid; gap: 12px; }
.cookie-content p { margin: 0; color: #4b4b4b; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.as-link { background: none; border: none; padding: 0; color: var(--brown-600); text-decoration: underline; cursor: pointer; font: inherit; }

/* Modales */
.modal[aria-hidden="true"] { display: none; }
.modal[aria-hidden="false"] { display: block; }
.modal { position: fixed; inset: 0; z-index: 500; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.28); }
.modal-panel { position: absolute; left: 50%; top: 10vh; transform: translateX(-50%); width: min(720px, calc(100% - 32px)); background: var(--white); border-radius: 16px; border: 1px solid rgba(0,0,0,0.08); box-shadow: var(--shadow-soft); padding: 22px 20px; }
.modal-close { position: absolute; top: 8px; right: 10px; background: transparent; border: 0; font-size: 26px; line-height: 1; color: var(--sage-600); cursor: pointer; }
.modal h3 { margin: 0 0 8px; font-family: 'Alegreya', Georgia, serif; }
.modal-intro { margin: 0 0 12px; color: var(--sage-600); }

/* Preferencias cookies */
.pref { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.pref:last-of-type { border-bottom: 0; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: var(--sand); transition: .2s; border-radius: 999px; border: 1px solid var(--brown-200); }
.slider:before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 2px; background: var(--white); border: 1px solid var(--brown-200); border-radius: 50%; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.switch input:checked + .slider { background: var(--sage-200); }
.switch input:checked + .slider:before { transform: translateX(20px); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* Responsivo */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav a { margin-left: 14px; }
  .header-inner { height: 76px; }
  .brand-mark { height: 48px; max-width: 200px; }
  .howto { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}


