/* ===================================================================
   PESCADERÍA — estética "pecera": azules profundos, olas, burbujas.
   Mobile-first. Sin frameworks. Solo scroll vertical (overflow-x oculto).
   =================================================================== */

:root {
  --azul-abismo: #052236;
  --azul-profundo: #083b5c;
  --azul-medio: #0e5c8a;
  --azul-claro: #2ea3c4;
  --aqua: #4fd6d6;
  --espuma: #eaf7fb;
  --blanco: #ffffff;
  --coral: #ff8a5c;
  --texto: #0d2b3a;
  --texto-claro: #f2fbff;
  --whatsapp: #25d366;

  --radio: 16px;
  --sombra: 0 10px 30px rgba(4, 30, 48, .18);
  --fuente: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--texto);
  background: var(--espuma);
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(135deg, var(--aqua), var(--azul-claro)); color: var(--azul-abismo); box-shadow: var(--sombra); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.nav.is-solid {
  background: rgba(5, 34, 54, .92);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  padding: 10px 20px;
}
.nav__brand { color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .3px; }
.nav__links {
  position: fixed; inset: 0 0 0 30%; top: 0;
  background: var(--azul-abismo);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px; padding: 90px 28px 28px;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.nav__links.is-open { transform: translateX(0); }
.nav__links a { color: var(--texto-claro); font-size: 1.3rem; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav__burger {
  z-index: 210; width: 40px; height: 40px; border: none; background: transparent;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer;
}
.nav__burger span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: transform .25s ease, opacity .25s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (min-width: 860px) {
  .nav__links {
    position: static; inset: auto; background: transparent; flex-direction: row;
    align-items: center; gap: 28px; padding: 0; transform: none;
  }
  .nav__links a { border-bottom: none; padding: 4px 0; width: auto; font-size: 1rem; position: relative; }
  .nav__links a::after {
    content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
    background: var(--aqua); transition: width .2s ease;
  }
  .nav__links a:hover::after { width: 100%; }
  .nav__burger { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--azul-abismo), var(--azul-profundo));
}
.hero__slider { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s ease, transform 6s ease;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,34,54,.55) 0%, rgba(5,34,54,.35) 45%, rgba(5,34,54,.85) 100%);
}
.hero__bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__bubbles::before, .hero__bubbles::after {
  content: ""; position: absolute; bottom: -20px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  animation: subir 9s linear infinite;
}
.hero__bubbles::before { left: 18%; animation-duration: 7s; width: 10px; height: 10px; }
.hero__bubbles::after { left: 72%; animation-duration: 11s; animation-delay: 2s; width: 18px; height: 18px; }
@keyframes subir {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .8; }
  100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

.hero__content { position: relative; z-index: 2; text-align: center; color: var(--texto-claro); padding: 0 24px; max-width: 720px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; color: var(--aqua); font-weight: 700; margin: 0 0 10px; }
.hero__content h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); font-weight: 800; }
.hero__subtitle { font-size: 1.05rem; opacity: .9; margin: 0 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 18px; }
.hero__horario { font-size: .9rem; opacity: .85; }

.hero__dots { position: absolute; bottom: 74px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.hero__dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  background: transparent; padding: 0; cursor: pointer;
}
.hero__dots button.is-active { background: var(--aqua); border-color: var(--aqua); }

