/* ==========================================================================
   ACUARIO FISH HOUSE - EDICIÓN BIOLUMINESCENT DARK MARINE PRO (V3.0.0)
   ========================================================================== */

:root {
  --bg-deep-abyss: #040d1a;
  --bg-surface: #0a192f;
  --bg-surface-elevated: #0f2442;
  --bg-card: rgba(14, 34, 61, 0.75);
  --bg-glass: rgba(10, 25, 47, 0.85);

  --accent-cyan: #00d2ff;
  --accent-cyan-glow: rgba(0, 210, 255, 0.35);
  --accent-emerald: #05d59e;
  --accent-emerald-glow: rgba(5, 213, 158, 0.3);
  --accent-coral: #ff5e7e;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-bright: #ffffff;
  --border-glow: rgba(0, 210, 255, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --radius-organic: 26px 8px 26px 8px;
  --radius-pill: 9999px;
  --radius-smooth: 20px;

  --shadow-hud: 0 16px 40px -10px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 210, 255, 0.12);
  --shadow-neon: 0 0 20px rgba(0, 210, 255, 0.4);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep-abyss); }
body {
  margin: 0;
  color: var(--text-main);
  background: var(--bg-deep-abyss);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.icon { width: 1.35em; height: 1.35em; flex: 0 0 auto; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; color: var(--text-bright); }
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.8vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--text-muted); }

/* --- Topbar & Navigation --- */
.topbar {
  background: #020813;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
}
.topbar__inner { min-height: 36px; display: flex; align-items: center; gap: 18px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 15px; height: 15px; color: var(--accent-cyan); }
.topbar__social { margin-left: auto; display: flex; gap: 14px; }
.topbar__social a { color: var(--accent-cyan); transition: color 0.2s; }
.topbar__social a:hover { color: var(--text-bright); }

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.nav-shell__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { color: var(--text-bright); display: inline-flex; flex-direction: column; }
.brand strong { font-size: 1.8rem; letter-spacing: -0.04em; color: var(--text-bright); }
.brand span { margin-left: 20px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.15em; color: var(--accent-cyan); }
.brand i { width: 50px; height: 3px; background: linear-gradient(90deg, var(--accent-cyan), transparent); margin-top: 4px; }

.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav .menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a {
  padding: 12px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #cbd5e1;
  transition: all 0.25s ease;
  position: relative;
}
.primary-nav .menu a:hover,
.primary-nav .current-menu-item > a {
  color: var(--accent-cyan);
}
.primary-nav .menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: width 0.3s ease;
}
.primary-nav .menu a:hover::after,
.primary-nav .current-menu-item > a::after {
  width: 100%;
}

.menu-toggle { display: none; border: 0; background: transparent; color: var(--text-bright); width: 44px; height: 44px; cursor: pointer; }

/* --- Buttons --- */
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}
.button--primary-neon {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #00b4d8 100%);
  color: #031428;
  border: none;
  font-weight: 800;
  box-shadow: 0 0 20px var(--accent-emerald-glow);
}
.button--primary-neon:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px var(--accent-cyan-glow);
  color: #031428;
}
.button--outline-neon {
  background: rgba(15, 36, 66, 0.45);
  border: 1px solid var(--border-glow);
  color: var(--text-bright);
  backdrop-filter: blur(8px);
}
.button--outline-neon:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
  transform: translateY(-3px);
}
.button--whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-weight: 700;
}
.text-link:hover {
  text-shadow: 0 0 8px var(--accent-cyan);
}

