@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
  --azul-profundo: #0d2f55;
  --azul-oscuro: #123e70;
  --azul: #1f5fa8;
  --azul-medio: #2f72bf;
  --azul-claro: #8bbcf2;
  --azul-suave: #d8e9fb;

  --yema: #e5a51f;
  --yema-suave: #ffd476;
  --rojo: #c71920;

  --crema: #fbf4e7;
  --crema-2: #fffaf0;
  --madera: #7b5a3a;
  --texto: #172235;
  --blanco: #ffffff;

  --sombra: 0 18px 45px rgba(19, 62, 112, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--texto);
  background: var(--crema-2);
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1180px, calc(100% - 42px));
  margin: 0 auto;
}

/* HEADER */
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 24px 0;
  color: #ffffff;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  width: 156px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .22));
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
  text-shadow: 0 2px 8px rgba(0,0,0,.36);
}

.nav a {
  transition: color .24s ease;
}

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

.nav-cta {
  padding: 14px 23px;
  border-radius: 999px;
  color: #1a2540;
  background: var(--yema);
  text-shadow: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.nav-cta:hover {
  color: #1a2540 !important;
  background: var(--yema-suave);
}

.menu-toggle {
  display: none;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  font-size: 30px;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #ffffff;
  background: #0b2b4e;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../imagenes/hero-granja-aerea.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 24, 48, .62) 0%, rgba(16, 58, 104, .38) 44%, rgba(16, 58, 104, .08) 72%),
    linear-gradient(0deg, rgba(7, 24, 48, .22), rgba(7, 24, 48, .04));
}

.hero-wave {
  position: absolute;
  left: -4%;
  bottom: -52px;
  z-index: 3;
  width: 108%;
  height: 104px;
  background: var(--crema-2);
  border-top: 6px solid var(--azul-medio);
  transform: rotate(-2.2deg);
}

.hero-grid {
  position: relative;
  z-index: 4;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: end;
  gap: 42px;
  padding-top: 128px;
  padding-bottom: 82px;
}

.hero-copy {
  max-width: 670px;
}

.hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(58px, 7vw, 105px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -2px;
  text-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.hero h1 span {
  display: block;
  color: var(--azul-claro);
  font-style: italic;
}

.hero .lead {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 4px 14px rgba(0,0,0,.34);
}

.hero p {
  max-width: 555px;
  margin: 0 0 26px;
  font-size: 17px;
  font-weight: 500;
  text-shadow: 0 3px 12px rgba(0,0,0,.34);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  transition: transform .24s ease, background-color .24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-blue {
  color: #fff;
  background: var(--azul);
}

.btn-cream {
  color: var(--azul-oscuro);
  background: #fffaf0;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 58, 104, .88), rgba(31, 95, 168, .72));
  box-shadow: var(--sombra);
  backdrop-filter: blur(5px);
}

.hero-benefits div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px 16px;
  border-right: 1px solid rgba(255,255,255,.20);
}

.hero-benefits div:last-child {
  border-right: 0;
}

.hero-benefits i {
  font-style: normal;
  color: var(--azul-claro);
  font-size: 32px;
}

.hero-benefits b {
  color: #fff;
  font-size: 13px;
  line-height: 1.18;
}

.hero-visual {
  min-height: 430px;
  background: url("../imagenes/productos-mesa.jpg") center bottom / contain no-repeat;
  filter: drop-shadow(0 25px 40px rgba(0,0,0,.32));
}

/* SECCIONES */
.section {
  padding: 82px 0;
  scroll-margin-top: 92px;
}

.title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  text-align: center;
  margin-bottom: 8px;
}

.title-row::before,
.title-row::after {
  content: "";
  width: 70px;
  height: 2px;
  background: var(--azul);
}

.title-row h2 {
  margin: 0;
  color: var(--azul-profundo);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.subtitle {
  margin: 0 0 34px;
  color: #485569;
  text-align: center;
  font-weight: 500;
}

/* PRODUCTOS */
.products {
  overflow: hidden;
  background: linear-gradient(180deg, var(--crema-2), #f4ecd9);
}

.product-wrap {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 34px auto 0;
  padding: 0 54px;
  box-sizing: border-box;
}

.product-slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.product-track {
  --product-gap: 20px;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: var(--product-gap) !important;
  width: 100% !important;
  min-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px 0 26px !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  transform: none !important;
  translate: none !important;
  transition: none !important;
}

.product-card {
  display: flex !important;
  flex: 0 0 calc((100% - (var(--product-gap) * 3)) / 4) !important;
  flex-direction: column !important;
  align-items: center !important;
  width: calc((100% - (var(--product-gap) * 3)) / 4) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 20px 16px 22px !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(22, 74, 126, 0.13);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(19, 62, 112, 0.10);
}

.product-card img {
  display: block !important;
  width: 100% !important;
  height: 175px !important;
  min-height: 0 !important;
  margin: 0 auto 16px !important;
  object-fit: contain !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.product-card h3 {
  margin: 0 0 10px !important;
  color: #15243a;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  line-height: 1.04;
}

.product-card strong {
  display: block !important;
  margin: 0 0 10px !important;
  color: var(--rojo);
  font-size: 14px;
  line-height: 1.18;
  font-weight: 900;
}

.product-card strong.blue,
.product-card strong.green {
  color: var(--azul);
}

.product-card p {
  margin: 4px 0 0 !important;
  color: #566071;
  font-size: 13px;
}

.slider-btn {
  position: absolute !important;
  top: 50% !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  color: #ffffff !important;
  background: var(--azul) !important;
  border: 0 !important;
  border-radius: 50% !important;
  font-size: 30px !important;
  line-height: 1 !important;
  cursor: pointer;
  transform: translateY(-50%) !important;
  box-shadow: 0 9px 22px rgba(19, 62, 112, .22);
}

.slider-btn.prev {
  left: 2px !important;
}

.slider-btn.next {
  right: 2px !important;
}

.slider-btn:hover,
.slider-btn:focus-visible {
  background: var(--yema) !important;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8cbb7;
}

.dots span.active {
  background: var(--azul);
}

/* FRESCURA + MERCADOS */
.fresh-section {
  background: #fffdf7;
  padding: 0;
  scroll-margin-top: 92px;
}

.fresh-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr .95fr;
  align-items: stretch;
  max-width: 1400px;
  margin: auto;
}

.fresh-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fresh-copy {
  padding: 56px 50px;
  background: #fff;
}

.kicker {
  display: block;
  color: var(--yema);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}

.fresh-copy h2 {
  margin: 0 0 18px;
  color: #15243a;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 44px;
  line-height: 1.05;
}

.fresh-copy h2 span {
  color: var(--azul);
}

.fresh-copy p {
  margin: 0 0 30px;
  color: #293243;
  font-weight: 500;
}

.quality-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quality-icons div {
  color: #1e2b3f;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.quality-icons i {
  display: block;
  margin-bottom: 6px;
  color: var(--azul);
  font-style: normal;
  font-size: 26px;
}

.markets {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 34px;
  text-align: center;
  background: #f2e8d5;
}

.markets h3 {
  margin: 0 auto 30px;
  max-width: 520px;
  color: var(--azul-profundo);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  line-height: 1.16;
}

.market-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 17px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.market-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 160px;
  min-height: 76px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid rgba(19, 62, 112, 0.08);
  border-radius: 24px;
  box-shadow: 0 9px 24px rgba(77, 53, 26, .10);
}

.market-logo img {
  width: auto;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
}

.market-logo--rectangular img {
  max-height: 40px;
}

/* PROCESO */
.process {
  background: linear-gradient(180deg, #fbf5e8, #f7f1e4);
  scroll-margin-top: 92px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.process-card {
  position: relative;
  text-align: center;
}

.process-card .num {
  position: absolute;
  top: -16px;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--azul);
  border: 3px solid #fff;
  border-radius: 50%;
  font-weight: 900;
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.process-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.75);
  border-radius: 16px;
  box-shadow: var(--sombra);
}

.process-card h3 {
  margin: 18px 0 10px;
  color: var(--azul-profundo);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
}

.process-card p {
  margin: 0;
  color: #404a58;
  font-size: 13px;
}

.process-card::after {
  content: "›";
  position: absolute;
  right: -16px;
  top: 52px;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--azul);
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 28px;
  line-height: 25px;
}

.process-card:last-child::after {
  display: none;
}

/* EMPRESA */
.company {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  overflow: hidden;
  background: #fffaf0;
}

.company-photo img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 0 170px 170px 0;
}

