/* ==========================================================================
   FAMMIE FAMI S.A. — Hoja de estilos global
   Basado en demo aprobada por el cliente · Manrope + paleta navy/blue
   ========================================================================== */

/* ========== TOKENS ========== */
:root {
  --navy-950: #071A33;
  --navy-900: #092A54;
  --blue-700: #125AA3;
  --blue-500: #1689D4;
  --blue-100: #DCECF8;
  --steel-700: #475569;
  --steel-500: #64748B;
  --steel-200: #D9E1E8;
  --surface: #F3F6F8;
  --white: #FFFFFF;
  --text: #172033;
  --danger: #B4232C;
  --success: #1F7A4C;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(9,42,84,.06), 0 1px 3px rgba(9,42,84,.04);
  --shadow: 0 6px 20px rgba(9,42,84,.08);
  --shadow-lg: 0 20px 40px rgba(9,42,84,.12);

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 32px);

  --header-h: 72px;
  --topbar-h: 36px;

  --font: 'Manrope', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --cta-padding-y: 20px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 8px);
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-950); color: #fff; padding: 12px 16px;
  z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-weight: 700; color: var(--navy-950); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { color: var(--steel-700); }
.eyebrow {
  display: inline-block;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-700); font-weight: 700;
  padding: 6px 12px; background: var(--blue-100); border-radius: 999px;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--gutter);
}
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head {
  max-width: 780px; margin: 0 auto clamp(32px, 4vw, 48px);
  text-align: center;
}
.section-head p { margin-top: 12px; font-size: 1.05rem; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--cta-padding-y) 20px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  text-decoration: none; min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.btn-primary:hover { background: var(--navy-900); border-color: var(--navy-900); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-secondary:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--steel-200); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: .85rem; min-height: 36px; }

/* ========== TOPBAR (secondary nav) ========== */
.topbar {
  background: var(--navy-950); color: rgba(255,255,255,.85);
  font-size: .82rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; min-height: var(--topbar-h); padding: 0; flex-wrap: wrap;
}
.topbar-nav { display: flex; align-items: center; gap: 0; flex-wrap: wrap; justify-content: center; }
.topbar-nav a {
  color: rgba(255,255,255,.85); text-decoration: none;
  padding: 8px 14px; font-size: .82rem; font-weight: 500;
  transition: color .15s, background .15s;
}
.topbar-nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }

/* ========== HEADER ========== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.header.scrolled {
  border-bottom-color: var(--steel-200);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}

/* Logo real */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-950); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; }

/* Nav */
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: 6px; }
.nav-desktop a {
  display: inline-block; padding: 10px 12px; color: var(--navy-900);
  font-weight: 600; font-size: .92rem; border-radius: 8px;
}
.nav-desktop a:hover { background: var(--surface); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { display: none; }

/* Lang switch */
.lang-switch {
  display: flex; align-items: center; gap: 4px;
}
.lang-btn {
  background: none; border: none;
  color: var(--steel-500);
  font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  padding: 6px 4px;
  transition: color .15s;
  cursor: pointer;
}
.lang-btn.is-active { color: var(--blue-700); }
.lang-btn:hover { color: var(--navy-900); }
.lang-sep { color: var(--steel-200); font-size: .82rem; user-select: none; }

/* Menu toggle */
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px;
  background: transparent; border: 1px solid var(--steel-200);
  color: var(--navy-900);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7,26,51,.55);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(88vw, 360px); background: #fff;
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; padding: 20px; overflow-y: auto;
}
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.mobile-close {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--steel-200);
  color: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-panel nav a {
  display: block; padding: 14px 12px; color: var(--navy-900);
  font-weight: 600; border-radius: 8px;
  border-bottom: 1px solid var(--steel-200);
}
.mobile-panel nav a:hover { background: var(--surface); text-decoration: none; }
.mobile-panel .lang-switch { margin-top: 16px; justify-content: center; gap: 8px; }
.mobile-panel .btn { margin-top: 20px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after {
  content: ""; display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -3px;
  transition: transform .15s;
}
.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after { transform: rotate(-135deg); margin-top: 1px; }
.dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 280px; background: #fff;
  border: 1px solid var(--steel-200); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s, visibility .15s;
  z-index: 110;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.dropdown-panel a {
  display: block; padding: 10px 18px; color: var(--navy-900);
  font-size: .88rem; font-weight: 500; white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--surface); text-decoration: none; }

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
  .header-actions .btn { display: inline-flex; }
}