.eyebrow {
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* --- Hero Section Dark Marine HUD --- */
.hero-marine {
  position: relative;
  padding: 85px 0 100px;
  background: radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.16) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(5, 213, 158, 0.1) 0%, transparent 45%),
              var(--bg-deep-abyss);
  overflow: hidden;
}
.hero-marine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/wave-lines.svg") center / 100% no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.hero-marine__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-marine h1 span {
  background: linear-gradient(90deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-marine__lead {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-marine__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

/* Bio-Monitoring HUD Box (Inspirado directamente en la pantalla de referencia) */
.marine-hud-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-organic);
  padding: 30px;
  box-shadow: var(--shadow-hud);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.marine-hud-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
}
.hud-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hud-title h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--accent-cyan);
}
.hud-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-emerald);
  background: rgba(5, 213, 158, 0.15);
  border: 1px solid rgba(5, 213, 158, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hud-live-badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hud-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.hud-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.hud-stat-box {
  background: rgba(4, 13, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 4px 12px 4px;
  padding: 12px 8px;
  text-align: center;
}
.hud-stat-box span {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.hud-stat-box strong {
  font-size: 1.05rem;
  color: var(--text-bright);
  font-weight: 800;
}
.hud-image-preview {
  position: relative;
  border-radius: var(--radius-organic);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.hud-image-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* --- Curvas Líquidas SVG Divisores --- */
.liquid-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
  z-index: 5;
}
.liquid-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

/* --- Sections Core Styling --- */
.section-dark {
  padding: 85px 0;
  position: relative;
  background: var(--bg-deep-abyss);
}
.section-dark-elevated {
  padding: 85px 0;
  position: relative;
  background: #061528;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 42px;
  gap: 20px;
}

/* --- Categorías en Malla Marina --- */
.category-grid-v3 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.category-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-organic);
  overflow: hidden;
  box-shadow: var(--shadow-hud);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}
.category-box:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 45px -10px rgba(0, 210, 255, 0.35);
}
.category-box img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-box:hover img {
  transform: scale(1.08);
}
.category-box-footer {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 17, 34, 0.9);
}
.category-box-footer strong {
  font-size: 0.95rem;
  color: var(--text-bright);
}
.category-box-footer span {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-cyan);
  color: var(--bg-deep-abyss);
  font-weight: 800;
}

/* --- Especies Destacadas (Tarjetas Ficha Técnica HUD) --- */
.species-grid-v3 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.species-card-v3 {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-organic);
  overflow: hidden;
  box-shadow: var(--shadow-hud);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}
.species-card-v3:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 22px 50px -10px rgba(0, 210, 255, 0.4);
}
.species-thumb-wrap {
  position: relative;
  overflow: hidden;
}
.species-thumb-wrap img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.species-card-v3:hover .species-thumb-wrap img {
  transform: scale(1.07);
}
.species-badge-status {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5, 213, 158, 0.92);
  color: #031428;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.species-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.species-info h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.species-params {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.param-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
}
.species-action-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(5, 213, 158, 0.15));
  border: 1px solid var(--border-glow);
  color: var(--text-bright);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 12px 4px 12px 4px;
  transition: all 0.25s ease;
}
.species-action-btn:hover {
  background: var(--accent-cyan);
  color: #031428;
  box-shadow: 0 0 18px var(--accent-cyan-glow);
}

/* --- Bloque Aquatticos Estilo Biotopo --- */
.biotopo-banner {
  margin: 20px auto;
  width: min(calc(100% - 40px), var(--container));
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-hud);
  background-size: cover;
  background-position: center;
  position: relative;
}
.biotopo-banner__overlay {
  background: linear-gradient(90deg, rgba(4, 13, 26, 0.95) 0%, rgba(10, 25, 47, 0.75) 100%);
  padding: 55px 45px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.biotopo-features {
  list-style: none;
  margin: 0; padding: 0;
}
.biotopo-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #e2e8f0;
}
.biotopo-features .icon { color: var(--accent-emerald); }

/* --- Guía Principiantes --- */
.beginner-grid-v3 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.steps-v3 {
  list-style: none;
  margin: 24px 0; padding: 0;
}
.steps-v3 li {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  position: relative;
}
.steps-v3 li span {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-cyan), #0077b6);
  color: #031428;
  font-weight: 900;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}
.steps-v3 h3 { margin: 0 0 4px; color: var(--text-bright); }

/* --- Blog Cards --- */
.blog-grid-v3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card-v3 {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-organic);
  overflow: hidden;
  box-shadow: var(--shadow-hud);
  transition: all 0.3s ease;
}
.blog-card-v3:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
}
.blog-card-v3 img {
  width: 100%; height: 210px; object-fit: cover;
}
.blog-card-v3 div { padding: 22px; }
.blog-card-v3 h3 { margin-bottom: 8px; font-size: 1.25rem; }

/* --- Footer Oscuro y Sofisticado --- */
.site-footer {
  background: #020813;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
}
.site-footer .menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  list-style: none; margin: 0; padding: 0;
}
.site-footer .menu a:hover { color: var(--accent-cyan); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* --- Botón Flotante Neón WhatsApp --- */
.acfh-float-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}
.acfh-float-whatsapp:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-marine__inner { grid-template-columns: 1fr; }
  .category-grid-v3, .species-grid-v3 { grid-template-columns: repeat(3, 1fr); }
  .biotopo-banner__overlay { grid-template-columns: 1fr; }
  .beginner-grid-v3 { grid-template-columns: 1fr; }
  .blog-grid-v3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .category-grid-v3, .species-grid-v3 { grid-template-columns: 1fr 1fr; }
  .blog-grid-v3 { grid-template-columns: 1fr; }
  .hero-marine__actions { flex-direction: column; }
  .button { width: 100%; }
}
