/* ============================================================
   Pesca en España — hoja de estilos
   Paleta: azul océano profundo, arena cálida, terracota
   Tipografía: Fraunces (títulos) + Work Sans (texto)
   ============================================================ */

:root {
  --ocean: #0e3a4a;
  --ocean-deep: #082a36;
  --teal: #1f6f78;
  --sand: #f4efe4;
  --sand-deep: #e7ddc9;
  --terracotta: #c96f4a;
  --terracotta-dark: #a85433;
  --ink: #1c2b30;
  --muted: #5c6b70;
  --white: #ffffff;
  --line: #d8cdb8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 58, 74, 0.12);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ocean-deep);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1.1rem; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Header / navegación ---------- */
.site-header {
  background: var(--ocean-deep);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--sand); }
.brand .mark { color: var(--terracotta); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 1.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
}

.main-nav a {
  color: var(--sand);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.main-nav a.active { background: var(--terracotta); color: var(--white); }

/* ---------- Hero (portada) ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero img.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,42,54,0.55) 0%, rgba(8,42,54,0.35) 50%, rgba(8,42,54,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  max-width: 720px;
}
.hero .kicker {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero p.lead { font-size: 1.2rem; color: var(--sand); max-width: 560px; margin-bottom: 2rem; }

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--terracotta-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--sand);
  color: var(--sand);
}
.btn-outline:hover { background: var(--sand); color: var(--ocean-deep); }

/* ---------- Secciones ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--white); }
.section-tint { background: var(--sand-deep); }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head .kicker {
  color: var(--terracotta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  display: block;
}

/* ---------- Tarjetas de artículos ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(14,58,74,0.18); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; }
.card-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-link {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card-link:hover { color: var(--terracotta-dark); }

/* ---------- Página de artículo ---------- */
.article-hero {
  background: var(--ocean-deep);
  color: var(--white);
  padding: clamp(3rem, 8vw, 5rem) 0;
}
.article-hero h1 { color: var(--white); max-width: 800px; }
.article-hero .meta { color: var(--sand); margin-top: 1rem; font-size: 0.95rem; }
.article-hero .meta span { color: var(--terracotta); font-weight: 600; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.article-body { max-width: 720px; }
.article-body h2 { margin-top: 2rem; }
.article-body h3 { margin-top: 1.5rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.4rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-body blockquote {
  border-left: 4px solid var(--terracotta);
  background: var(--white);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ocean-deep);
  margin: 1.5rem 0;
}

.toc {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
  align-self: start;
}
.toc h4 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.8rem; }
.toc ul { list-style: none; }
.toc li { margin-bottom: 0.5rem; }
.toc a { font-size: 0.92rem; }

/* ---------- Tablas ---------- */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: var(--white); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--ocean); color: var(--white); font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--sand); }

/* ---------- Formularios ---------- */
.form-group { margin-bottom: 1.2rem; }
label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--ocean-deep); }
input, textarea, select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }
.form-note a { font-weight: 600; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.contact-card h3 { color: var(--terracotta); }
.contact-card ul { list-style: none; }
.contact-card li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.contact-card li:last-child { border-bottom: none; }
.contact-card strong { color: var(--ocean-deep); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}
.faq-item h3 { color: var(--ocean-deep); font-size: 1.15rem; }
.faq-item h3::before { content: '— '; color: var(--terracotta); }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--ocean);
  color: var(--white);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--sand); max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ocean-deep);
  color: var(--sand);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(244,239,228,0.7);
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.error-page .code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); color: var(--terracotta); line-height: 1; }
.error-page p { max-width: 480px; margin: 1rem auto 2rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--teal); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--ocean-deep);
    padding: 0.5rem 0 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { display: block; padding: 0.8rem 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding-top: 4rem; }
}
