/* ===== InterFoodCo — One Page Site ===== */

:root {
  --navy-900: #00193a;
  --navy-800: #0b1f3f;
  --navy-700: #14315e;
  --navy-600: #1c4380;
  --gold-300: #f6e58d;
  --gold-400: #e6c667;
  --gold-500: #d9b44a;
  --gold-600: #a9761f;
  --cream: #faf6ee;
  --white: #ffffff;
  --ink: #21242b;
  --muted: #6b7280;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 63, 0.12);
  --shadow-sm: 0 4px 14px rgba(11, 31, 63, 0.08);
  --maxw: 1180px;
  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

/* El header es sticky y mide ~99px: sin esto, al llegar a una sección desde el
   menú el título queda por debajo del header. Se aplica a todas las secciones
   con ancla para que el comportamiento sea el mismo en todas. */
section[id] { scroll-margin-top: 110px; }
@media (max-width: 899px) { section[id] { scroll-margin-top: 92px; } }
#inicio { scroll-margin-top: 0; } /* el hero ocupa la pantalla entera */

/* Las animaciones de entrada (.reveal-right) desplazan elementos 70px a la derecha ANTES
   de dispararse y eso agrandaba el documento: 46px de scroll horizontal y una franja
   vacía al costado en cualquier ancho menor a 1280px.
   Va en <html> porque Chromium no propaga al viewport el overflow-x del <body>.
   Es `clip` y no `hidden` a propósito: `clip` recorta sin crear un contenedor de scroll,
   así que no rompe el header fijo, ni position: sticky, ni el scroll vertical suave. */
html, body { overflow-x: clip; }

body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 700; line-height: 1.2; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--navy-800); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

section { padding: 88px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--ff-sans);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  color: var(--navy-900);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 180, 74, 0.4); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy-900);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.25); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* El logo no se achica nunca: sin flex-shrink: 0 el navegador lo comprimía
   hasta un 37% en tabletas (768-899px) y deformaba la marca. */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 75px; width: auto; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; color: var(--gold-400); }

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

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--white);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.6;
}
.lang-toggle button.active {
  background: var(--white);
  color: var(--navy-900);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
}

/* Evita el parpadeo de idioma al cargar: ver el <script> del <head> en index.html.
   Es visibility (no display) para no mover nada de lugar ni provocar saltos de layout. */
.lang-pending .slide-content-inner,
.lang-pending .nav-links { visibility: hidden; }

/* ===== Hero Slider ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--navy-900);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; visibility: visible; z-index: 1; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1); }

.slide-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(230,198,103,0.16), transparent 45%),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 90px);
}
.slide-bg-1 { background-color: #0b1f3f; background-image: url("../images/colonia1.jpg"); }
.slide-bg-2 { background-color: #0b1f3f; background-image: url("../images/produccion-aceite.jpg"); }
.slide-bg-3 { background-color: #0b1f3f; background-image: url("../images/gondola-retail.jpg"); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7,18,36,0.94) 12%, rgba(7,18,36,0.68) 50%, rgba(7,18,36,0.42) 100%),
    linear-gradient(to top, rgba(7,18,36,0.55) 0%, rgba(7,18,36,0) 45%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.slide-content-inner { max-width: 620px; }

.slide-content .eyebrow { color: var(--gold-400); }
.slide-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}
.slide-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 520px;
}
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-controls {
  position: absolute;
  bottom: 34px;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.hero-dots { display: flex; gap: 10px; }
.hero-dot {
  width: 40px;
  height: 24px;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  background: transparent;
}
.hero-dot::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.3);
  overflow: hidden;
}
.hero-dot.active::before { background: rgba(255,255,255,0.25); }
.hero-dot.active::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--gold-400);
  animation: dotfill 6s linear forwards;
}
@keyframes dotfill { from { width: 0; } to { width: 100%; } }

.hero-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.18); }

.scroll-cue {
  position: absolute;
  bottom: 18px; right: 28px;
  z-index: 3;
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ===== About + Value ===== */
.about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--navy-800); margin-bottom: 18px; }
.about-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }

.value-list { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid rgba(11,31,63,0.06);
}
.value-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
}
.value-icon svg { width: 20px; height: 20px; }
.value-item h4 { font-family: var(--ff-sans); font-size: 1rem; color: var(--navy-800); margin-bottom: 4px; }
.value-item p { color: var(--muted); font-size: 0.92rem; }

.about-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  position: relative;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Stats strip ===== */
.stats {
  background: var(--navy-800);
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  background-color: var(--gold-400);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.stat p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }

/* ===== Commitment ===== */
.commitment { background: var(--white); }