/* ========== HERO (VIDEO) ========== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff;
}
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0;
  background: var(--navy-950);
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(7,26,51,.65) 0%,
      rgba(7,26,51,.30) 35%,
      rgba(7,26,51,.35) 65%,
      rgba(7,26,51,.80) 100%
    );
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(56px, 9vw, 112px);
  width: 100%;
}
.hero .eyebrow { background: rgba(220,236,248,.14); color: var(--blue-100); }
.hero h1 { color: #fff; margin: 16px 0 18px; max-width: 22ch; }
.hero p.lead { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* Hero CTA hover swap */
.hero-cta .btn-primary:hover {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.35);
}
.hero-cta .btn-secondary:hover {
  background: var(--blue-700); color: #fff;
  border-color: var(--blue-700);
}
.hero-trust {
  margin-top: 40px; display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-trust li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: rgba(255,255,255,.85);
}
.hero-trust svg {
  flex-shrink: 0; width: 18px; height: 18px;
  color: var(--blue-500);
}

@media (min-width: 900px) {
  .hero-trust { grid-template-columns: repeat(4, auto); }
}

/* ========== EMPRESA ========== */
.empresa .grid {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr;
}
.empresa-media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 16/9;
  /* PROVISIONAL — REEMPLAZAR/VALIDAR CON FAMI */
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.empresa-media img,
.empresa-media video,
.empresa-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.empresa-content h2 { margin-bottom: 16px; }
.empresa-content .lead { font-size: 1.05rem; }
.empresa-content p + p { margin-top: 14px; }
/* Read more / less */
.empresa-expandable {
  display: none;
}
.empresa-expandable.is-open {
  display: block;
}
.read-more-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 0; background: none; border: none;
  color: var(--blue-700); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: color .15s;
}
.read-more-toggle:hover { color: var(--navy-900); text-decoration: underline; }
.read-more-toggle svg {
  width: 16px; height: 16px; transition: transform .2s;
}
.read-more-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.attrs {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-top: 28px;
}
.attr {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; background: var(--surface);
  border: 1px solid var(--steel-200); border-radius: var(--radius);
}
.attr .ic {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  background: var(--blue-100); color: var(--blue-700);
  display: grid; place-items: center;
}
.attr .ic svg { width: 20px; height: 20px; }
.attr h4 { font-size: .95rem; color: var(--navy-950); margin-bottom: 2px; }
.attr p { font-size: .85rem; color: var(--steel-700); line-height: 1.4; margin: 0; }

@media (min-width: 900px) {
  .empresa .grid { grid-template-columns: 1fr 1.1fr; gap: 60px; }
}

/* ========== PRODUCTOS ========== */
.productos { background: var(--surface); }
.productos-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .productos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .productos-grid { grid-template-columns: repeat(3, 1fr); }
}
.product-card {
  background: #fff; border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  text-decoration: none; color: inherit;
}
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-500);
  text-decoration: none;
}
.product-media {
  aspect-ratio: 4/3; background: #f0f3f6; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-media img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 12px; transition: transform .3s;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body {
  padding: 20px; display: flex; flex-direction: column;
  flex: 1; gap: 10px;
}
.product-cat {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-700); font-weight: 700;
}
.product-cat:empty { display: none; }
.product-title { font-size: 1.1rem; color: var(--navy-950); }
.product-desc { font-size: .9rem; color: var(--steel-700); line-height: 1.5; flex: 1; }
.product-foot {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; margin-top: 6px;
}

/* ========== SOLUCIONES ========== */
.soluciones-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.sol-card {
  padding: 24px; border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.sol-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow); }
.sol-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  color: #fff; display: grid; place-items: center; margin-bottom: 16px;
}
.sol-icon svg { width: 24px; height: 24px; }
.sol-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.sol-card p { font-size: .9rem; }

/* ========== LABORATORIO Y CALIDAD ========== */
.calidad {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, #103C74);
  color: #fff; position: relative; overflow: hidden;
}
.calidad::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 42px; pointer-events: none;
}
.calidad h2 { color: #fff; }
.calidad-grid {
  position: relative; display: grid; gap: 40px;
  grid-template-columns: 1fr; align-items: center;
}
.calidad-content .lead {
  color: rgba(255,255,255,.85); font-size: 1.05rem;
  max-width: 55ch; margin-top: 12px;
}
.calidad-list { margin-top: 28px; display: grid; gap: 14px; }
.calidad-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.calidad-item .ic {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px;
  background: rgba(22,137,212,.2); color: var(--blue-100);
  display: grid; place-items: center;
}
.calidad-item .ic svg { width: 20px; height: 20px; }
.calidad-item h4 { color: #fff; font-size: .95rem; margin-bottom: 2px; }
.calidad-item p { color: rgba(255,255,255,.75); font-size: .85rem; margin: 0; }
.calidad-media {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; box-shadow: 0 20px 40px rgba(0,0,0,.3);
  background: var(--navy-950);
}
.calidad-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.calidad-media .carousel { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: transparent; }
.calidad-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 900px) {
  .calidad-grid { grid-template-columns: 1.05fr 1fr; gap: 60px; }
}

/* ========== NUEVA PLANTA ========== */
.planta-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr; align-items: start;
}
.planta-media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16/9;
  /* PROVISIONAL — REEMPLAZAR/VALIDAR CON FAMI */
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.2); font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.planta-media img { width: 100%; height: 100%; object-fit: cover; }
.planta-side h2 { margin-bottom: 12px; }
.planta-attrs { margin-top: 20px; display: grid; gap: 12px; }
.planta-attr {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; background: var(--surface);
  border: 1px solid var(--steel-200); border-radius: var(--radius);
}
.planta-attr .ic {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px;
  background: var(--blue-100); color: var(--blue-700);
  display: grid; place-items: center;
}
.planta-attr .ic svg { width: 18px; height: 18px; }
.planta-attr h4 { font-size: .95rem; margin-bottom: 2px; }
.planta-attr p { font-size: .85rem; margin: 0; }

