/*
 * tdp-system.css — CSS GLOBAL del child theme Todo de Peces
 *
 * Contenido:
 *   1. @font-face (Bricolage Grotesque, Caveat, Mulish) — self-hosted
 *   2. Design tokens (:root)
 *   3. Reset y base
 *   4. Utilidades globales (.container, .sec, .on-cream, .eyebrow, .wave)
 *   5. Header / Nav (sticky, scrolled, drawer móvil)
 *   6. Footer
 *   7. Botones (.btn + variantes)
 *   8. Tags (.tag + variantes de color)
 *   9. Breadcrumb (.crumbs)
 *  10. Bloque FAQ (.faqlist / .faq)
 *  11. Newsletter — home (.news) y blog (.subscribe) — misma estructura
 *  12. Tarjeta fishcard (.fishcard f1–f4) — común a home y categoría peces
 *  13. Tarjeta de artículo (.art) — común a blog y artículo relacionado
 *  14. Tarjeta artículo ligera (.post) — home y cat. peces
 *  15. Artículo destacado (.feat-art) — blog
 *  16. Paginación (.pager)
 *  17. Aviso de afiliados (.affiliate)
 *  18. Bloque tipbox / warnbox
 *  19. Filtros (.filters / .filter)
 *  20. Animaciones SVG (swim, bob, sway, rise)
 *  21. Responsive global (breakpoints compartidos)
 *
 * Notas de unificación (ver ANALISIS-DISENO.md §4):
 *  - Header opacity unificada a .88 (valor de plantillas internas).
 *  - Botón font-size unificado a 0.95rem. El btn del hero home puede sobreescribir a 1rem via tdp-home.css.
 *  - Padding del btn unificado a .8rem 1.5rem. Hero home sobreescribe a .85rem 1.7rem.
 *  - .eyebrow unificado a 1.55rem.
 *  - Menú unificado a: Inicio | Guías | Especies | Equipo | Blog.
 *  - Footer con "Política de cookies" en todos los footers.
 *  - fishcard .scene height unificada a 140px (valor intermedio).
 */

/* ============================================================
   1. @font-face — fuentes self-hosted
   Archivos esperados en assets/fonts/ (ver LEEME.md).
   font-display: swap para no bloquear el render.
   ============================================================ */

/* Bricolage Grotesque — variable font (opsz, wght) */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/BricolageGrotesque-VariableFont_opsz,wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  font-named-instance: 'Regular';
}