/* ===== Products ===== */
.products { background: var(--cream); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.product-photo {
  aspect-ratio: 1/1;
  background: #eee;
  overflow: hidden;
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-photo img { transform: scale(1.06); }

.product-info { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-name {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.product-desc { font-size: 0.86rem; color: var(--muted); flex: 1; }
.product-sizes { font-size: 0.82rem; color: var(--navy-800); margin-top: 8px; }
.product-sizes strong { font-weight: 600; }

/* Respaldo del catálogo cuando no hay JavaScript (ver <noscript> en index.html). */
.noscript-note {
  background: var(--white);
  border: 1px solid rgba(11, 31, 63, 0.1);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.noscript-note p { color: var(--muted); font-size: 0.95rem; }
.noscript-note p + p { margin-top: 10px; }
.noscript-note strong { color: var(--navy-800); }
.noscript-note a { color: var(--gold-600); font-weight: 600; text-decoration: underline; }

/* ===== Brand divider ===== */
.brand-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0;
  margin-top: 20px;
}
.product-grid > .brand-divider:first-child { margin-top: 0; }
.brand-divider-logo {
  flex-shrink: 0;
  width: 180px; height: 180px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-divider-line { flex: 1; height: 1px; background: var(--gold-600); }
.brand-divider-name {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-600);
  white-space: nowrap;
}
.brand-divider-more {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--navy-800);
  text-decoration: none;
}
.brand-divider-more-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(11,31,63,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.brand-divider-more-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand-divider-more:hover .brand-divider-more-circle { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

/* ===== Contact ===== */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-info-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  border-radius: 20px;
  padding: 42px 36px;
  height: 100%;
}
.contact-info-card h3 { font-size: 1.5rem; margin-bottom: 14px; color: var(--gold-300); }
.contact-info-card p { color: rgba(255,255,255,0.78); margin-bottom: 26px; }

.contact-people {
  display: grid;
 /* grid-template-columns: 1fr 1fr; */
  gap: 30px;
}
.contact-person { display: flex; flex-direction: column; gap: 16px; }

.contact-person-name { display: flex; align-items: center; gap: 12px; }
.contact-person-name > div { font-weight: 700; font-size: 1rem; color: var(--white); }
.contact-person-name .role { display: block; font-weight: 400; font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 3px; }

.contact-detail { display: flex; gap: 12px; align-items: center; }
.ico {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.ico-svg { width: 17px; height: 17px; }
.contact-detail span { color: rgba(255,255,255,0.75); font-size: 0.88rem; word-break: break-word; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid #e2ded2;
  background: var(--cream);
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(217, 180, 74, 0.22);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== Campos de calificación de lead (selects + checkboxes) ===== */

/* La marca "(opcional)" viaja dentro de la cadena traducida del label. */
.label-optional {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* Select nativo normalizado: sin flecha del sistema, con chevron propio. */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  line-height: 1.4;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' viewBox='0 0 13 8' fill='none'%3E%3Cpath d='M1.2 1.4 6.5 6.6l5.3-5.2' stroke='%230b1f3f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 13px 8px;
}
.form-group select::-ms-expand { display: none; }
.form-group select.is-placeholder { color: var(--muted); }
.form-group select option { color: var(--ink); background: var(--white); }
.form-group select option[value=""] { color: var(--muted); }

/* Grupo de productos de interés */
.form-fieldset {
  border: 1px solid rgba(11, 31, 63, 0.1);
  border-radius: 12px;
  padding: 14px 18px 18px;
  margin-bottom: 18px;
  background: var(--white);
  min-width: 0;
}
.form-fieldset legend {
  padding: 0 8px;
  margin-left: -8px;
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}
.fieldset-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 2px 0 14px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.check-item-wide { grid-column: 1 / -1; }

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2ded2;
  background: var(--cream);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.check-item:hover { border-color: var(--gold-500); }
.check-item:has(.product-check:checked) {
  border-color: var(--gold-500);
  background: rgba(217, 180, 74, 0.1);
}

.product-check {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #cfc8b6;
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.product-check:checked {
  border-color: var(--gold-600);
  background-color: var(--gold-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9' fill='none'%3E%3Cpath d='M1.1 4.6 4.4 7.9 10.9 1.3' stroke='%2300193a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 9px;
}
.product-check:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}
.check-item label {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  margin: 0;
}
.product-check:checked + label { color: var(--navy-800); }

/* Honeypot anti-spam: fuera de pantalla, nunca display:none (los bots lo detectan). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  display: block;
  min-height: 16px;
  font-size: 0.78rem;
  color: #b23a2c;
  margin-top: 6px;
}
.form-group.error input,
.form-group.error textarea {
  border-color: #c9584a;
  background: #fdf1ef;
}
.form-group.error input:focus,
.form-group.error textarea:focus {
  border-color: #c9584a;
  box-shadow: 0 0 0 3px rgba(201, 88, 74, 0.18);
}

.form-success {
  display: none;
  background: #eaf7ee;
  color: #1f7a3d;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-top: 16px;
}
.form-success.show { display: block; }
/* Recibe foco al enviarse el formulario: sin anillo salvo navegación por teclado. */
.form-success:focus { outline: none; }
.form-success:focus-visible { outline: 2px solid #1f7a3d; outline-offset: 2px; }
.form-error {
  display: none;
  background: #fbeceb;
  color: #b23a2e;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-top: 16px;
}
.form-error.show { display: block; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ===== Links de interés ===== */
.links-section { background: var(--cream); }
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.link-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.link-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-600);
  margin-bottom: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.link-icon .ico-svg { width: 18px; height: 18px; }
.link-card:hover .link-icon { background: var(--navy-800); color: var(--white); }
.link-card h4 { font-family: var(--ff-sans); font-size: 1rem; color: var(--navy-800); }
.link-card p { font-size: 0.86rem; color: var(--muted); }
.link-card .go { font-size: 0.82rem; font-weight: 700; color: var(--gold-600); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.footer-top img { height: 34px; }
.footer-top img.footer-seal { height: 180px; }
.footer-tagline { font-size: 0.85rem; max-width: 320px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

/* ===== Focus visibility ===== */
.nav-links a:focus-visible,
.nav-toggle:focus-visible,
.hero-arrow:focus-visible,
.hero-dot:focus-visible,
.lang-toggle button:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}
.link-card:focus-visible,
.brand-divider-more:focus-visible .brand-divider-more-circle {
  outline: 2px solid var(--navy-800);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right { transform: translateX(70px); }
.reveal-up { transform: translateY(40px); }
.reveal.in-view { opacity: 1; transform: translate(0, 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .product-card { transition: none !important; opacity: 1 !important; transform: none !important; translate: 0 !important; }
  .slide { transition: none !important; }
  .slide-bg, .slide.active .slide-bg { transition: none !important; transform: none !important; }
  .hero-dot.active::after { animation: none !important; width: 100% !important; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; aspect-ratio: 16/9; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .links-grid { grid-template-columns: 1fr; }

  /* El menú pasa a hamburguesa desde 900px (antes 760px): entre 761 y 899px los
     enlaces se amontonaban contra el selector ES/EN y comprimían el logo.
     Va posicionado contra el header (que es fixed), así se abre siempre justo
     debajo sin depender de un alto fijo escrito a mano. */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .contact-people { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .form-fieldset { padding: 12px 14px 16px; }
  .slide-content p { font-size: 1rem; }

  .brand-divider-logo { width: 108px; height: 108px; }
  .brand-divider-name { display: none; }
}

/* En pantallas angostas el logo se achica en ALTO, manteniendo su proporción, hasta el
   ancho que sobra al costado del selector ES/EN y la hamburguesa (~215px entre padding,
   botones y separaciones). Antes se comprimía sólo a lo ancho y la marca salía deformada;
   con flex-shrink: 0 y alto fijo, en cambio, empujaba la hamburguesa fuera de pantalla. */
@media (max-width: 560px) {
  .brand img { height: min(50px, calc((100vw - 215px) / 4.6)); width: auto; }
}

@media (max-width: 480px) {
.brand-divider-line { opacity:0;}
.slide-bg {
  background-position: center;
  margin-left: -600px;
  transform: scale(1.06);
  transition: transform 8s ease;
}

.lang-toggle {height: 30px; width:90px;}
.nav-right {display: flex; align-items: center; gap: 18px; margin-right:15px;
}
}

/* ===== WhatsApp float (inicio) — borrar todo este bloque + el <a class="whatsapp-float"> en index.html para sacarlo ===== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 900;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Al ser un elemento fijo, en algún punto del scroll siempre termina encima de un campo
   del formulario y se roba el toque. Mientras el formulario está a la vista se esconde
   (lo activa js/script.js); el visitante ya tiene ahí el formulario y los teléfonos. */
.whatsapp-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.85);
}
.whatsapp-float svg { width: 30px; height: 30px; }

/* En mobile el botón quedaba encima del campo Mensaje y del botón Enviar:
   un toque en esa esquina abría WhatsApp en vez de escribir. Lo subimos y achicamos. */
@media (max-width: 760px) {
  .whatsapp-float {
    right: 14px;
    bottom: 90px;
    width: 48px;
    height: 48px;
  }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
/* ===== WhatsApp float (fin) ===== */

/* ===== Acceso al panel interno =====
   Discreto a proposito: es una puerta de servicio para Martin y Enrique, no un
   elemento de navegacion para el visitante. Se hace visible al pasar el mouse. */
.footer-admin {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.footer-admin:hover,
.footer-admin:focus-visible {
  color: var(--gold-300, #C8A24A);
  text-decoration: underline;
}
@media (max-width: 760px) {
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-admin { width: 100%; margin-top: 6px; }
}

/* ===== Enlace a la seccion Miami =====
   Conecta la promesa de "Quienes somos" con la seccion que la explica. Discreto:
   subrayado dorado tenue, sin cambiar el color del texto que lo rodea. */
.miami-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(169, 118, 31, 0.45);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.miami-link:hover,
.miami-link:focus-visible {
  color: var(--gold-600);
  text-decoration-color: var(--gold-600);
}
