/* ============================================================
   GREATFORM, S.L. — comercio y distribución · Fuenlabrada, Madrid
   Palette: berenjena / chartreuse / lino
   ============================================================ */

:root {
  --plum: #38204a;
  --plum-deep: #281536;
  --lime: #c9f24b;
  --lime-deep: #9dc41f;
  --linen: #f7f6f2;
  --paper: #ffffff;
  --ink: #241a2e;
  --muted: #675e72;
  --line: #e5e2e9;
  --radius: 14px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Karla", system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--paper);
  line-height: 1.62; font-size: 16.5px;
}
h1, h2, h3, .display {
  font-family: "Outfit", "Karla", sans-serif;
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 700;
}
a { color: #6a3d8f; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--lime-deep); outline-offset: 2px;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.93); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--plum); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--plum); display: grid; place-items: center; flex: none;
}
.brand-name { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand-sub {
  display: block; font-family: "Karla", sans-serif; font-weight: 700;
  font-size: 0.66rem; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase;
}
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.95rem;
  padding: 9px 14px; border-radius: 999px; transition: background 0.18s ease;
}
.nav-links a:hover { background: #f0edf4; }
.nav-links a.nav-cta { background: var(--plum); color: #fff; }
.nav-links a.nav-cta:hover { background: var(--plum-deep); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--plum); color: #f1ecf6; overflow: hidden; }
.hero .boxes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; padding: 100px 0 90px; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--lime); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 22px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { font-size: 1.12rem; color: #c3b8cf; max-width: 620px; margin-bottom: 34px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--plum-deep); }
.btn-lime:hover { background: #d8f96f; }
.btn-ghost { background: transparent; color: #f1ecf6; border: 1.5px solid #5b4470; margin-left: 12px; }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 34px 0 60px; border-top: 1px solid #4a3260; color: #c3b8cf; font-size: 0.88rem;
}
.hero-stats strong { display: block; font-family: "Outfit", sans-serif; font-size: 1.5rem; color: #fff; font-weight: 700; margin-bottom: 2px; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.linen { background: var(--linen); }
.block .eyebrow { color: #6a3d8f; }
.block .eyebrow::before { background: var(--lime-deep); }
.block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; max-width: 640px; }
.block .intro { color: var(--muted); max-width: 680px; margin-bottom: 44px; font-size: 1.05rem; }

.two-col { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.fact-card { background: var(--plum); color: #d4cade; border-radius: var(--radius); padding: 34px 32px; }
.fact-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.fact-list { list-style: none; }
.fact-list li {
  display: flex; justify-content: space-between; gap: 18px; padding: 11px 0;
  border-bottom: 1px solid #4a3260; font-size: 0.95rem;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list .k { color: #9b8daa; flex: none; }
.fact-list .v { text-align: right; font-weight: 700; color: #f5f1f9; word-break: break-word; }

/* ---------- Activity grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--lime-deep); box-shadow: 0 12px 28px rgba(56,32,74,0.12); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: #f3fadb; color: #6c8a10;
  display: grid; place-items: center; margin-bottom: 18px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Channels ---------- */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.chan {
  padding: 26px 22px; background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--line); border-bottom: 4px solid var(--lime);
}
.chan h3 { font-size: 1.02rem; margin-bottom: 8px; }
.chan p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p, .contact-info a { color: var(--muted); font-size: 0.98rem; }
.contact-info a { color: #6a3d8f; font-weight: 700; }
.map-note {
  margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--lime-deep);
  background: var(--linen); border-radius: 0 10px 10px 0; font-size: 0.92rem; color: var(--muted);
}
form.contact-form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 800; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 13px 15px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px rgba(56,32,74,0.12); }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.consent input { margin-top: 4px; width: auto; }
.btn-submit { background: var(--plum); color: #fff; justify-self: start; }
.btn-submit:hover { background: var(--plum-deep); }
.form-status { font-size: 0.92rem; font-weight: 700; }
.form-status.ok { color: #6c8a10; }
.form-status.err { color: #c9412f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-deep); color: #b3a6c0; padding: 64px 0 32px; font-size: 0.92rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px;
  padding-bottom: 40px; border-bottom: 1px solid #3d2a50;
}
.site-footer h4 { color: #fff; font-family: "Outfit", sans-serif; font-size: 1rem; margin-bottom: 16px; font-weight: 700; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b3a6c0; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.legal-lines p { margin-bottom: 7px; }
.legal-lines strong { color: #efe9f4; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; font-size: 0.84rem; color: #857797;
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 70px 0 90px; max-width: 820px; }
.legal-page h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.legal-page .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.3rem; margin: 38px 0 12px; }
.legal-page p, .legal-page li { color: #40354c; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .channels { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid, .channels, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 14px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .hero-inner { padding: 70px 0 60px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}