.company-copy {
  position: relative;
  padding: 64px clamp(28px,5vw,70px);
}

.company-copy h2 {
  margin: 0 0 18px;
  color: #15243a;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  line-height: 1.1;
}

.company-copy h2 span {
  color: var(--azul);
}

.company-copy p {
  max-width: 560px;
  margin-bottom: 30px;
  color: #3d4656;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.numbers div {
  padding: 0 8px;
  text-align: center;
  border-left: 1px solid #e2d7c2;
}

.numbers i {
  display: block;
  margin-bottom: 8px;
  color: var(--azul);
  font-style: normal;
  font-size: 30px;
}

.numbers b {
  display: block;
  color: var(--azul-profundo);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.1;
}

.numbers span {
  color: #4c5565;
  font-size: 12px;
}

.company-copy::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: 190px;
  height: 190px;
  background: url('../imagenes/productos-mesa.jpg') center/cover no-repeat;
  border-radius: 45% 0 0 0;
  opacity: .9;
}

/* CONTACTO */
.contact {
  padding: 68px 0 0;
  background: #f2ead8;
  scroll-margin-top: 92px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.25fr;
  gap: 58px;
  align-items: start;
}

.contact h2 {
  margin: 0 0 16px;
  color: #15243a;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  line-height: 1.12;
}