.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #fff; font-size: 1.4rem; animation: rebote 1.8s ease-in-out infinite;
}
@keyframes rebote { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Secciones genéricas ---------- */
.section { position: relative; padding: 90px 0 70px; }
.section--somos { background: var(--espuma); }
.section--ofertas { background: var(--azul-abismo); color: var(--texto-claro); }
.section--contacto { background: var(--espuma); }

.section__eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2px;
  font-size: .78rem; font-weight: 700; color: var(--azul-claro); margin-bottom: 8px;
}
.section--ofertas .section__eyebrow { color: var(--aqua); }
.section h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); color: var(--azul-abismo); }
.section--ofertas h2 { color: #fff; }
.section__lead { opacity: .85; max-width: 560px; margin-bottom: 34px; }

.wave { position: absolute; top: -1px; left: 0; width: 100%; height: 60px; background: var(--espuma); }
.wave--top { clip-path: polygon(0 40%, 5% 55%, 10% 40%, 15% 55%, 20% 40%, 25% 55%, 30% 40%, 35% 55%, 40% 40%, 45% 55%, 50% 40%, 55% 55%, 60% 40%, 65% 55%, 70% 40%, 75% 55%, 80% 40%, 85% 55%, 90% 40%, 95% 55%, 100% 40%, 100% 0, 0 0); }
.section--somos .wave--top { background: var(--espuma); top: -60px; }
.wave--light { background: var(--azul-abismo); }

/* ---------- Quiénes somos ---------- */
.somos__grid { display: grid; gap: 32px; align-items: center; }
.somos__texto p { line-height: 1.7; }
.somos__valores { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-weight: 600; }
.somos__imagen img { border-radius: var(--radio); box-shadow: var(--sombra); aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 780px) {
  .somos__grid { grid-template-columns: 1.1fr .9fr; }
}

/* ---------- Ofertas (grid gestionado por el admin) ---------- */
.ofertas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 620px) { .ofertas__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 960px) { .ofertas__grid { grid-template-columns: repeat(4, 1fr); } }

.oferta-card {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,.05);
  box-shadow: var(--sombra);
}
.oferta-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.oferta-card:hover img { transform: scale(1.06); }
.oferta-card__titulo {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
  color: #fff; font-size: .85rem; font-weight: 600;
}
.ofertas__vacio { opacity: .8; grid-column: 1 / -1; text-align: center; padding: 30px 0; }

/* ---------- Contacto ---------- */
.contacto__grid { display: grid; gap: 34px; }
@media (min-width: 860px) { .contacto__grid { grid-template-columns: 1fr 1fr; } }

.form { display: grid; gap: 14px; background: #fff; padding: 24px; border-radius: var(--radio); box-shadow: var(--sombra); }
.form__campo { display: grid; gap: 6px; }
.form__campo label { font-size: .85rem; font-weight: 700; color: var(--azul-profundo); }
.form__campo input, .form__campo textarea {
  padding: 12px 14px; border-radius: 10px; border: 1px solid #cfe3ec; font: inherit; resize: vertical;
}
.form__campo input:focus, .form__campo textarea:focus { outline: 2px solid var(--azul-claro); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; font-weight: 400; }
.form__estado { min-height: 1.2em; font-size: .9rem; font-weight: 600; }
.form__estado.ok { color: #1a8f4c; }
.form__estado.error { color: #c0392b; }

.contacto__lista { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.contacto__lista li { line-height: 1.5; }
.contacto__mapa { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); background: #fff; }
.contacto__mapa iframe { width: 100%; height: 260px; border: 0; display: block; }
.mapa__enlace { display: block; text-align: center; padding: 12px; font-weight: 700; color: var(--azul-medio); }

/* ---------- Footer ---------- */
.footer { background: var(--azul-abismo); color: rgba(255,255,255,.85); padding: 46px 0 20px; }
.footer__grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer__brand { font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 14px; }
.footer__legal a:hover { color: var(--aqua); }
.footer__copy { text-align: center; opacity: .6; font-size: .8rem; margin-top: 30px; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
  animation: latido 2.4s ease-in-out infinite;
}
@keyframes latido { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- Cookies ---------- */
.cookies {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300;
  background: #fff; color: var(--texto); border-radius: 14px; box-shadow: var(--sombra);
  padding: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  max-width: 640px; margin: 0 auto;
}
.cookies p { margin: 0; font-size: .85rem; flex: 1 1 220px; }

/* ---------- Modal legal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .modal { align-items: center; } }
.modal__fondo { position: absolute; inset: 0; background: rgba(5,34,54,.6); }
.modal__contenido {
  position: relative; background: #fff; width: 100%; max-width: 560px; max-height: 82vh; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding: 28px 24px; box-shadow: var(--sombra); line-height: 1.6;
}
@media (min-width: 700px) { .modal__contenido { border-radius: 18px; } }
.modal__cerrar { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #666; }

/* ---------- Utilidades ---------- */
[hidden] { display: none !important; }