/* Caveat — variable font (wght) */
@font-face {
  font-family: 'Caveat';
  src: url('../fonts/Caveat-VariableFont_wght.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Mulish — normal + italic, pesos estáticos */
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


/* ============================================================
   2. Design tokens — :root
   ============================================================ */
:root {
  /* Paleta (15 colores) */
  --ocean:      #1d3160;
  --ocean-deep: #15244a;
  --cream:      #f6f1e6;
  --cream-2:    #efe7d6;
  --bg:         #ffffff;
  --sea:        #3f9b74;
  --honey:      #f0c64e;
  --coral:      #d97a4e;
  --sky:        #bcd6ec;
  --sky-2:      #a7c9e8;
  --foam:       #d7e8e0;
  --ink:        #1d3160;
  --ink-soft:   #43547d;
  --muted:      #6f7a9c;
  --line:       #e3e6ef;
  --line-cream: #e6ddcb;

  /* Tipografías */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Mulish', system-ui, sans-serif;
  --font-script:  'Caveat', cursive;

  /* Espaciado y layout */
  --maxw: 1180px;
  --read: 660px;

  /* Radios */
  --r:    18px;
  --r-lg: 30px;

  /* Sombras */
  --shadow:      0 22px 50px -26px rgba(21, 36, 74, .45);
  --shadow-soft: 0 12px 30px -18px rgba(21, 36, 74, .3);

  /* Escala tipográfica de headings (unificada — ver §4 ANALISIS-DISENO) */
  --h1-site: clamp(2.3rem, 4.6vw, 3.5rem);   /* hero home (sobreescribe tdp-home.css) */
  --h1-page: clamp(2.1rem, 4.4vw, 3.2rem);   /* páginas internas y artículos */
  --h2-base: clamp(1.6rem, 3.2vw, 2.3rem);   /* valor seguro en todos los contextos */
}


/* ============================================================
   3. Reset y base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Headings globales — Bricolage, uppercase, comprimidos */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
}

/* Escala por defecto (páginas internas) — home sobreescribe en tdp-home.css */
h1 { font-size: var(--h1-page); }
h2 { font-size: var(--h2-base); }
h3 { font-size: clamp(1.12rem, 1.9vw, 1.4rem); text-transform: none; }

p { text-wrap: pretty; }


/* ============================================================
   4. Utilidades globales
   ============================================================ */

/* Contenedor centrado */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* Sección genérica con padding vertical */
.sec {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.sec.on-cream {
  background: var(--cream);
}

/* Cabecera de sección */
.sec-head {
  max-width: 660px;
  margin-inline: auto;                       /* centrado por defecto (fiel al prototipo) */
  text-align: center;
  padding-inline: clamp(1.1rem, 4vw, 2rem);  /* margen lateral garantizado en móvil = el del .container */
  margin-bottom: 2.6rem;
  position: relative;
  z-index: 2;
}
/* .center se mantiene por compatibilidad; el centrado ya es el comportamiento base */
.sec-head.center {
  margin-inline: auto;
  text-align: center;
}

/* Logo de marca — imagen real del sitio (reemplaza el dibujo SVG del prototipo).
   En el footer (fondo oscuro) se vuelve blanco con un filtro. */
.brand-logo { height: 46px; width: auto; display: block; }
.mnav .brand-logo { height: 40px; }
.site-footer .brand-logo,
.brand-logo--light { height: 56px; filter: brightness(0) invert(1); }
@media (max-width: 640px) { .brand-logo { height: 40px; } }
.sec-head p {
  color: var(--ink-soft);
  margin-top: .7rem;
  font-size: 1rem;
}

/* Eyebrow / kicker Caveat (unificado a 1.55rem) */
.eyebrow {
  font-family: var(--font-script);
  font-size: 1.55rem;
  color: var(--sea);
  font-weight: 700;
  line-height: 1;
  display: block;
}

/* Subtítulo script en coral */
.script-sub {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--coral);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

/* Wave divisor SVG (reusable) */
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1;
}
.wave svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wave.bottom { bottom: -1px; }
.wave.top    { top: -1px; }

/* Decoración de fondo (SVG animados) */
.decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: var(--ocean);
}


/* ============================================================
   5. Header / Nav
   ============================================================ */

/* Barra sticky — opacidad unificada a .88 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 230, .88);
  backdrop-filter: blur(12px);
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 6px 22px -18px rgba(21, 36, 74, .5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .9rem;
}

/* Logotipo */
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ocean);
  letter-spacing: -.03em;
}
.brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sky);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--ocean);
}
.brand .mark svg {
  width: 28px;
  height: 28px;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .57rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sea);
  margin-top: -3px;
}

/* Links de navegación desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: .5rem .8rem;
  border-radius: 9px;
  color: var(--ink-soft);
  transition: color .15s, background .15s;
}
.nav-links a:hover {
  color: var(--ocean);
  background: rgba(188, 214, 236, .45);
}

/* Acciones de nav (búsqueda + CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

/* Botón icono circular (búsqueda, redes sociales) */
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--ocean);
  background: transparent;
  cursor: pointer;
  color: var(--ocean);
  transition: .15s;
}
.icon-btn:hover {
  background: var(--ocean);
  color: #fff;
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}

/* Hamburguesa — oculto por defecto, visible en <860px */
.menu-toggle {
  display: none;
}

/* Drawer móvil */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 1.2rem clamp(1.1rem, 4vw, 2rem);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  visibility: hidden;
}
.mnav.open {
  transform: none;
  visibility: visible;
}
.mnav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mnav ul {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.mnav ul a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-cream);
  display: block;
  color: var(--ocean);
}
.mnav .cta-wrap {
  margin-top: 2rem;
}


/* ============================================================
   6. Footer
   ============================================================ */
