/* ============ FUENTES ============ */
@font-face {
  font-family: 'Clash Display';
  src: url('/assets/fonts/ClashDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('/assets/fonts/ClashDisplay-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('/assets/fonts/ClashDisplay-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('/assets/fonts/BebasNeue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ============ VARIABLES ============ */
:root {
  --dark: #0c0c0d;
  --cream: #f6f0e7;
  --cream-soft: #faf6f0;
  --gray: #747474;
  --green: #edffe3;
  --light: #fafafa;
  --white: #ffffff;
  --radius: 28px;
  --radius-sm: 16px;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Clash Display', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}
h1 { font-size: clamp(56px, 8vw, 96px); }
h2 { font-size: clamp(40px, 5vw, 60px); }
h3 { font-size: clamp(32px, 4vw, 48px); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-light { background: var(--light); }

/* ============ ANIMACIONES (estilo Framer) ============ */
.rv {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.rv.in { opacity: 1; transform: none; }
.rv-left { transform: translateX(-28px); }
.rv-right { transform: translateX(28px); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ============ CABECERAS DE SECCIÓN ============ */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin: 18px 0 14px; }
.section-sub { color: var(--gray); font-size: 18px; font-weight: 400; }

.section-head-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.section-head-split > div { max-width: 720px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
}
.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark);
}
.tag-onDark { background: rgba(246, 240, 231, 0.12); color: var(--cream); }
.tag-dot-cream { background: var(--cream); }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.35s var(--ease);
}
.btn:hover { transform: scale(1.04); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--dark); }
.btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.btn-circle svg { transition: transform 0.35s var(--ease); }
.btn:hover .btn-circle svg { transform: translateX(3px); }
.btn-circle-dark { background: var(--dark); color: var(--white); }
.btn-ghost {
  background: none;
  color: var(--dark);
  padding-left: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(12, 12, 13, 0.08);
}
.navbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > a,
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.2s;
}
.nav-links > a:hover,
.nav-drop-btn:hover,
.nav-drop.open .nav-drop-btn {
  background: var(--cream);
}
.nav-drop { position: relative; }
.nav-drop-btn svg {
  transition: transform 0.3s var(--ease);
}
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 340px;
  background: var(--white);
  border: 1px solid rgba(12, 12, 13, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(12, 12, 13, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav-drop.open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.2s;
}
.nav-item:hover { background: var(--cream-soft); }
.nav-item-icon {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}
.nav-item-text { display: flex; flex-direction: column; }
.nav-item-text strong { font-size: 15px; font-weight: 600; }
.nav-item-text small { font-size: 13px; color: var(--gray); }
/* Selector de idioma (en el footer) */
.lang-picker {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(12, 12, 13, 0.12);
  border-radius: 999px;
}
.lang-picker a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-picker a:hover { color: var(--dark); background: var(--cream); }
.lang-picker a[aria-current="true"] { background: var(--dark); color: var(--white); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: calc(100vh - 79px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* El vídeo se encuadra desde arriba y sobresale por abajo: así la franja
   inferior (marca de la herramienta de edición) queda fuera del hero. */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center top;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  width: 100%;
  /* algo más ancho que el resto de secciones: el texto arranca más a la izquierda */
  max-width: 1460px;
}
.hero-content h1 { margin-bottom: 24px; }
.hero-content p {
  max-width: 340px;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 28px;
}

/* ============ MODELOS ============ */
.model-cards { display: grid; gap: 24px; }
.model-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 48px;
}
.model-card-cream { background: var(--cream); }
.model-card-dark { background: var(--dark); color: var(--white); }
.model-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}
.model-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.model-card-text h3 { font-size: 48px; }
.model-card-text > p { max-width: 460px; font-size: 18px; color: var(--gray); }
.model-card-dark .model-card-text > p { color: rgba(255,255,255,0.65); }
.model-actions { display: flex; align-items: center; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.model-link {
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.model-link:hover { opacity: 1; }
.model-card-img {
  border-radius: 20px;
  overflow: hidden;
  height: 600px;
}
.model-card-dark .model-card-img { order: -1; }
.model-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.model-card:hover .model-card-img img { transform: scale(1.04); }

/* ============ CONCEPTO ============ */
.concept-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
}
.concept-img img {
  max-height: 560px;
  object-fit: contain;
  margin: 0 auto;
}
.concept-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.concept-stats:first-child { text-align: right; align-items: flex-end; }
.stat { display: flex; flex-direction: column; gap: 4px; max-width: 220px; }
.stat-num {
  font-family: var(--font-head);
  font-size: 64px;
  line-height: 1;
}
.stat-label { color: var(--gray); font-size: 15px; }

/* ============ PROCESO (3 pasos) ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 32px 28px;
  transition: transform 0.5s var(--ease);
}
.step-card:hover { transform: translateY(-4px); }
.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.step-icon { display: inline-flex; }
.step-icon svg, .step-icon img { display: block; width: 64px; height: 64px; object-fit: contain; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.step-num {
  font-family: var(--font-head);
  font-size: 64px;
  line-height: 1;
  display: block;
  opacity: 0.16;
}
.step-card h4 { font-size: 22px; font-weight: 500; margin: 14px 0 8px; }
.step-card p { color: var(--gray); font-size: 16px; }
.steps-note {
  margin-top: 24px;
  color: var(--gray);
  font-size: 15px;
}
@media (max-width: 960px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ============ FRUTA CONGELADA ============ */
.fruit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.fruit-grid h2 { margin: 18px 0 12px; }
.fruit-collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}
.fruit-collage:has(.fruit-photo + .fruit-photo) { grid-template-columns: 1fr 1fr; }
.fruit-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}
.fruit-list {
  list-style: none;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fruit-list li {
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  color: #3a3a3a;
}
.fruit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5-6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.fruit-list strong { font-weight: 600; color: var(--dark); }

/* ============ SABORES ============ */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.flavor-card { position: relative; }
.flavor-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 340px;
}
.flavor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.flavor-card:hover .flavor-img img { transform: scale(1.05); }
.flavor-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
}
.flavor-overlay h4 { font-size: 22px; font-weight: 500; margin-bottom: 2px; }
.flavor-overlay p { font-size: 14px; opacity: 0.9; }