.contact p {
  margin: 0 0 28px;
  color: #3d4656;
}

.contact-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.contact-icons div {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.contact-icons i {
  display: block;
  margin-bottom: 6px;
  color: var(--azul);
  font-style: normal;
  font-size: 25px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 15px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #d4dcea;
}

.form textarea {
  grid-column: 1/-1;
  min-height: 120px;
  resize: vertical;
}

.form button {
  grid-column: 1/-1;
  padding: 17px 18px;
  color: #fff;
  background: var(--azul);
  border: 0;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  transition: .25s;
}

.form button:hover {
  background: var(--azul-medio);
}

.footer {
  margin-top: 60px;
  padding: 25px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--azul-profundo), var(--azul));
}

.footer-grid {
  display: grid;
  grid-template-columns: 135px 1fr 1fr 1fr auto;
  gap: 26px;
  align-items: center;
}

.footer img {
  width: 118px;
}

.footer .claim {
  margin: 0;
  color: var(--azul-claro);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 24px;
}

.footer p,
.footer small {
  margin: 0;
  font-size: 13px;
}

.footer-links span {
  display: block;
  margin: 3px 0;
  font-size: 13px;
}

.social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.16);
  border-radius: 50%;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
  .nav {
    gap: 15px;
    font-size: 11px;
  }

  .logo {
    width: 125px;
  }

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

  .hero-visual {
    display: none;
  }

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

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

  .fresh-img img {
    height: 330px;
  }

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

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

  .company-photo img {
    height: 360px;
    border-radius: 0;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .footer img {
    width: 110px;
  }

  .product-card {
    flex-basis: calc((100% - var(--product-gap)) / 2) !important;
    width: calc((100% - var(--product-gap)) / 2) !important;
  }

  .product-card img {
    height: 165px !important;
  }
}

@media (max-width: 760px) {
  .header {
    position: fixed;
    padding: 10px 0;
    background: linear-gradient(90deg, rgba(13,47,85,.98), rgba(31,95,168,.94));
    backdrop-filter: blur(8px);
  }

  .header .container {
    width: calc(100% - 24px);
  }

  .logo {
    width: 92px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 0;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
    padding: 20px;
    background: var(--azul-profundo);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 13px;
  }

  .nav-cta {
    padding: 12px 18px;
  }

  .hero {
    min-height: 720px;
  }

  .hero::before {
    background-position: 58% center;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(9,31,57,.55), rgba(9,31,57,.30) 66%, rgba(9,31,57,.62)),
      linear-gradient(90deg, rgba(9,31,57,.50), rgba(24,84,150,.16));
  }

  .hero-grid {
    min-height: 720px;
    align-items: end;
    padding-top: 105px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero .lead {
    font-size: 18px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-actions {
    margin-bottom: 24px;
  }

  .hero-benefits {
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
  }

  .hero-benefits div {
    padding: 14px 10px;
  }

  .hero-benefits b {
    font-size: 12px;
  }

  .section {
    padding: 54px 0;
  }

  .title-row {
    gap: 12px;
  }

  .title-row::before,
  .title-row::after {
    width: 32px;
  }

  .title-row h2 {
    font-size: 36px;
  }

  .product-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 26px auto 0 !important;
    padding: 0 46px !important;
  }

  .product-slider-viewport {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .product-track {
    --product-gap: 14px;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 18px !important;
  }

  .product-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 18px 14px 22px !important;
    border-radius: 18px !important;
  }

  .product-card img {
    width: 100% !important;
    height: 210px !important;
    margin-bottom: 14px !important;
  }

  .slider-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 27px !important;
  }

  .slider-btn.prev {
    left: 2px !important;
  }

  .slider-btn.next {
    right: 2px !important;
  }

  .fresh-copy,
  .markets {
    padding: 38px 24px;
  }

  .fresh-copy h2 {
    font-size: 33px;
  }

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

  .market-logos {
    grid-template-columns: repeat(2, minmax(105px, 1fr));
  }

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

  .process-card::after {
    display: none;
  }

  .company-copy {
    padding: 42px 22px;
  }

  .company-copy h2 {
    font-size: 32px;
  }

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

  .contact {
    padding-top: 48px;
  }

  .contact h2 {
    font-size: 31px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer img {
    margin: auto;
  }

  .social {
    justify-content: center;
  }

  .container {
    width: calc(100% - 24px);
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 47px;
  }

  .btn {
    width: 100%;
    padding: 14px 18px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .fresh-img img {
    height: 275px;
  }

  .market-logo {
    min-height: 66px;
    padding: 10px 12px;
  }

  .company-photo img {
    height: 280px;
  }
}
