/* ========== GLOBAL (seguro para todas las páginas) ========== */
* { box-sizing: border-box; }

html {
  overflow-anchor: none;
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #eaeaea;
  background: #000;
  line-height: 1.45;
  position: relative;
  overflow-anchor: none;
}

.bg-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img/fondo.webp") center/cover no-repeat fixed;
  z-index: -2;
}

.bg-overlay::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(0,0,0,.35), rgba(0,0,0,.85));
  z-index: -1;
}

:root{
  --gold: #ffbf00;
  --gold-2: #f3b23b;
  --teal: #2c9db2;
  --ink: #0b0b0b;
  --card-bg: rgba(0,0,0,.35);
  --card-border: rgba(255,191,0,.65);
  --muted: #bdbdbd;
  --focus-ring: 0 0 0 3px rgba(255,191,0,.55);
}

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: 12px;
  padding-bottom: 8px;
  background: rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow-anchor: none;
}
@supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
  .site-header { background: rgba(0,0,0,.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}

.brand,
.site-header .brand {
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--gold) !important;
  font-size: 26px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  display: inline-block;
}
.brand .copy { margin-left: 4px; font-size: .8em; vertical-align: super; opacity: .9; font-weight: normal; }

/* === REGLA CLAVE: menú móvil oculto por defecto (solo se muestra en responsive.css) === */
.anf-nav-btn,
.acu-nav-btn,
.anf-nav-toggle,
.acu-nav-toggle { display: none !important; }

/* En escritorio, los navs deben estar visibles por defecto */
.site-header #anfibios-nav,
.site-header #acuaticos-nav {
  display: flex;
  position: static;
}

/* ---------- Category nav ---------- */
.category-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.category-nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 12px;
  color: #e7e7e7;
  text-decoration: none;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.30);
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.category-nav a:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
  color: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25), 0 10px 20px rgba(0,0,0,.34);
}
.category-nav a:focus-visible { outline: none; box-shadow: var(--focus-ring), inset 0 1px 3px rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.30); }
.category-nav a.active {
  background: linear-gradient(#252525, #141414);
  color: #fff;
  border-color: rgba(255,255,255,.28);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.4), 0 10px 22px rgba(0,0,0,.42);
}
.category-nav a.inicio-btn:hover { background: #db750f !important; color: #fff !important; border-color: #f44336 !important; }
.category-nav a.inicio-btn:active { background: #d32f2f !important; color: #fff !important; border-color: #d32f2f !important; }

/* ---------- Hero ---------- */
.hero { margin-top: 6px; }
.hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.05;
  color: var(--gold);
  margin: 6px 0 4px;
  letter-spacing: .2px;
}
.hero-sub {
  color: #e1e1e1;
  max-width: 880px;
  opacity: .95;
  margin-top: 2px;
  margin-bottom: 6px;
}

/* ---------- Products / grid ---------- */
.products { padding: 6px 0 32px; overflow-anchor: none; }
.products h2 {
  margin: 4px 0 10px;
  font-size: clamp(20px, 2.1vw, 26px);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
}

.section-subtitle {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 650;
  color: var(--gold-2);
  margin: 10px 0 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}
.products .section-subtitle { color: var(--gold) !important; }

.card-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  overflow-anchor: none;
}

.card { text-align: center; position: relative; contain: layout; overflow-anchor: none; }
.card figure {
  margin: 0; padding: 10px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
  transition: box-shadow .15s ease, filter .15s ease;
  position: relative; overflow: hidden;
}
.card:hover figure, .card figure:focus-within { box-shadow: 0 12px 28px rgba(0,0,0,.55); filter: saturate(1.03); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 2px solid var(--card-border); }
.card figcaption { margin-top: 8px; }
.card figcaption .section-subtitle { border-bottom: none; margin: 6px 0 4px; font-size: clamp(17px, 1.6vw, 19px); }
.card figcaption p { margin: 6px 0 8px; font-size: .95rem; }