.site-footer {
  background: var(--ocean-deep);
  color: rgba(255, 255, 255, .8);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  position: relative;
  overflow: hidden;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

/* Columna de marca */
.foot-brand .brand { color: #fff; }
.foot-brand .brand small { color: var(--sky); }
.foot-brand .mark {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.foot-brand p {
  margin-top: 1rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .72);
  max-width: 38ch;
}

/* Redes sociales */
.foot-social {
  display: flex;
  gap: .6rem;
  margin-top: 1.3rem;
}
.foot-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  transition: .18s;
}
.foot-social a:hover {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--ocean);
}
.foot-social svg {
  width: 18px;
  height: 18px;
}

/* Columnas de links */
.foot-col h4 {
  color: #fff;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.foot-col a {
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
  transition: .15s;
}
.foot-col a:hover { color: #fff; }

/* Pie de footer */
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
  position: relative;
  z-index: 2;
}


/* ============================================================
   7. Botones — .btn + variantes
   Unificados: font-size 0.95rem, padding .8rem 1.5rem.
   (tdp-home.css puede sobreescribir el btn del hero a 1rem / .85rem 1.7rem)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .8rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* Primario — océano */
.btn-primary {
  background: var(--ocean);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--ocean-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--ocean);
  border-color: var(--ocean);
}
.btn-outline:hover {
  background: var(--ocean);
  color: #fff;
  transform: translateY(-2px);
}

