/* Coctu — sitio informativo. Estilos modernos, limpios y responsive. */
:root {
  --green: #2e7d32;
  --green-light: #43a047;
  --green-dark: #1b5e20;
  --orange: #f57c00;
  --bg: #f4f7f2;
  --surface: #ffffff;
  --text: #1b2a1b;
  --muted: #5c6b5c;
  --border: #e2e9de;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 94, 32, 0.08);
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--green-dark); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #66bb6a 0%, #2e7d32 100%);
  color: #fff;
  padding: 84px 0 96px;
  text-align: center;
}
.hero .logo-badge {
  width: 96px; height: 96px; border-radius: 28px;
  background: rgba(255,255,255,0.16);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.hero .logo-badge img { width: 72px; height: 72px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 14px; font-weight: 800; letter-spacing: -0.5px; }
.hero p { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 640px; margin: 0 auto 30px; opacity: 0.95; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: #fff; color: var(--green-dark); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.4); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 12px; font-weight: 800; letter-spacing: -0.4px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem; }

/* Features grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.card:hover { transform: translateY(-4px); }
.card .icon { font-size: 2rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.step { text-align: center; }
.step .num {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--green); color: #fff; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; }

/* Alt band */
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* CTA bottom */
.cta-final { background: linear-gradient(135deg, #43a047, #1b5e20); color: #fff; text-align: center; border-radius: var(--radius); padding: 56px 28px; }
.cta-final h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 12px; }
.cta-final p { opacity: 0.95; margin: 0 0 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #14241a; color: #c9d6cb; padding: 56px 0 28px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #9fb3a3; margin: 14px 0 0; font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; color: #c9d6cb; margin-bottom: 10px; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  color: #8aa093; font-size: 0.88rem;
}
.footer-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #c9d6cb; }

/* ---------- Legal pages ---------- */
.legal { background: var(--surface); }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 56px 20px 80px; }
.legal-wrap h1 { font-size: 2.2rem; margin: 0 0 6px; }
.legal-wrap .updated { color: var(--muted); margin: 0 0 36px; }
.legal-wrap h2 { font-size: 1.35rem; margin: 38px 0 10px; color: var(--green-dark); }
.legal-wrap p, .legal-wrap li { color: #34433a; }
.legal-wrap ul { padding-left: 22px; }
.legal-wrap a { font-weight: 600; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 700; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 860px; margin: 0 auto;
  background: #14241a; color: #e7efe9;
  border-radius: 16px; padding: 18px 22px; box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: 0.92rem; flex: 1 1 320px; }
.cookie-banner a { color: #9ad29c; font-weight: 700; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button {
  border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 700; cursor: pointer; font-size: 0.9rem;
}
.cookie-accept { background: var(--green-light); color: #fff; }
.cookie-reject { background: rgba(255,255,255,0.12); color: #e7efe9; }
.hidden { display: none !important; }

/* ---------- Formularios ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-field input,
.form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 12px; font-size: 1rem; font-family: inherit; color: var(--text);
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(67,160,71,0.15); }
.form-field textarea { min-height: 120px; resize: vertical; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-msg { padding: 14px 16px; border-radius: 12px; margin-top: 16px; font-weight: 600; }
.form-msg.ok { background: #e6f4ea; color: #1b5e20; }
.form-msg.err { background: #fdecea; color: #b3261e; }
