/* ============================================================
   AQUANARIA, S.L. — acuicultura marina, Gran Canaria
   Palette: abismo atlántico / espuma / arena de Maspalomas
   ============================================================ */

:root {
  --abyss: #0b2540;
  --deep: #123a5c;
  --foam: #7fd1c9;
  --foam-strong: #2fa79b;
  --sand: #f6efe2;
  --paper: #ffffff;
  --ink: #142433;
  --muted: #5b6b78;
  --line: #dde4e8;
  --radius: 16px;
  --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: "Figtree", 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: "Fraunces", Georgia, serif;
  line-height: 1.12; letter-spacing: -0.012em;
  font-variation-settings: "SOFT" 60, "WONK" 0;
}
a { color: var(--deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--foam-strong); 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.9); 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(--abyss); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--abyss); display: grid; place-items: center; flex: none;
}
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.3rem; letter-spacing: 0.02em; }
.brand-sub {
  display: block; font-family: "Figtree", sans-serif; font-weight: 600;
  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: 500; font-size: 0.95rem;
  padding: 9px 14px; border-radius: 999px; transition: background 0.18s ease;
}
.nav-links a:hover { background: #eef4f6; }
.nav-links a.nav-cta { background: var(--abyss); color: #fff; }
.nav-links a.nav-cta:hover { background: var(--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(--abyss); color: #eaf3f5; overflow: hidden; }
.hero .waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; padding: 100px 0 150px; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--foam); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--foam); }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 600; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--foam); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero p.lead { font-size: 1.12rem; color: #b6cad3; max-width: 600px; margin-bottom: 34px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; 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-foam { background: var(--foam); color: var(--abyss); }
.btn-foam:hover { background: #98dcd5; }
.btn-ghost { background: transparent; color: #eaf3f5; border: 1.5px solid #3b5a75; margin-left: 12px; }
.btn-ghost:hover { border-color: var(--foam); color: var(--foam); }
.hero-stats {
  position: relative; display: flex; gap: 40px; flex-wrap: wrap;
  padding: 0 0 40px; color: #b6cad3; font-size: 0.9rem;
}
.hero-stats strong { display: block; font-family: "Fraunces", serif; font-size: 1.6rem; color: #fff; font-weight: 600; }
.wave-edge { display: block; width: 100%; height: 80px; margin-top: -80px; position: relative; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.sand { background: var(--sand); }
.block .eyebrow { color: var(--foam-strong); }
.block .eyebrow::before { background: var(--foam-strong); }
.block h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; 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(--abyss); color: #cfdde4; 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 #244a68; font-size: 0.95rem;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list .k { color: #86a2b3; flex: none; }
.fact-list .v { text-align: right; font-weight: 500; color: #f0f6f8; 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(--foam-strong); box-shadow: 0 12px 28px rgba(11,37,64,0.10); }
.card .icon {
  width: 46px; height: 46px; border-radius: 50%; background: #e3f4f2; color: var(--foam-strong);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 24px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "Fraunces", serif; font-size: 2rem; color: var(--foam-strong); font-weight: 600;
  display: block; margin-bottom: 8px; line-height: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; 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: var(--deep); font-weight: 500; }
.map-note {
  margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--foam-strong);
  background: var(--sand); 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: 600; 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(--foam-strong); outline: none; box-shadow: 0 0 0 3px rgba(47,167,155,0.15); }
.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(--abyss); color: #fff; justify-self: start; }
.btn-submit:hover { background: var(--deep); }
.form-status { font-size: 0.92rem; font-weight: 500; }
.form-status.ok { color: var(--foam-strong); }
.form-status.err { color: #b3402f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--abyss); color: #aabfcb; 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 #244a68;
}
.site-footer h4 { color: #fff; font-family: "Fraunces", serif; font-size: 1.05rem; margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #aabfcb; text-decoration: none; }
.site-footer a:hover { color: var(--foam); }
.legal-lines p { margin-bottom: 7px; }
.legal-lines strong { color: #e6eef2; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; font-size: 0.84rem; color: #7690a1;
}

/* ---------- 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; font-weight: 600; }
.legal-page .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.3rem; margin: 38px 0 12px; font-weight: 600; }
.legal-page p, .legal-page li { color: #33434f; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { 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, .steps, .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 110px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}