/* Claro / blanco */
.btn-light {
  background: #fff;
  color: var(--ocean);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Coral — afiliado Amazon */
.btn-coral {
  background: var(--coral);
  color: #fff;
}
.btn-coral:hover {
  filter: brightness(.93);
  transform: translateY(-2px);
}


/* ============================================================
   8. Tags / etiquetas pill
   ============================================================ */
.tag {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .3rem .65rem;
  border-radius: 100px;
}
.tag.t-sea   { background: rgba(63, 155, 116, .16); color: #2f7d5b; }
.tag.t-sky   { background: rgba(122, 170, 212, .22); color: #2f5d8a; }
.tag.t-coral { background: rgba(217, 122, 78, .18);  color: #b45f37; }
.tag.t-honey { background: rgba(240, 198, 78, .3);   color: #8a6d1c; }


/* ============================================================
   9. Breadcrumb (.crumbs)
   ============================================================ */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--ocean);
  text-decoration: underline;
}
.crumbs .sep {
  color: var(--coral);
  font-weight: 800;
}
.crumbs [aria-current] { color: var(--ink-soft); }


/* ============================================================
   10. Bloque FAQ (.faqlist / .faq)
   ============================================================ */
.faqlist {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  position: relative;
  z-index: 2;
}

/* Variante dentro de prosa (artículo) — sin max-width propio */
.prose .faqlist {
  max-width: none;
  margin: 1rem 0 0;
}

.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
/* Sobre fondo crema el borde usa la variante crema */
.on-cream .faq { border-color: var(--line-cream); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: .95rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }

/* Botón "+" que rota a "×" al abrir */
.faq summary .pl {
  transition: transform .2s;
  flex: none;
  color: var(--coral);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
}
.faq[open] summary .pl { transform: rotate(45deg); }

.faq p {
  padding: 0 1.2rem 1.1rem;
  font-size: .92rem;
  color: var(--ink-soft);
}


/* ============================================================
   11. Newsletter — .news (home) y .subscribe (blog)
   Misma estructura visual, clases distintas para flexibilidad.
   ============================================================ */

/* Home */
.news {
  background: var(--sea);
  color: #fff;
  padding-block: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.news .container {
  position: relative;
  z-index: 2;
  text-align: center;
}
.news h2 {
  color: #fff;
  max-width: 18ch;
  margin: 0 auto;
}
.news p {
  color: rgba(255, 255, 255, .92);
  max-width: 46ch;
  margin: 1rem auto 1.8rem;
}

/* Blog */
.subscribe {
  background: var(--sea);
  color: #fff;
  overflow: hidden;
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.subscribe .container {
  position: relative;
  z-index: 2;
  text-align: center;
}
.subscribe h2 {
  color: #fff;
  max-width: 20ch;
  margin: 0 auto;
}
.subscribe p {
  color: rgba(255, 255, 255, .92);
  max-width: 46ch;
  margin: .9rem auto 1.6rem;
}

/* Bubble-tag Caveat compartido */
.bubble-tag {
  display: inline-block;
  white-space: nowrap;
  background: var(--honey);
  color: var(--ocean);
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.4rem;
  padding: .25rem 1rem;
  border-radius: 14px 14px 14px 3px;
  margin-bottom: .9rem;
  transform: rotate(-3deg);
}

/* Formulario compartido */
.news-form {
  display: flex;
  gap: .6rem;
  max-width: 480px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}
.news-form input {
  flex: 1;
  min-width: 200px;
  border: none;
  border-radius: 100px;
  padding: .95rem 1.3rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.news-form input:focus {
  outline: 3px solid rgba(255, 255, 255, .6);
}
.news-msg {
  margin-top: 1rem;
  font-weight: 700;
  min-height: 1.2em;
  font-family: var(--font-display);
}
.news-tiny {
  font-size: .78rem;
  color: rgba(255, 255, 255, .8);
  margin-top: .9rem;
}


/* ============================================================
   12. Fishcard (.fishcard f1–f4)
   Común a home y categoría peces.
   Scene unificada a 140px (intermedio entre 150px home / 130px cat).
   ============================================================ */
.fishcard {
  position: relative;
  border-radius: 20px;
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fishcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.fishcard.f1 { background: #eaf3fb; border-color: #d6e6f4; }
.fishcard.f2 { background: #fdf2dd; border-color: #f6e6c2; }
.fishcard.f3 { background: #eaf5ee; border-color: #d3ebdc; }
.fishcard.f4 { background: #fbeee6; border-color: #f3ddcd; }

.fishcard .scene {
  position: relative;
  height: 140px; /* unificado */
  margin-bottom: .8rem;
}
.fishcard .scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fishcard .mini {
  position: absolute;
  right: -4px;
  bottom: -12px;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(21, 36, 74, .3));
}
.fishcard h3 {
  font-size: 1.12rem;
  text-transform: none;
}
.fishcard .lat {
  font-style: italic;
  color: var(--muted);
  font-size: .78rem;
  margin-bottom: .6rem;
  font-weight: 600;
}
.fishcard dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .2rem .6rem;
  font-size: .8rem;
  margin-bottom: .8rem;
}
.fishcard dt {
  color: var(--ink-soft);
  font-weight: 700;
  font-family: var(--font-display);
}
.fishcard dd {
  color: var(--ink-soft);
  text-align: right;
}
/* Enlace "Ver ficha →" en cat. peces */
.fishcard .go {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .86rem;
  color: var(--ocean);
  display: inline-flex;
  gap: .35rem;
  align-items: center;
}
.fishcard .go svg {
  width: 14px;
  height: 14px;
}


/* ============================================================
   13. Tarjeta de artículo (.art) — blog listado y relacionados ligeros
   ============================================================ */
.art {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.art:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.art.hidden { display: none; }

.art .pic {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.art .pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art .body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.art h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  margin: .6rem 0 .4rem;
}
.art h3 a:hover { color: var(--coral); }
.art p {
  font-size: .88rem;
  color: var(--ink-soft);
}
.art .meta {
  margin-top: auto;
  padding-top: .8rem;
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.art .meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.art .meta svg {
  width: 14px;
  height: 14px;
}

/* Variante ligera .post (home y cat. peces) */
.post {
  display: flex;
  flex-direction: column;
}
.post .ph {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: .9rem;
  aspect-ratio: 16/10;
}
.post .ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post .art-meta {
  display: flex;
  gap: .8rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.post .art-meta svg {
  width: 13px;
  height: 13px;
}
.post h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: .4rem;
}
.post h3 a:hover { color: var(--coral); }
.post p {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: .9rem;
}
.post .go {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--ocean);
  display: inline-flex;
  gap: .35rem;
  align-items: center;
}
.post .go svg {
  width: 14px;
  height: 14px;
  transition: transform .15s;
}
.post .go:hover svg { transform: translateX(3px); }


/* ============================================================
   14. Artículo destacado (.feat-art) — blog listado
   ============================================================ */
.feat-art {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.feat-art .pic {
  position: relative;
  min-height: 340px;
  align-self: stretch;
}
.feat-art .pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feat-art .body {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.feat-art .body h2 {
  margin: .8rem 0 .6rem;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}
.feat-art .body h2 a:hover { color: var(--coral); }
.feat-art .body p {
  color: var(--ink-soft);
  font-size: .98rem;
}
.feat-art .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 1.3rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.feat-art .meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.feat-art .meta svg {
  width: 15px;
  height: 15px;
}
/* Badge script "Guía destacada" */
.feat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  background: var(--honey);
  color: var(--ocean);
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.2rem;
  padding: .15rem .9rem;
  border-radius: 12px 12px 12px 3px;
  transform: rotate(-2deg);
}


/* ============================================================
   15. Paginación (.pager)
   ============================================================ */
.pager {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.4rem;
  position: relative;
  z-index: 2;
}
.pager a,
.pager span {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid var(--line);
  color: var(--ink-soft);
  transition: .15s;
  padding-inline: .4rem;
}
.pager a:hover {
  border-color: var(--ocean);
  color: var(--ocean);
}
.pager .current {
  background: var(--ocean);
  border-color: var(--ocean);
  color: #fff;
}
.pager .dots { border: none; }


/* ============================================================
   16. Aviso de afiliados (.affiliate)
   ============================================================ */
.affiliate {
  margin-top: 2rem;
  border: 1.5px dashed var(--line-cream);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-size: .84rem;
  color: var(--muted);
  background: #fff;
  position: relative;
  z-index: 2;
}
.affiliate b { color: var(--ink-soft); }


/* ============================================================
   17. Tipbox / Warnbox
   ============================================================ */
.tipbox,
.warnbox {
  background: rgba(240, 198, 78, .22);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  display: flex;
  gap: .8rem;
  font-size: .94rem;
  color: var(--ink-soft);
}
.tipbox svg,
.warnbox svg {
  width: 22px;
  height: 22px;
  color: #b48a1c;
  flex: none;
  margin-top: .15rem;
}
.tipbox b,
.warnbox b { color: var(--ink); }


/* ============================================================
   18. Filtros (.filters / .filter)
   Compartidos entre cat. peces y blog.
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 2;
}
.filter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .55rem 1.2rem;
  border-radius: 100px;
  border: 2px solid var(--ocean);
  background: transparent;
  color: var(--ocean);
  cursor: pointer;
  transition: .15s;
}
.filter:hover { background: rgba(188, 214, 236, .4); }
.filter.active {
  background: var(--ocean);
  color: #fff;
}


/* ============================================================
   19. Animaciones SVG — swim, bob, sway, rise
   ============================================================ */
@keyframes swim {
  0%   { transform: translateX(0) rotate(var(--rot, 0deg)); }
  50%  { transform: translateX(14px) rotate(calc(var(--rot, 0deg) + 3deg)); }
  100% { transform: translateX(0) rotate(var(--rot, 0deg)); }
}
@keyframes bob {
  0%   { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%  { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
  100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
}
@keyframes sway {
  0%   { transform: rotate(-4deg); }
  50%  { transform: rotate(4deg); }
  100% { transform: rotate(-4deg); }
}
@keyframes rise {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  15%  { opacity: .7; }
  80%  { opacity: .5; }
  100% { transform: translateY(-150px) scale(1); opacity: 0; }
}

.anim-swim { animation: swim 6s ease-in-out infinite; }
.anim-bob  { animation: bob  5s ease-in-out infinite; }
.anim-sway {
  transform-origin: bottom center;
  animation: sway 7s ease-in-out infinite;
}
.bubble-rise {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .18);
  animation: rise 6s ease-in infinite;
  pointer-events: none;
}
.bubble-rise.on-light {
  border-color: rgba(63, 120, 192, .5);
  background: rgba(188, 214, 236, .4);
}

/* Respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .anim-swim, .anim-bob, .anim-sway, .bubble-rise { animation: none !important; }
  html { scroll-behavior: auto; }
}


/* ============================================================
   20. Responsive global — breakpoints compartidos
   ============================================================ */

/* 1020px: grids de 4 col → 2 col */
@media (max-width: 1020px) {
  .related { grid-template-columns: repeat(2, 1fr); }
  .related-arts { grid-template-columns: repeat(2, 1fr); }
  .arts { grid-template-columns: repeat(2, 1fr); }
}

/* 980px: ajustes generales */
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* 960px: layouts de 2 columnas → 1 columna */
@media (max-width: 960px) {
  .feat-art { grid-template-columns: 1fr; }
  .feat-art .pic { min-height: 240px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* 860px: hamburger */
@media (max-width: 860px) {
  .nav-links,
  .nav-actions .btn { display: none; }
  .menu-toggle { display: grid; }
}

/* 640px: móvil */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .fishcard { padding: 1rem .9rem 1.1rem; }
  .fishcard .scene { height: 100px; }
  .arts { grid-template-columns: 1fr; }
  .related-arts { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* 440px: footer a 1 columna */
@media (max-width: 440px) {
  .foot-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PARCHE de fidelidad — prototipo v2 (2026-06-11)
   Componentes globales del handoff v2 ausentes en el porteo
   (v2 usa .post-meta y .read-more en las tarjetas de post).
   ============================================================ */

/* Ancla de posicionamiento para decoraciones absolutas de cada sección */
section { position: relative; }

/* Placeholder de foto (base) + etiqueta interior */
.ph { position: relative; border-radius: var(--r); overflow: hidden; background: repeating-linear-gradient(135deg, #e9eef6 0 11px, #f4f7fb 11px 22px); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.ph span { font-family: ui-monospace, Menlo, monospace; font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); background: #fff; padding: .35rem .6rem; border-radius: 7px; box-shadow: 0 2px 8px -4px rgba(21, 36, 74, .4); text-align: center; line-height: 1.4; max-width: 82%; }

/* Banda genérica de sección */
.band { position: relative; padding-block: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.sec-head.dark p { color: rgba(255, 255, 255, .9); }

/* Menú móvil: botón */
.mnav .btn { margin-top: 1.8rem; justify-content: center; }

/* Acento manuscrito (clase suelta .script del prototipo) */
.script { font-family: var(--font-script); font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1; }

/* Decoración dibujada: speckles y manchas orgánicas */
.ds { position: absolute; z-index: 0; pointer-events: none; color: var(--ocean); opacity: .55; }
.on-color .decor, .on-color .ds { color: rgba(255, 255, 255, .85); }
.blob { position: absolute; z-index: 0; pointer-events: none; border-radius: 46% 54% 58% 42%/49% 44% 56% 51%; }

/* Regla de puntos bajo los eyebrow */
.dot-rule { display: flex; gap: .6rem; align-items: center; margin: 1rem 0; }
.dot-rule i { width: 7px; height: 7px; border-radius: 50%; background: var(--ocean); display: block; opacity: .85; }

/* Tarjeta de post — metadatos y enlace "Leer guía" */
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-family: var(--font-display); font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.post-meta span { white-space: nowrap; }
.post-meta .cat-tag { color: var(--coral); }
.post .ph { aspect-ratio: 3/2; margin-bottom: 1rem; border-radius: 18px; }
.post .ph.on-cream { background: repeating-linear-gradient(135deg, #e7dfce 0 11px, #f0e9da 11px 22px); }
.post h3 { font-size: 1.22rem; }
.post p { font-size: .92rem; color: var(--ink-soft); margin-top: .5rem; }
.post .read-more { margin-top: .7rem; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--ocean); display: inline-flex; gap: .45rem; align-items: center; }
.post .read-more svg { width: 15px; height: 15px; transition: .18s; }
.post:hover .read-more svg { transform: translateX(4px); }


/* ============================================================
   PARCHE de fidelidad — globales single (2026-06-11)
   Reglas del prototipo-single-ref.css de alcance global
   (no pertenecen a tdp-single.css porque pueden usarse
   en otras plantillas).
   ============================================================ */

/* Animación de entrada por scroll (reveal on scroll):
   .reveal = estado inicial invisible; .reveal.in = visible.
   El JS de la plantilla añade .in cuando el elemento entra en viewport. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Fix de desbordamiento en grid — min-width:0 garantiza que las celdas
   no rompan el contenedor cuando el contenido es muy ancho */
.feat-grid > div { min-width: 0; }

/* PARCHE SEO encabezados — 2026-06-12: los títulos de columnas del
   footer dejan de ser h4 (saltaban la jerarquía de encabezados) */
.foot-grid .foot-h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
  margin: 0 0 .6rem;
}