/* ============ CLIENTES (mosaico) ============ */
.client-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.client-card {
  position: relative;
  grid-column: span 2;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.client-card-wide { grid-column: span 3; height: 360px; }
.client-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(12,12,13,0.14); }
.client-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 18s ease-in-out infinite alternate;
}
/* fotos verticales: encuadrar por la parte alta para no cortar caras */
.client-photo-top { object-position: center 22%; }
.client-card:nth-child(2n) .client-photo { animation-delay: -9s; }
.client-card:nth-child(3n) .client-photo { animation-delay: -14s; }
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
@media (prefers-reduced-motion: reduce) {
  .client-photo { animation: none; }
}
.client-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.62) 100%);
  pointer-events: none;
}
.client-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  transition: transform 0.5s var(--ease);
}
.client-card:hover .client-caption { transform: translateY(-4px); }
.client-logo {
  height: 32px;
  width: auto;
  max-width: 60%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.client-logo-original {
  filter: drop-shadow(0 1px 4px rgba(255,255,255,0.85));
}
.client-desc {
  margin-top: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  font-weight: 500;
}

/* ============ BENEFICIOS (bento grid) ============ */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(330px, 1fr));
  gap: 20px;
}
.benefit-card {
  border-radius: var(--radius-sm);
  background: var(--cream);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease);
}
.benefit-card:hover { transform: translateY(-4px); }
.benefit-card h4 { font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.benefit-card p { color: var(--gray); font-size: 17px; }
.benefit-card-tall {
  grid-column: 1;
  grid-row: 1 / 3;
  padding-bottom: 0;
}
.benefit-card-tall h4 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 12px;
}
.benefit-card-tall .benefit-img {
  margin: 24px -24px 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  flex: 1;
  min-height: 260px;
}
.benefit-card-tall .benefit-img img { width: 100%; height: 100%; object-fit: cover; }
.benefit-icon {
  height: 160px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-icon img { max-height: 100%; max-width: 160px; object-fit: contain; }
.benefit-card:not(.benefit-card-tall) h4 { margin-top: auto; }

/* ============ COMUNIDAD ============ */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.community-card {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s var(--ease);
}
.community-card:hover { transform: translateY(-5px); }
.community-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
.community-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 18px;
  color: var(--white);
  font-size: 14.5px;
  font-weight: 500;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}
