/* Productos Pesqueros S.A. — hoja de estilos del sitio estático
   Paleta e identidad tomadas del sitio original (azul corporativo,
   fondo claro, logo con ancla roja/azul). */

:root {
  color-scheme: light;
  --blue-700: #045c8c;
  --blue-600: #0473b2;
  --blue-500: #0088cc;
  --blue-100: #e7f3fa;
  --text: #425563;
  --text-soft: #5b6b77;
  --bg: #f4f4f4;
  --white: #ffffff;
  --red: #c21f26;
  --border: #e1e6e9;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(4, 92, 140, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1140px;
}

/* El sitio usa siempre el tema claro de la marca, sin importar el modo
   oscuro del sistema/navegador del visitante (color-scheme: light arriba
   ya evita que el navegador oscurezca formularios/scrollbars). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue-700);
  color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3 { color: var(--blue-700); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.2rem, 3vw, 1.45rem); margin: 1.4em 0 .5em; }

/* ---------- Topbar ---------- */
.topbar { background: var(--white); border-bottom: 1px solid var(--border); }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 16px; flex-wrap: wrap;
}
.brand img { width: 300px; max-width: 65vw; }
.topbar__badge { width: 120px; }

.lang-switch {
  display: flex; align-items: center; gap: 6px; font-size: .82rem;
  font-weight: 600; color: var(--text-soft); flex-shrink: 0;
}
.lang-switch__link { color: var(--text-soft); padding: 2px 2px; }
.lang-switch__link.is-current { color: var(--blue-600); text-decoration: underline; }
.lang-switch__link:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.mainnav { background: linear-gradient(180deg, var(--blue-600), var(--blue-700)); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.mainnav__inner { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.mainnav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 16px 20px; margin-left: auto; order: 1;
  flex-direction: column; gap: 5px; align-items: flex-end;
}
.mainnav__toggle span { width: 24px; height: 2px; background: #fff; display: block; }

.nav {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
}
.nav__item { position: relative; }
.nav__item > a {
  display: block; padding: 14px 13px; color: #eaf6ff; font-weight: 600;
  font-size: .82rem; letter-spacing: .01em; white-space: nowrap;
}
.nav__item > a:hover, .nav__item.is-active > a { background: rgba(255,255,255,.12); text-decoration: none; }
.nav__item.is-active > a { box-shadow: inset 0 -3px 0 var(--red); }

.nav__submenu {
  list-style: none; margin: 0; padding: 6px 0; display: none; position: absolute;
  left: 0; top: 100%; background: var(--white); min-width: 220px; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.nav__item--has-children:hover .nav__submenu,
.nav__item--has-children:focus-within .nav__submenu { display: block; }
.nav__submenu a { display: block; padding: 10px 18px; color: var(--text); font-weight: 500; }
.nav__submenu a:hover { background: var(--blue-100); text-decoration: none; }

/* ---------- Hero slider (home) ---------- */
.hero-slider { position: relative; overflow: hidden; background: #0b2636; }
.hero-slider__track { position: relative; }
.hero-slide {
  margin: 0; display: none; position: relative;
}
.hero-slide.is-active { display: block; }
.hero-slide img { width: 100%; aspect-ratio: 960 / 360; object-fit: cover; }
.hero-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,0));
  color: #fff; font-size: 1rem; font-weight: 600;
}
.hero-slider__dots {
  position: absolute; bottom: 10px; right: 16px; display: flex; gap: 8px;
}
.hero-slider__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff;
  background: rgba(255,255,255,.35); cursor: pointer; padding: 0;
}
.hero-slider__dots button[aria-selected="true"] { background: #fff; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--blue-100) 0%, var(--white) 60%);
  border-bottom: 3px solid var(--blue-600);
  color: var(--text);
  padding: 30px 0 26px;
}
.page-banner h1 { color: var(--blue-700); margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--text-soft); margin-bottom: 8px; }
.breadcrumb a { color: var(--blue-600); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section--alt { background: var(--white); }
.intro-text { max-width: 820px; }
.intro-text p { margin: 0 0 1em; }

.two-col { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; margin-bottom: 20px; }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); }

.bullet-list { padding-left: 1.2em; }
.bullet-list li { margin-bottom: .4em; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--plain { background: none; }

.card {
  display: block; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); color: inherit; transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card__body { padding: 16px 18px; }
.card__body h2 { margin: 0 0 .3em; font-size: 1.1rem; }
.card__body p { margin: 0 0 .6em; font-size: .92rem; color: var(--text-soft); }
.card__link { color: var(--blue-500); font-weight: 600; font-size: .88rem; }

.info-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.info-card h2 { margin-top: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 16px 0 8px; }
.spec-table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: .92rem; }
.spec-table thead th { background: var(--blue-600); color: #fff; font-weight: 600; }
.spec-table tbody th { background: var(--blue-100); font-weight: 600; white-space: nowrap; }
.spec-table tbody tr:last-child td, .spec-table tbody tr:last-child th { border-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }
.contact-role { color: var(--text-soft); font-weight: 600; margin-top: -.4em; }
.contact-notice { background: var(--blue-100); padding: 12px 16px; font-size: .9rem; border-radius: var(--radius); }
.contact-list { margin: 18px 0 0; }
.contact-list div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.contact-list dt { color: var(--text-soft); font-weight: 600; }
.contact-list dd { margin: 0; }
.map-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); color: inherit;
}
.map-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.map-card__cta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(0deg, rgba(4,32,48,.88), rgba(4,32,48,0));
  color: #fff; font-weight: 600; font-size: .92rem;
}
.map-card:hover .map-card__cta { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-700); color: #cfe6f3; padding: 22px 0; margin-top: 10px; }
.footer p { margin: 0; font-size: .85rem; text-align: center; }
.footer__credit { margin-top: 6px !important; font-size: .78rem !important; opacity: .8; }
.footer__credit a { color: #cfe6f3; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .mainnav__toggle { display: flex; }
  .nav {
    display: none; flex-direction: column; width: 100%; order: 2;
    background: var(--blue-700);
  }
  .nav.is-open { display: flex; }
  .nav__item > a { padding: 14px 20px; }
  .nav__submenu { position: static; box-shadow: none; border-top: 0; background: rgba(0,0,0,.12); display: none; }
  .nav__item--has-children.is-open .nav__submenu { display: block; }
  .nav__item--has-children:hover .nav__submenu { display: none; }
  .nav__item--has-children.is-open:hover .nav__submenu { display: block; }
  .nav__submenu a { color: #eaf6ff; padding-left: 34px; }
  .nav__submenu a:hover { background: rgba(255,255,255,.08); }

  .card-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .topbar__inner { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .section { padding: 28px 0; }
  .page-banner { padding: 26px 0 22px; }
  .topbar__badge { display: none; }
}