/* ---------- Botón/Link de tarjeta ---------- */
.card .card-label {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  color: #f5c60a;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.30);
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
  cursor: pointer; text-decoration: none;

  /* >>> nuevo: para posicionar correctamente el ::after del texto sustituto */
  position: relative;
}
.card .card-label:hover,
.card .card-label:focus-visible {
  background: #f50a31; border-color: #f0edee; transform: translateY(-1px);
  color: #fff; box-shadow: inset 0 1px 2px rgba(0,0,0,.25), 0 10px 20px rgba(0,0,0,.34); outline: none;
}
.card .card-label:active { transform: translateY(0); box-shadow: inset 0 1px 4px rgba(0,0,0,.40), 0 4px 10px rgba(0,0,0,.30); }

/* ===== Desactiva globos de hover en estas páginas ===== */
.page-tipos .card::after,
.page-cuidados .card::after,
.page-ambiente .card::after,
.page-habitat .card::after,
.page-utensilios .card::after { display: none !important; }

/* ---------- Aviso Amazon ---------- */
.amazon-disclaimer {
  margin: 18px auto 10px;
  display: flex; justify-content: center; align-items: center; text-align: center;
  max-width: 880px; font-size: 14px; font-weight: 700; color: var(--gold);
}
.amazon-disclaimer strong { display: inline-block; }

/* ===== Títulos compactos globales ===== */
.hero h1 { font-size: clamp(23px, 2.4vw, 32px) !important; margin: 4px 0 2px !important; letter-spacing: .15px; }
.site-header .hero { margin-top: 10px; }
.site-header .hero-sub { margin-bottom: 8px; }

.site-header .section-subtitle.in-header{
  color: var(--gold) !important;
  border-bottom: 1px solid rgba(255,255,255,.16);
  margin: 8px 0 10px; padding-bottom: 2px;
  text-align: center; margin-left: auto; margin-right: auto;
}

.nav-subrow { display: block; text-align: left; margin-top: 4px; margin-left: 0; }

/* === Fila del subtítulo + enlace === */
.header-row { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-top: 6px; }
.header-row .section-subtitle.in-header { margin: 8px 0 10px; }

/* === Enlace dorado === */
.explore-link {
  color: var(--gold); font-weight: 700; text-decoration: none; border-radius: 8px; padding: 6px 10px; line-height: 1;
  background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.30);
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.explore-link:hover,.explore-link:focus-visible,.explore-link:active{
  color:#fff;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22);transform:translateY(-1px);
  outline:none;box-shadow:inset 0 1px 3px rgba(0,0,0,.25), 0 10px 20px rgba(0,0,0,.34);
}