.community-grid.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.community-grid.gallery-4 .community-card img { height: 400px; }
@media (max-width: 1080px) {
  .community-grid.gallery-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .community-grid { grid-template-columns: 1fr; }
  .community-card img { height: 340px; }
}
@media (max-width: 620px) {
  .community-grid.gallery-4 { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq-container { max-width: 900px; }
.faq-list { border-top: 1px solid rgba(12,12,13,0.08); }
.faq-item { border-bottom: 1px solid rgba(12,12,13,0.08); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  text-align: left;
}
.faq-icon {
  position: relative;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--white);
  transform: translate(-50%, -50%);
  transition: transform 0.25s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-answer p {
  padding: 0 60px 24px 0;
  color: var(--gray);
  font-size: 16px;
}

/* ============ CONTACTO ============ */
.contact-section {
  background: var(--dark);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-left h2 { margin: 18px 0 32px; }
.contact-img {
  border-radius: 20px;
  overflow: hidden;
}
.contact-img img { width: 100%; height: 380px; object-fit: cover; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form select:invalid { color: rgba(255,255,255,0.5); }
.contact-form select option { color: var(--dark); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: rgba(255,255,255,0.5); }
.contact-form textarea { resize: vertical; }
.btn-submit { align-self: flex-start; margin-top: 8px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--white);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--gray); margin-top: 10px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.footer-col a { color: var(--gray); font-size: 15px; transition: color 0.2s; }
.footer-col a:hover { color: var(--dark); }
.footer-bottom {
  border-top: 1px solid rgba(12,12,13,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray);
  font-size: 14px;
}
.footer-bottom a:hover { color: var(--dark); }

/* ============ PÁGINAS INTERIORES ============ */
.page-hero {
  padding: 72px 0 48px;
}
.page-hero h1 { font-size: clamp(48px, 6vw, 80px); margin-top: 18px; }
.page-hero .section-sub { max-width: 640px; margin-top: 14px; }

/* --- Página de máquina --- */
.machine-top {
  padding: 56px 0 96px;
}
.machine-top-cream { background: var(--cream); }
.machine-top-dark { background: var(--dark); color: var(--white); }
.machine-top-cream .tag { background: var(--white); }
.machine-top .breadcrumbs { margin-bottom: 28px; }
.machine-top-dark .breadcrumbs { color: rgba(255,255,255,0.55); }

/* Hero a dos columnas: texto a la izquierda, foto vertical a la derecha */
.machine-hero {
  display: grid;
  /* minmax(0,…) evita que el titular grande empuje la columna de texto */
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
  gap: 64px;
  align-items: center;
}
.machine-hero h1 {
  font-size: clamp(54px, 6vw, 92px);
  margin: 18px 0 16px;
}
.machine-hero p {
  font-size: 19px;
  max-width: 520px;
}
.machine-top-cream p { color: var(--gray); }
.machine-top-dark p { color: rgba(255,255,255,0.65); }
.machine-hero .btn { margin-top: 26px; }
.machine-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.machine-chip {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(12,12,13,0.06);
}
.machine-top-dark .machine-chip { background: rgba(255,255,255,0.1); }
.machine-hero-photo {
  max-width: 460px;
  margin-left: auto;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 60px rgba(12,12,13,0.16);
}
.machine-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 24s ease-in-out infinite alternate;
}


/* --- Información nutricional --- */
.nutri-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.nutri-tab {
  border: 1px solid rgba(12,12,13,0.12);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nutri-tab:hover { border-color: var(--dark); }
.nutri-tab.active { background: var(--cream); border-color: var(--cream); }
.nutri-panel { display: none; max-width: 720px; }
.nutri-panel.active { display: block; animation: nutriIn 0.5s var(--ease); }
@keyframes nutriIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.nutri-ingredients {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 32px;
}
.nutri-ingredients h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  margin-bottom: 6px;
}
.nutri-ingredients p { color: var(--gray); font-size: 16px; }
.nutri-table { width: 100%; border-collapse: collapse; }
.nutri-table th, .nutri-table td {
  padding: 14px 8px;
  border-bottom: 1px solid rgba(12,12,13,0.08);
  font-size: 15px;
  text-align: right;
}
.nutri-table th:first-child, .nutri-table td:first-child { text-align: left; }
.nutri-table th { font-weight: 600; }
.nutri-table .sub td:first-child { padding-left: 24px; color: var(--gray); }
.nutri-table td:first-child { font-weight: 500; }
.nutri-note { color: var(--gray); font-size: 14px; margin-top: 20px; }

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-soft);
  border: 1px solid rgba(12,12,13,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(12,12,13,0.08); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-meta { color: var(--gray); font-size: 13px; }
.blog-card h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  text-transform: none;
  line-height: 1.3;
}
.blog-card p { color: var(--gray); font-size: 15px; flex: 1; }
.blog-card .blog-read { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-meta { color: var(--gray); font-size: 14px; margin-top: 16px; }
.article h1 { font-size: clamp(40px, 5vw, 64px); margin-top: 16px; }
.article-body { margin-top: 40px; }
.article-body h2 {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 600;
  text-transform: none;
  line-height: 1.25;
  margin: 40px 0 14px;
}
.article-body p { font-size: 17px; color: #3a3a3a; margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; font-size: 17px; color: #3a3a3a; }
.article-body li { margin-bottom: 8px; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { font-weight: 600; }
.article-hero-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 36px;
  height: 380px;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-summary {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin: 36px 0 8px;
}
.article-summary h2 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  margin: 0 0 10px !important;
}
.article-summary ul { margin: 0 0 0 20px; }
.article-summary li { margin-bottom: 6px; font-size: 16px; color: #3a3a3a; }
.article-toc {
  background: var(--light);
  border: 1px solid rgba(12,12,13,0.06);
  border-radius: var(--radius-sm);
  padding: 20px 26px;
  margin: 28px 0 8px;
}
.article-toc strong { display: block; margin-bottom: 10px; font-size: 15px; }
.article-toc ol { margin: 0 0 0 20px; }
.article-toc li { margin-bottom: 5px; font-size: 15px; }
.article-toc a { color: var(--gray); text-decoration: underline; text-underline-offset: 3px; }
.article-toc a:hover { color: var(--dark); }
.article-related {
  border-top: 1px solid rgba(12,12,13,0.08);
  margin-top: 48px;
  padding-top: 28px;
}
.article-related h2 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  text-transform: none;
  margin-bottom: 14px;
}
.article-related ul { margin: 0 0 0 20px; }
.article-related li { margin-bottom: 8px; font-size: 16px; }
.article-cta {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 28px;
  margin: 40px 0;
}
.article-cta h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  text-transform: none;
  margin-bottom: 8px;
}
.article-cta p { margin-bottom: 16px; }
.breadcrumbs { color: var(--gray); font-size: 14px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 20px 24px 40px;
  }
  .nav-links.open > a { padding: 12px 10px; font-size: 17px; }
  .nav-links.open .nav-drop-btn {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    padding: 14px 10px 6px;
  }
  .nav-links.open .nav-drop-btn svg { display: none; }
  .nav-links.open .nav-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }
}

@media (max-width: 960px) {
  .model-card { grid-template-columns: 1fr; min-height: 0; padding: 28px; gap: 28px; }
  .model-card-img { order: -1; height: 320px; }
  .concept-wrapper { grid-template-columns: 1fr; text-align: center; }
  .concept-stats, .concept-stats:first-child { align-items: center; text-align: center; }
  .fruit-grid { grid-template-columns: 1fr; gap: 36px; }
  .flavor-grid { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .client-card, .client-card-wide { grid-column: span 1; height: 280px; }
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .benefit-card-tall {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .benefit-card-tall .benefit-img { min-height: 0; height: 280px; flex: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .machine-hero { grid-template-columns: 1fr; gap: 40px; }
  .machine-hero-photo { max-width: 460px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .flavor-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
}