@media (min-width: 900px) {
  .planta-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; }
}

/* ========== IDENTIDAD ========== */
.identidad { background: var(--surface); }
.identidad-head {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center; max-width: 780px; margin: 0 auto 40px;
}
.identidad-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.id-card {
  background: #fff; border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg); padding: 24px;
}
.id-card .num {
  display: inline-block; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-700);
  font-weight: 700; margin-bottom: 12px;
}
.id-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--navy-950); }
.id-card p { font-size: .9rem; line-height: 1.55; }

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, var(--blue-700), var(--navy-900));
  color: #fff; text-align: center;
  padding: clamp(48px, 7vw, 80px) 0;
}
.cta h2 { color: #fff; }
.cta p {
  color: rgba(255,255,255,.85);
  margin: 12px auto 24px; max-width: 55ch;
}
.cta .btn-cta-light {
  background: #fff; color: var(--navy-900);
  border-color: #fff;
}
.cta .btn-cta-light:hover {
  background: var(--blue-100); border-color: var(--blue-100);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--navy-950); color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer h4 {
  color: #fff; font-size: .9rem; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 16px;
}
.footer ul li { margin-bottom: 10px; font-size: .9rem; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }
.footer-brand .footer-logo { max-height: 60px; width: auto; }
.footer-brand p {
  color: rgba(255,255,255,.65); font-size: .9rem; margin-top: 14px;
}
.footer-brand .socials { margin-top: 16px; }
.socials { display: flex; gap: 10px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 8px;
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.social-btn:hover {
  background: var(--blue-700); border-color: var(--blue-700);
  text-decoration: none;
}
.social-btn svg { width: 20px; height: 20px; }
.footer-legal button {
  background: none; border: none; color: rgba(255,255,255,.75);
  padding: 0; text-align: left; font-size: .9rem; cursor: pointer;
}
.footer-legal button:hover { color: #fff; text-decoration: underline; }
.footer-reinforcement {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: rgba(255,255,255,.55);
  text-align: center; line-height: 1.6;
}
.footer-bottom {
  margin-top: 16px; padding-top: 16px; padding-bottom: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }
.to-top {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 14px; border-radius: 8px; font-size: .82rem;
  font-weight: 600; display: inline-flex; align-items: center;
  gap: 6px; cursor: pointer; transition: background .15s;
}
.to-top:hover { background: var(--blue-700); border-color: var(--blue-700); }
.to-top svg { width: 14px; height: 14px; }

/* ========== WHATSAPP FLOAT ========== */
/* WHATSAPP PROVISORIO — CONFIRMAR CON FAMI */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.wa-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; border: none;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s;
}
.wa-btn:hover { transform: scale(1.05); }
.wa-btn svg { width: 30px; height: 30px; }
.wa-panel {
  position: absolute; right: 0; bottom: 72px;
  width: 280px; background: #fff;
  border: 1px solid var(--steel-200); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow-lg);
  display: none;
}
.wa-panel.open { display: block; }
.wa-panel h4 { font-size: .95rem; margin-bottom: 6px; color: var(--navy-950); }
.wa-panel p { font-size: .85rem; margin-bottom: 12px; color: var(--steel-700); }
.wa-panel .btn { width: 100%; }

/* ========== RESPONSIVE ========== */
@media (max-width: 520px) {
  .topbar-nav { gap: 0; }
  .topbar-nav a { padding: 6px 8px; font-size: .75rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .attrs { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .empresa .grid { gap: 24px; }
  .planta-grid { gap: 24px; }
  .footer-grid { gap: 24px; }
  .topbar { display: none; }
}

/* Mobile dropdown in slide-out */
.mobile-dropdown-label {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 12px; color: var(--navy-900);
  font-weight: 600; border-radius: 8px;
  border: none; background: none; cursor: pointer; font-size: 1rem;
  border-bottom: 1px solid var(--steel-200); text-align: left;
}
.mobile-dropdown-label svg {
  width: 16px; height: 16px; transition: transform .2s; flex-shrink: 0;
}
.mobile-dropdown-label[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-dropdown-items {
  display: none; padding-left: 16px;
}
.mobile-dropdown-items.open { display: block; }
.mobile-dropdown-items a {
  padding: 10px 12px !important; font-size: .92rem !important;
  border-bottom: none !important; color: var(--steel-700) !important;
}
.mobile-dropdown-items a:hover { color: var(--navy-900) !important; }

/* ========== CAROUSEL — NUEVA PLANTA ========== */
.carousel {
  position: relative; overflow: hidden; border-radius: 12px;
  width: 100%; aspect-ratio: 16/10; background: var(--steel-100);
}
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
  will-change: opacity;
}
.carousel-slide.is-active { opacity: 1; }
.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1); transition: transform 6s ease;
}
.carousel-slide.is-active img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
  .carousel-slide img { transition: none; transform: none !important; }
}
.carousel-controls {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; padding: 0;
  transition: background .2s;
}
.carousel-dot.is-active { background: #fff; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background .2s;
}
.carousel-nav:hover { background: rgba(0,0,0,.55); }
.carousel-nav--prev { left: 12px; }
.carousel-nav--next { right: 12px; }
.carousel-nav svg { width: 18px; height: 18px; }