/* =========================
   SOLO PARA page-tipos
========================= */
.page-tipos .card figure { overflow: visible; }
.page-tipos .media { position: relative; border-radius: 12px; display: block; }
.page-tipos .amazon-link{
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-weight: 800; font-size: .82rem; line-height: 1.1;
  color: var(--gold); text-decoration: none !important; background: #000; border: 1px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 6px rgba(0,0,0,.35);
}
.page-tipos .amazon-link:hover { background: rgba(11,102,23,.40); color: #fefffa; }
.page-tipos .amazon-link:active { transform: translateY(1px); }
.page-tipos .amazon-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.page-tipos .media img{
  border-radius: 12px; border: 2px solid var(--card-border);
  transition: transform .35s ease; transform-origin: center center; cursor: zoom-in; position: relative; z-index: 1;
}
.page-tipos .media img.zoomed { transform: scale(1.35); cursor: zoom-out; }

/* =========================================================
   INDEX ACUÁTICOS — hover de texto sobre la imagen (figure)
========================================================= */
.page-acua-index .card { position: relative; }
.page-acua-index .card figure { overflow: visible; }
.page-acua-index .card figure::after{
  content: "";
  position: absolute; z-index: 2; color: #fff; font-size: 14px; line-height: 1.35;
  display: flex; align-items: center; justify-content: center; text-align: left;
  padding: 12px 14px; border-radius: 14px; width: max(220px, 58%); max-width: 72%; max-height: 70%;
  white-space: pre-line; overflow: hidden;
  border: 2px solid #ffbf00;
  box-shadow: inset 0 1px 3px rgba(255,220,100,.4), 0 6px 18px rgba(0,0,0,.6);
  opacity: 0; transform: scale(.96);
  transition: opacity .24s ease, transform .24s ease, box-shadow .24s ease, backdrop-filter .24s ease;
  pointer-events: none; background: rgba(20,20,20,.45);
}
@supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
  .page-acua-index .card figure::after{ background: rgba(20,20,20,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
.page-acua-index .card figure:hover::after { opacity: 1; transform: scale(1); box-shadow: inset 0 1px 3px rgba(255,220,100,.4), 0 10px 26px rgba(0,0,0,.65); }
.page-acua-index .card:nth-child(4n+1) figure::after,
.page-acua-index .card:nth-child(4n+2) figure::after { top: 8%; left: 6%; }
.page-acua-index .card:nth-child(4n+3) figure::after,
.page-acua-index .card:nth-child(4n+4) figure::after { top: 8%; right: 6%; text-align: right; }
.page-acua-index .card:nth-child(1)  figure::after { background: rgba(22,90,60,.45);  content: "🟢 Alga Nori. Láminas vegetales ricas en fibra y minerales para peces herbívoros y omnívoros."; }
.page-acua-index .card:nth-child(2)  figure::after { background: rgba(200,60,40,.45);  content: "🧊 Artemia Congelada. Alimento natural muy aceptado por peces tropicales y marinos."; }
.page-acua-index .card:nth-child(3)  figure::after { background: rgba(120,90,40,.45);  content: "🟡 Daphnia. Bocados pequeños, ideales para alevines y peces de boca fina."; }
.page-acua-index .card:nth-child(4)  figure::after { background: rgba(40,120,80,.45);  content: "💚 Flakes de Espirulina. Refuerzan el color y la digestión en especies herbívoras."; }
.page-acua-index .card:nth-child(5)  figure::after { background: rgba(160,110,40,.45); content: "🦐 Gammarus Seco. Snack proteico para tortugas y peces grandes (uso ocasional)."; }
.page-acua-index .card:nth-child(6)  figure::after { background: rgba(220,140,40,.45); content: "🟠 Hojuelas Tropicales. Mezcla equilibrada para la mayoría de peces comunitarios."; }
.page-acua-index .card:nth-child(7)  figure::after { background: rgba(200,40,50,.45);  content: "🔴 Larva de Mosquito (Bloodworms). Muy palatables; perfectas para estimular el apetito."; }
.page-acua-index .card:nth-child(8)  figure::after { background: rgba(80,120,140,.45);  content: "🔹 Micropellets Alevines. Tamaño fino y hundimiento lento para peces jóvenes."; }
.page-acua-index .card:nth-child(9)  figure::after { background: rgba(40,100,80,.45);  content: "🟢 Obleas de Algas. Para plecos y otros comedores de fondo herbívoros."; }
.page-acua-index .card:nth-child(10) figure::after { background: rgba(160,60,60,.45);  content: "🔵 Pellets Betta. Pellets flotantes ricos en proteína para bettas y anabántidos."; }
.page-acua-index .card:nth-child(11) figure::after { background: rgba(120,90,60,.45); content: "⚫ Pellets de Fondo. Se hunden rápido; ideales para corydoras y lochas."; }
.page-acua-index .card:nth-child(12) figure::after { background: rgba(140,110,70,.45); content: "🧊 Tubifex Liofilizado. Proteína concentrada; úsalo como complemento."; }

/* =========================================================
   INDEX ANFIBIOS — hover de texto sobre la imagen (figure)
========================================================= */
.page-anfib-index .card { position: relative; }
.page-anfib-index .card figure { position: relative; overflow: visible; }
.page-anfib-index .card figure::after{
  content: "";
  position: absolute; z-index: 2; color: #fff; font-size: 14px; line-height: 1.35;
  display: flex; align-items: center; justify-content: center; text-align: left;
  padding: 12px 14px; border-radius: 14px; width: max(220px, 58%); max-width: 72%; max-height: 70%;
  white-space: pre-line; overflow: hidden;
  border: 2px solid #ffbf00;
  box-shadow: inset 0 1px 3px rgba(255,220,100,.4), 0 6px 18px rgba(0,0,0,.6);
  opacity: 0; transform: scale(.96);
  transition: opacity .24s ease, transform .24s ease, box-shadow .24s ease, backdrop-filter .24s ease;
  pointer-events: none; background: rgba(20,20,20,.45);
}
@supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
  .page-anfib-index .card figure::after{ background: rgba(20,20,20,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
.page-anfib-index .card figure:hover::after,
.page-anfib-index .card figure:focus-within::after{
  opacity: 1; transform: scale(1); box-shadow: inset 0 1px 3px rgba(255,220,100,.4), 0 10px 26px rgba(0,0,0,.65);
}
.page-anfib-index .card:nth-child(4n+1) figure::after,
.page-anfib-index .card:nth-child(4n+2) figure::after { top: 8%; left: 6%; }
.page-anfib-index .card:nth-child(4n+3) figure::after,
.page-anfib-index .card:nth-child(4n+4) figure::after { top: 8%; right: 6%; text-align: right; }
.page-anfib-index .card:nth-child(1)  figure::after { background: rgba(110,70,30,.4);  content:"🟤 Pellets para Axolotes. Pellets nutritivos diseñados para axolotes, compatibles también con tritones y salamandras acuáticas. Favorecen un crecimiento sano y equilibrado."; }
.page-anfib-index .card:nth-child(2)  figure::after { background: rgba(200,40,40,.4);  content:"🔴 Cubos de Lombriz Roja Congelada. Alimento natural para ranas acuáticas, axolotes y tritones. Rico en proteínas, estimula el apetito y aporta energía diaria."; }
.page-anfib-index .card:nth-child(3)  figure::after { background: rgba(90,60,25,.4);   content:"🟤 Grillos Secos. Ideales para ranas terrestres y sapos insectívoros. Fuente de proteínas de fácil digestión para un desarrollo fuerte."; }
.page-anfib-index .card:nth-child(4)  figure::after { background: rgba(70,120,50,.4);  content:"🪰 Moscas de la Fruta (Drosophila) Deshidratadas. Bocados pequeños perfectos para renacuajos, ranas jóvenes y salamandras de menor tamaño. Favorecen la alimentación instintiva."; }
.page-anfib-index .card:nth-child(5)  figure::after { background: rgba(60,140,60,.4);  content:"🟢 Pellets Verdes para Ranas Pacman. Pellets formulados especialmente para ranas Pacman, con nutrientes que apoyan su rápido crecimiento y vitalidad."; }
.page-anfib-index .card:nth-child(6)  figure::after { background: rgba(150,120,60,.4); content:"🟤 Gusanos de Seda Deshidratados. Ricos en proteínas y calcio, recomendados para ranas arborícolas y salamandras carnívoras. Ayudan a mantener huesos y músculos fuertes."; }
.page-anfib-index .card:nth-child(7)  figure::after { background: rgba(110,60,40,.4);  content:"🪱 Lombrices de Tierra Grandes. Clásico alimento vivo y natural para salamandras, tritones y ranas de gran tamaño. Alto valor nutritivo."; }
.page-anfib-index .card:nth-child(8)  figure::after { background: rgba(190,50,50,.4);  content:"🔴 Larvas de Mosquito Rojas Congeladas. Delicadas y muy apetecibles para renacuajos, ajolotes pequeños y tritones juveniles. Aportan energía y estimulan el instinto de caza."; }
.page-anfib-index .card:nth-child(9)  figure::after { background: rgba(100,60,40,.4);  content:"🟤 Superworms (Zophobas) Deshidratados. Fuente rica en proteínas y grasas, recomendada para ranas grandes, sapos y salamandras adultas. Ideal como complemento ocasional."; }
.page-anfib-index .card:nth-child(10) figure::after { background: rgba(120,70,40,.4);  content:"🟤 Grillos Enteros Deshidratados. Proteína animal completa para ranas terrestres, sapos y axolotes adultos. Aportan nutrientes esenciales de forma natural."; }
.page-anfib-index .card:nth-child(11) figure::after { background: rgba(240,200,50,.4); content:"🟡 Daphnia Seca (Pulgas de Agua). Alimento ligero y nutritivo para renacuajos y anfibios pequeños. Favorece la digestión y la salud intestinal."; }
.page-anfib-index .card:nth-child(12) figure::after { background: rgba(220,60,60,.4);  content:"🔴 Cubos de Daphnia Congelada. Prácticos cubos de alimento natural para tritones, salamandras acuáticas y renacuajos. Aseguran frescura y calidad en cada porción."; }

/* =========================
   CTA Amazon (debajo del grid)
========================= */
.more-link { margin: 8px 0 18px; }
.more-link .container { text-align: center; font-size: 15px; color: #eaeaea; }
.more-link .emoji { margin-right: 6px; }
.more-link .cta { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.more-link .cta:hover { color: #fff; }
.more-link .affiliate-disclosure { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #eaeaea; }

/* =========================
   Tablas (Nombres Científicos)
========================= */
/* =========================
   Tablas (Nombres Científicos)
========================= */
.sci-link {
  color: var(--gold-2); 
  text-decoration: none; 
  padding: 1px 3px; 
  border-radius: 4px;
  /* Añadimos 'display: inline-block' para que el movimiento (transform) tenga fuerza */
  display: inline-block; 
  /* Simplificamos la transición para que incluya todos los cambios nuevos */
  transition: all .2s ease-in-out; 
}

.sci-link:hover { 
  /* 1. Cambio de color a blanco para resaltar */
  color: #fff !important; 
  /* 2. Subida más pronunciada (-4px) y aumento de tamaño (1.1) */
  transform: translateY(-4px) scale(1.1); 
  /* 3. Brillo tipo neón para que 'salte' del fondo oscuro */
  text-shadow: 0 0 10px var(--gold); 
  /* 4. Un fondo sutil para darle cuerpo al enlace */
  background: rgba(255, 191, 0, 0.2); 
}

.sci-link:active { background: #d32f2f; color: #fff; transform: translateY(0); }
.sci-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.table-wrap {
  width: 100%; max-width: 1000px; margin: 0 auto; overflow-x: auto;
  border: 1px solid rgba(255,255,255,.10); border-radius: 12px; background: rgba(0,0,0,.28);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }

.data-table thead th {
  font-weight: 700; color: #ffd45a; text-align: left; border-bottom: 1px solid rgba(255,255,255,.10); padding: .6rem .8rem;
}

.data-table td {
  padding: .55rem .8rem; line-height: 1.28; vertical-align: top; border-bottom: 1px dashed rgba(255,255,255,.06);
}

/* Nota: Eliminamos la regla tr:nth-child(odd) para que el fondo sea uniforme como pediste */
/* =========================
   SOLO nombres científicos (ancho mayor en desktop)
========================= */
.page-nombres .container { width: min(1280px, 96%); }
.page-nombres .table-wrap { max-width: 1200px; }
.page-nombres .amazon-disclaimer { max-width: 1200px; }

/* =========================
   Etiqueta superior chip en 4 páginas
========================= */
.page-cuidados .card figcaption > *:first-child,
.page-ambiente .card figcaption > *:first-child,
.page-habitat .card figcaption > *:first-child,
.page-utensilios .card figcaption > *:first-child{
  background: rgba(0,0,0,.35); border: 1px solid #383d3a; border-radius: 5px; padding: 6px 10px; cursor: default;
  color: #73c408; font-weight: 700; text-shadow: 0 1px 0 rgba(0,0,0,.45);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.30);
  display: inline-flex; align-items: center; gap: .4rem;
}

/* =========================
   SOLO page-cuidados — chip .info-icon
========================= */
.card.info-card { position: relative; isolation: isolate; z-index: 0; }
.card.info-card:hover { z-index: 2; }
.info-icon { display: inline-block; color: orange; border: .2px solid #3d3a3a; padding: 2px 6px; border-radius: 8px; }

/* ===========================================
   FONDO DE HOME PARA LEYES Y SITIOS (footer)
=========================================== */
.page-leyes .bg-overlay::before,
.page-sitios .bg-overlay::before{
  background: url("../../img/fondo-mascotas.jpg") center/cover no-repeat fixed;
}
.page-leyes .bg-overlay::after,
.page-sitios .bg-overlay::after{
  background: radial-gradient(1200px 600px at 50% -10%, rgba(0,0,0,.28), rgba(0,0,0,.78));
}

/* ================================
   CENTRADOS (no responsive)
================================ */
.page-anfib-index .nav-wrapper{ position: relative; display: flex; justify-content: center; align-items: center; }
.page-anfib-index .hero{ text-align: center; margin: 0 auto; max-width: 900px; }
.page-anfib-index .category-nav{ justify-content: center; }
.page-anfib-index .products h2{ text-align: center; }
/* Posición del botón (se muestra solo en móvil por responsive.css) */
.page-anfib-index .anf-nav-btn{ position: absolute; right: 16px; top: 12px; }

.page-acua-index .nav-wrapper{ position: relative; display: flex; justify-content: center; align-items: center; }
.page-acua-index .hero{ text-align: center; margin: 0 auto; max-width: 900px; }
.page-acua-index .category-nav{ justify-content: center; }
.page-acua-index .products h2{ text-align: center; }
/* Posición del botón (se muestra solo en móvil por responsive.css) */
.page-acua-index .acu-nav-btn{ position: absolute; right: 16px; top: 12px; }

/* === NUEVO: CENTRADOS PARA TODAS LAS PÁGINAS INTERNAS === */
.page-cuidados .hero,
.page-ambiente .hero,
.page-habitat .hero,
.page-utensilios .hero,
.page-nombres .hero{
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}
.page-cuidados .category-nav,
.page-ambiente .category-nav,
.page-habitat .category-nav,
.page-utensilios .category-nav,
.page-nombres .category-nav{
  justify-content: center;
}
.page-cuidados .products h2,
.page-ambiente .products h2,
.page-habitat .products h2,
.page-utensilios .products h2,
.page-nombres .products h2{
  text-align: center;
}
/* — Centrado explícito para TIPOS (Anfibios y Acuáticos) — */
.page-tipos .site-header .brand{
  display:block;
  margin:0 auto;
  text-align:center;
}

.page-tipos .hero{
  text-align:center;
  margin:0 auto;
  max-width:900px;
}

.page-tipos .category-nav{ justify-content:center; }

.page-tipos .products h2{ text-align:center; }

/* — Centrar la marca en páginas internas — */
.page-cuidados .site-header .brand,
.page-ambiente .site-header .brand,
.page-habitat  .site-header .brand,
.page-utensilios .site-header .brand,
.page-nombres .site-header .brand{
  display: block;
  margin: 0 auto;         /* centra horizontalmente */
  text-align: center;     /* asegura centrado del texto */
}

/* === Botón se expande para mostrar “Comprar en Amazon” (solo dentro de productos) === */
.page-acua-index .products .card .card-label,
.page-anfib-index .products .card .card-label{
  display: inline-block;
  white-space: nowrap;
  transition: min-width .18s ease,
              padding .18s ease,
              color .12s ease, transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  min-width: auto;
}

/* ---------- AJUSTE CLAVE (Acuáticos: el MISMO enlace tiene ambas clases) ---------- */
.page-acua-index .products .btn-amazon-acuaticos:hover,
.page-acua-index .products .btn-amazon-acuaticos:focus-visible{
  min-width: 172px;
  padding-inline: 12px;
  color: transparent;
}

/* Texto sustituto centrado que sí se ve al pasar el mouse (Acuáticos) */
.page-acua-index .products .btn-amazon-acuaticos:hover::after,
.page-acua-index .products .btn-amazon-acuaticos:focus-visible::after{
  content: "Comprar en Amazon";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  pointer-events: none;
}

/* Pequeño realce al pasar por el botón (sin mover layout) */
.page-acua-index .products .card .card-label[href*="amazon."]:hover,
.page-anfib-index .products .card .card-label[href*="amazon."]:hover{
  transform: translateY(-1px);
}

/* ===== Estilo para textos con enlace a Amazon ===== */
/* Zona activa invisible pero clickeable */
.link-amazon {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding: 4px 6px;
  margin: 2px 0;
  border-radius: 6px;
  background-color: transparent;
  transition: color 0.3s ease, text-shadow 0.4s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Hover: texto dorado + halo suave */
.link-amazon:hover {
  color: red;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.25);
  background-color: rgba(255, 215, 0, 0.08);
}

/* Click: resplandor corto */
.link-amazon:active {
  animation: glow 0.4s ease-out;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.9),
                 0 0 20px rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  }
  100% {
    text-shadow: none;
    box-shadow: none;
  }
}



/* === IMPORTA TODO LO RESPONSIVE === */
@import url("./responsive.css");

/* === Amazon Search++: rojo SOLO al pasar el mouse / foco === */
.category-nav a.amazon-btn{
  /* Sin color base especial: hereda el estilo del menú */
  /* Opcional: transición algo más suave */
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

/* Hover / focus: rojo + texto blanco */
.category-nav a.amazon-btn:hover,
.category-nav a.amazon-btn:focus-visible{
  background: #e53935;          /* rojo al pasar */
  color: #fff;                   /* texto blanco */
  border-color: rgba(255,255,255,.35);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25), 0 10px 20px rgba(0,0,0,.34);
  outline: none;
}

/* Clic: resplandor blanco breve */
.category-nav a.amazon-btn:active{
  transform: translateY(0);
  animation: amazonClickGlow .35s ease-out;
}

/* Animación del resplandor blanco */
@keyframes amazonClickGlow{
  0%{
    box-shadow:
      0 0 0 0 rgba(255,255,255,.85),
      0 0 28px 10px rgba(255,255,255,.85),
      inset 0 1px 4px rgba(0,0,0,.40);
  }
  100%{
    box-shadow:
      0 0 0 0 rgba(255,255,255,0),
      0 0 0 0 rgba(255,255,255,0),
      inset 0 1px 4px rgba(0,0,0,.40);
  }
}

/* Accesibilidad: anillo claro para teclado */
.category-nav a.amazon-btn:focus-visible{
  box-shadow:
    0 0 0 3px rgba(255,255,255,.55),
    inset 0 1px 2px rgba(0,0,0,.25), 0 10px 20px rgba(0,0,0,.34);
}

/* Respeta movimiento reducido */
@media (prefers-reduced-motion: reduce){
  .category-nav a.amazon-btn{ transition: none; }
  .category-nav a.amazon-btn:active{ animation: none; }
}




