/* ============================================================
   SODEPAL — Sociedad de Promoción y Desarrollo Económico
   y Social de la Isla de La Palma S.A.U.M.P.
   Palette: basalto volcánico / teal atlántico / oro de retama
   ============================================================ */

:root {
  --basalt: #181d1c;
  --basalt-soft: #24302d;
  --atlantic: #0e5654;
  --atlantic-deep: #0a413f;
  --gold: #d9a63e;
  --ash: #f1f3f0;
  --paper: #fbfcfa;
  --ink-muted: #5c6663;
  --line: #d8ddd9;
  --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: "Instrument Sans", system-ui, -apple-system, sans-serif;
  color: var(--basalt);
  background: var(--ash);
  line-height: 1.6;
  font-size: 16.5px;
}

h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

a { color: var(--atlantic); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  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(241, 243, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--basalt);
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--atlantic);
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { display: block; }
.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em;
}
.brand-sub {
  display: block; font-family: "Instrument Sans", sans-serif;
  font-weight: 500; font-size: 0.68rem; color: var(--ink-muted);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--basalt);
  font-weight: 500; font-size: 0.95rem;
  padding: 9px 14px; border-radius: 999px;
  transition: background 0.18s ease;
}
.nav-links a:hover { background: #e2e7e2; }
.nav-links a.nav-cta {
  background: var(--basalt); color: #fff;
}
.nav-links a.nav-cta:hover { background: var(--atlantic-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(--basalt);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--basalt);
  color: #eef2ef;
  overflow: hidden;
}
.hero .contours {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.55; pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 96px 0 130px;
  max-width: 780px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead {
  font-size: 1.12rem; color: #c4cdc8; max-width: 620px;
  margin-bottom: 34px;
}
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--basalt); }
.btn-gold:hover { background: #e5b652; }
.btn-ghost {
  background: transparent; color: #eef2ef;
  border: 1.5px solid #4a5551; margin-left: 12px;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* island ridge divider */
.ridge { display: block; width: 100%; height: 70px; margin-top: -70px; position: relative; }

/* ---------- Sections ---------- */
section.block { padding: 84px 0; }
section.block.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block .eyebrow { color: var(--atlantic); }
.block .eyebrow::before { background: var(--atlantic); }
.block h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 700; margin-bottom: 18px; max-width: 640px;
}
.block .intro { color: var(--ink-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(--basalt); color: #dde4e0;
  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 #313c39;
  font-size: 0.95rem;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list .k { color: #93a09b; flex: none; }
.fact-list .v { text-align: right; font-weight: 500; color: #f0f4f1; word-break: break-word; }

/* ---------- Activities 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;
}
section.block.alt .card { background: var(--ash); }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--atlantic);
  box-shadow: 0 12px 28px rgba(14, 86, 84, 0.10);
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: #e3ecea; color: var(--atlantic);
  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(--ink-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(--ink-muted); font-size: 0.98rem; }
.contact-info a { color: var(--atlantic); font-weight: 500; }
.map-note {
  margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--gold);
  background: var(--paper); border-radius: 0 10px 10px 0;
  font-size: 0.92rem; color: var(--ink-muted);
}
form.contact-form { display: grid; gap: 16px; }
.field label {
  display: block; font-weight: 600; font-size: 0.88rem;
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--basalt);
  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(--atlantic); outline: none; box-shadow: 0 0 0 3px rgba(14,86,84,0.12); }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-muted); }
.consent input { margin-top: 4px; width: auto; }
.btn-submit { background: var(--atlantic); color: #fff; justify-self: start; }
.btn-submit:hover { background: var(--atlantic-deep); }
.form-status { font-size: 0.92rem; font-weight: 500; }
.form-status.ok { color: var(--atlantic); }
.form-status.err { color: #a4442c; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--basalt); color: #b9c2bd;
  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 #2c3634;
}
.site-footer h4 {
  color: #fff; font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem; margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b9c2bd; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.legal-lines p { margin-bottom: 7px; }
.legal-lines strong { color: #e8edea; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; font-size: 0.84rem; color: #7d8884;
}

/* ---------- 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(--ink-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: #3c4441; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { 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 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--ash); 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 110px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
  .hero .btn { display: inline-block; }
}