/* ========== CALIDAD GALLERY (cross-fade) ========== */
.calidad-gallery {
  position: relative; overflow: hidden; border-radius: 12px;
  width: 100%; aspect-ratio: 4/3; background: var(--navy-950);
}
.calidad-gallery img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.calidad-gallery img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .calidad-gallery img { transition: none; }
}

/* ========== DOCUMENT LINKS — CALIDAD ========== */
.calidad-docs {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px;
}
.calidad-docs a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; color: var(--blue-100);
  text-decoration: none; padding: 6px 12px;
  border: 1px solid rgba(220,236,248,.25); border-radius: 6px;
  transition: background .2s, border-color .2s;
}
.calidad-docs a:hover {
  background: rgba(220,236,248,.1); border-color: rgba(220,236,248,.45);
}
.calidad-docs a svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ========== MANTENIMIENTO ========== */
.mantenimiento {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  background: var(--surface);
}
.mantenimiento-grid {
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 768px) {
  .mantenimiento-grid { grid-template-columns: 1fr 1fr; }
}
.mantenimiento .section-head { text-align: left; margin-bottom: 32px; }
.mantenimiento .lead { max-width: 720px; }
.mant-docs {
  display: flex; flex-direction: column; gap: 10px; margin-top: 20px;
}
.mant-doc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-700); border-color: var(--blue-700);
  font-size: .85rem; padding: 10px 18px; text-align: left; line-height: 1.35;
}
.mant-doc-btn:hover {
  background: rgba(18,90,163,.06); border-color: var(--blue-700); color: var(--blue-700);
}
.mant-doc-btn svg { flex-shrink: 0; }
.mantenimiento-media img {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow); object-fit: cover;
  transition: transform .4s ease;
}
.mantenimiento-media img:hover { transform: scale(1.02); }

/* Carousel contain variant (portrait images in mantenimiento) */
.carousel--contain { aspect-ratio: 3/4; background: var(--white); box-shadow: var(--shadow); }
@media (min-width: 768px) {
  .carousel--contain { max-width: 80%; margin: auto; }
}
.carousel--contain .carousel-slide img { object-fit: contain; object-position: center; }
.carousel--contain .carousel-slide.is-active img { transform: none; }
.mantenimiento-media .carousel-slide img,
.mantenimiento-media .carousel-slide img:hover {
  width: 100%; height: 100%; box-shadow: none; transform: none;
}

/* ========== FAQ ========== */
.faq {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.faq .section-head { margin-bottom: 40px; }
.faq-banner {
  background: rgba(18,90,163,.08); border: 1px solid rgba(18,90,163,.18);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 32px;
  font-size: .88rem; color: var(--steel-700); text-align: center;
}
.faq-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 768px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}
.faq-item {
  border: 1px solid var(--steel-200); border-radius: 10px;
  overflow: hidden; background: #fff;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 20px; border: none; background: none;
  font-size: .95rem; font-weight: 600; color: var(--navy-950);
  cursor: pointer; text-align: left; gap: 12px;
  font-family: inherit;
}
.faq-question svg {
  width: 18px; height: 18px; flex-shrink: 0;
  transition: transform .2s;
}
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px;
}
.faq-answer.is-open {
  max-height: 800px;
  padding: 0 20px 16px;
}
.faq-answer p {
  font-size: .9rem; line-height: 1.65; color: var(--steel-600);
  margin: 0;
}

/* ========== ACCESSIBILITY ========== */
body.no-scroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-video-wrap video { animation: none; }
}
