:root {
  --primary: #e86f73;
  --primary-dark: #c9585d;

  --primary-soft: #f8d7d9;
  --primary-pale: #fff3f3;

  --secondary: #6faf7a;
  --secondary-dark: #548c5e;

  --accent: #f3cf70;

  --text: #242120;
  --muted: #746967;

  --light: #faf8f5;
  --white: #ffffff;
  --border: #eadfda;

  --shadow: 0 14px 34px rgba(91, 55, 54, 0.11);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(230, 41, 47, 0.12);
  box-shadow: 0 4px 20px rgba(37, 33, 31, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 78px;
  object-fit: contain;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: .5px;
}

.brand span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 3px;
  border-radius: 10px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.active {
  color: var(--primary);
}

.language {
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.active-language {
  color: #ffffff;
  background: var(--primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg,
      rgba(177, 189, 235, 0.78) 42%,
      rgba(199, 219, 255, 0.22) 100%),
    url("../img/barco.png") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 95px 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 17px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(230, 41, 47, 0.28);
}

.hero h1 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  line-height: 1.05;
}

.hero-text {
  max-width: 570px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 25px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 10px 25px rgba(230, 41, 47, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  color: var(--text);
  background: #ffffff;
  transform: translateY(-2px);
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 46px;
}

.section-heading span {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-heading h2,
.about-content h2 {
  margin: 10px 0 14px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  text-transform: uppercase;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 65px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 10px;
  background:
    linear-gradient(90deg,
      var(--primary) 0 42%,
      var(--accent) 42% 65%,
      var(--secondary) 65% 100%);
}

.section-heading p,
.about-content p {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px rgba(87, 35, 32, 0.16);
}

.product-body h3 {
  margin-bottom: 10px;
  color: var(--primary);
  text-transform: uppercase;
}

.product-image {
  height: 230px;
  background-size: cover;
  background-position: center;
}

.tuna {
  background: linear-gradient(135deg, #e0c39c, #8e6c45);
}

.sardine {
  background: linear-gradient(135deg, #a7bdc7, #536a77);
}

.traditional {
  background: linear-gradient(135deg, #efca83, #c18135);
}

.product-body {
  padding: 26px;
  text-align: center;
}

.product-body h3 {
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-body p {
  color: var(--muted);
  min-height: 78px;
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.card-link:hover {
  background: var(--secondary);
}

.about {
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.about-image {
  min-height: 430px;
  border-radius: 16px;
  background: linear-gradient(145deg, #b9dbe8, #0b5c8c);
  box-shadow: var(--shadow);
}

.about-content p {
  margin-top: 16px;
}

.benefits {
  padding: 70px 0;
  color: var(--text);

  background:
    linear-gradient(135deg,
      #f8d7d9 0%,
      #f4bfc2 50%,
      #efaaae 100%);
}

.benefits h2 {
  margin-bottom: 40px;
  color: var(--text);
  text-align: center;
  text-transform: uppercase;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.benefit-grid article {
  padding: 22px 28px;
  text-align: center;
  border-right: 1px solid rgba(90, 55, 54, 0.18);
}

.benefit-grid article:last-child {
  border-right: 0;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;

  color: #292321;
  font-size: 27px;

  background: var(--accent);
  box-shadow: 0 8px 18px rgba(90, 55, 54, 0.1);
}

.benefit-grid h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.benefit-grid p {
  color: #6b5b59;
  font-size: 0.82rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.values-grid article {
  text-align: center;
  padding: 18px 26px;
  border-right: 1px solid rgb(2, 2, 2);
}

.values-grid article:last-child {
  border-right: 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: center;
}

.cert-grid div {
  min-height: 110px;
  border: 1px solid #dce7ef;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(7, 44, 82, .07);
}

.footer {
  position: relative;
  color: #ffffff;
  background: #faf9f7;
}

.footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 5px;

  background:
    linear-gradient(90deg,
      var(--primary) 0 40%,
      var(--accent) 40% 60%,
      var(--secondary) 60% 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr 1.2fr;
  gap: 34px;
  padding: 54px 0;
}

.footer h3,
.footer h4 {
  color: #000;
}

.footer h4 {
  position: relative;
  padding-bottom: 8px;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background: var(--primary);
}

.footer p,
.footer a {
  display: block;
  margin-bottom: 5px;
  color: rgba(0, 0, 0, 0.76);
  font-size: 14px;
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: white;
  font-size: 28px;
  box-shadow: var(--shadow);
  z-index: 900;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: white;
    padding: 22px 4%;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  }

  .nav.open {
    display: flex;
  }

  .product-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .benefit-grid article {
    border-right: 0;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border: 65px solid rgba(255, 213, 31, 0.12);
    border-radius: 50%;
  }
}

/* =========================
   LOGO DEL ENCABEZADO
========================= */

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 68px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .navbar {
    min-height: 78px;
  }

  .brand-logo {
    height: 62px;
    max-width: 210px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 65px 0;
  }

  .hero {
    min-height: 520px;
    background-position: center;
  }

  .hero-content {
    padding: 70px 0;
  }

  .hero h1 br {
    display: none;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .cert-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 200px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid article {
    padding: 22px 10px;
    border-bottom: 1px solid rgba(90, 55, 54, 0.14);
  }

  .benefit-grid article:last-child {
    border-bottom: 0;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  z-index: 1101;
}

.menu-toggle span {
  display: block;
  width: 27px;
  height: 3px;
  border-radius: 10px;
  background: var(--text);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background 0.3s ease;
}

.menu-toggle:hover span {
  background: var(--primary);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .navbar {
    position: relative;
    min-height: 76px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    max-height: 0;
    padding: 0 5%;
    overflow: hidden;

    background: #ffffff;
    border-top: 1px solid #eeeeee;
    box-shadow: 0 15px 30px rgba(37, 33, 31, 0.12);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);

    transition:
      max-height 0.35s ease,
      padding 0.35s ease,
      opacity 0.25s ease,
      transform 0.35s ease,
      visibility 0.35s ease;
  }

  .nav.open {
    max-height: 500px;
    padding: 18px 5% 24px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.95rem;
  }

  .nav a::after {
    display: none;
  }

  .nav a.active {
    color: var(--primary);
  }

  .language {
    width: 100%;
    margin-top: 10px;
    text-align: left;
  }

  .active-language {
    width: auto;
    align-self: flex-start;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* ======================================
   MENÚ DESPLEGABLE PRODUCTOS
====================================== */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-link {
  position: relative;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.nav-dropdown-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 3px;
  border-radius: 10px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-link {
  color: var(--primary);
}

.nav-dropdown:hover .nav-dropdown-link::after {
  width: 100%;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 245px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(40, 30, 27, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: 0.25s ease;
  z-index: 1200;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--primary);
  background: var(--primary-pale);
}

/* Responsive móvil */

@media (max-width: 900px) {
  .nav-dropdown {
    width: 100%;
    display: block;
  }

  .nav-dropdown-link {
    display: block;
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.95rem;
  }

  .nav-dropdown-link::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    padding: 8px 0 8px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-menu a {
    padding: 11px 12px;
    font-size: 0.9rem;
    background: #faf8f5;
    margin-bottom: 6px;
  }
}