/* Angopack — logo: blanco (base) + oro #dcb428 + púrpura #282864 */
:root {
  --white: #ffffff;
  --pale: #f7f7fb;
  --line: #e4e4ef;
  --text: #5c5c6e;
  --muted: #7a7a8c;
  --purple: #282864;
  --purple-deep: #1c1c48;
  --purple-soft: #3a3a7a;
  --purple-tint: rgba(40, 40, 100, 0.06);
  --gold: #dcb428;
  --gold-light: #e8c84a;
  --gold-deep: #b8941f;
  --ink: var(--purple);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 14px 40px rgba(40, 40, 100, 0.1);
  --shadow-soft: 0 8px 24px rgba(40, 40, 100, 0.06);
  --container: 1140px;
  --header-h: 92px;
  --font-display: "Montserrat", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: 0.28s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold-deep); }
strong { color: var(--purple); font-weight: 700; }
.accent { color: var(--gold-deep); font-weight: 700; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--purple);
  line-height: 1.25;
  margin: 0 0 0.85rem;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.icon {
  display: inline-block; vertical-align: middle; flex-shrink: 0;
  color: currentColor;
}
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 36px; height: 36px; }
.icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(220, 180, 40, 0.14);
  color: var(--purple);
  margin-bottom: .85rem;
  border: 1px solid rgba(220, 180, 40, 0.28);
}
.icon-wrap-purple {
  background: rgba(40, 40, 100, 0.08);
  border-color: rgba(40, 40, 100, 0.12);
  color: var(--purple);
}
.section-kicker .icon {
  width: 16px; height: 16px; color: var(--gold-deep); margin-right: .15rem;
}
.hero-stat-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(220, 180, 40, 0.18);
  color: var(--gold); margin-bottom: .75rem;
}
.hero-stat-icon .icon { width: 20px; height: 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10000;
  background: var(--gold); color: var(--purple-deep); padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: 4.75rem 0; background: var(--white); }
.section-alt { background: var(--pale); }
.section-tint-gold {
  background: linear-gradient(180deg, #fffdf6 0%, #faf6e8 48%, #f7f4ec 100%);
}
.section-tint-purple {
  background: linear-gradient(180deg, #f7f7fb 0%, #f0f0f8 50%, #ebebf6 100%);
}
.section-dark {
  background: linear-gradient(145deg, var(--purple-deep) 0%, var(--purple) 55%, var(--purple-soft) 100%);
  color: rgba(255,255,255,.9);
}
.section-dark .section-title,
.section-title.gold { color: var(--gold); }
.section-lead { max-width: 40rem; margin: 0 0 2rem; color: var(--muted); }
.section-lead.light { color: rgba(255,255,255,.78); }
.section-kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
  margin: 0 0 .75rem;
}
.section-kicker.gold { color: var(--gold); }
.section-title {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  letter-spacing: 0.01em;
}
.section-head { margin-bottom: 2.25rem; }
.section-head-center { text-align: center; margin-inline: auto; }
.section-head-center .section-lead { margin-inline: auto; }
.section-head-row {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .05em;
  border: 2px solid transparent; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--purple-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); color: var(--purple-deep); }
.btn-dark { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-dark:hover { background: var(--purple-soft); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1ebe57; color: #fff; }
.btn-sm { padding: .55rem 1.05rem; font-size: .72rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header — blanco + púrpura + oro */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(40, 40, 100, 0.04);
  transition: box-shadow var(--ease), background var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(40, 40, 100, 0.08);
}
.header-accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--gold), var(--purple));
  opacity: 0.85;
}
.header-inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.logo-link {
  display: flex; align-items: center;
  padding: .25rem 0;
  transition: transform var(--ease);
}
.logo-link:hover { transform: scale(1.02); }
.site-logo {
  max-height: 72px; width: auto;
  object-fit: contain;
}
.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer;
  padding: 11px 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle-bar {
  display: block; width: 100%; height: 2px; background: var(--purple); border-radius: 2px;
  transition: var(--ease); transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 1rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav-list > li > a,
.submenu-toggle {
  position: relative;
  display: block; padding: .7rem .9rem;
  color: var(--purple); font-family: var(--font-display); font-size: .76rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  background: none; border: 0; cursor: pointer;
  opacity: 0.9; border-radius: var(--radius-pill);
  transition: color var(--ease), background var(--ease), opacity var(--ease);
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: .35rem;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--gold); transform: translateX(-50%);
  transition: width var(--ease);
}
.nav-list > li > a:hover::after,
.nav-list > li > a.is-active::after { width: 1.1rem; }
.nav-list > li > a:hover,
.nav-list > li > a.is-active,
.nav-list > li.has-submenu.is-active > .submenu-toggle,
.submenu-toggle:hover {
  color: var(--gold-deep);
  opacity: 1;
  background: rgba(220, 180, 40, 0.08);
}
.header-cta {
  box-shadow: 0 8px 20px rgba(220, 180, 40, 0.28);
}
.has-submenu { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: .45rem;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--ease);
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a {
  display: block; padding: .7rem 1rem; color: var(--purple);
  font-size: .9rem; border-radius: var(--radius-sm);
}
.submenu a:hover { background: var(--purple-tint); color: var(--gold-deep); }
.header-cta { margin-left: .35rem; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  background-size: cover;
  background-position: center;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(28, 28, 72, 0.78) 0%, rgba(28, 28, 72, 0.45) 48%, rgba(20, 20, 30, 0.22) 100%),
    linear-gradient(to top, rgba(28, 28, 72, 0.7), transparent 52%);
}
.hero-grid {
  position: relative; z-index: 1;
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 5.5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: end;
}
.hero-kicker {
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75);
  margin: 0 0 1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}
.hero-main > p {
  max-width: 36rem; color: rgba(255,255,255,.82); margin: 0 0 1.6rem; font-size: 1.08rem;
}
.hero-stats { display: grid; gap: 1rem; }
.hero-stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  backdrop-filter: blur(8px);
}
.hero-stat-card strong {
  display: block; color: var(--gold); font-family: var(--font-display);
  font-size: 1.25rem; margin-bottom: .2rem;
}
.hero-stat-card h3 { color: #fff; font-size: 1rem; margin: 0 0 .35rem; }
.hero-stat-card p { margin: 0; color: rgba(255,255,255,.7); font-size: .92rem; }

/* Page hero — más alto que antes, menor que el hero del index */
.page-hero {
  position: relative;
  min-height: clamp(280px, 38vh, 420px);
  padding: 4.75rem 0 3.75rem;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28, 28, 72, 0.88), rgba(40, 40, 100, 0.58));
}
.page-hero .container { position: relative; z-index: 1; width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.65rem); }
.page-hero p { margin: 0; color: rgba(255,255,255,.78); max-width: 40rem; font-size: 1.05rem; }

/* Migas de pan en óvalo (estilo Chemicals, colores Angopack) */
.breadcrumb-pill {
  display: inline-flex; align-items: center;
  max-width: 100%;
  padding: .45rem 1.15rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(220, 180, 40, 0.22), rgba(220, 180, 40, 0.08));
  border: 1px solid rgba(220, 180, 40, 0.55);
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}
.breadcrumb-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .15rem;
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
}
.breadcrumb-list a { color: var(--gold-light); }
.breadcrumb-list a:hover { color: #fff; }
.breadcrumb-list [aria-current="page"] { color: #fff; font-weight: 600; }
.breadcrumb-sep { margin: 0 .35rem; color: rgba(255,255,255,.4); }
.page-hero .breadcrumb-pill {
  background: rgba(28, 28, 72, 0.4);
  border-color: var(--gold);
}

/* Product media — canvas neutro (productos sin fondo blanco) */
.product-media {
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.95) 0%, rgba(232,232,242,.9) 70%),
    linear-gradient(145deg, #f3f3f9, #e8e8f2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(40, 40, 100, 0.08);
}
.product-media-empty {
  min-height: 200px;
  background: linear-gradient(145deg, rgba(40,40,100,.08), rgba(220,180,40,.12));
}
.product-media-empty span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--purple); letter-spacing: .04em; text-transform: uppercase;
}
.product-media img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  padding: 1.15rem;
  filter: drop-shadow(0 10px 18px rgba(20, 20, 30, 0.12));
}
.product-media img[src$=".jpeg"],
.product-media img[src$=".jpg"] {
  object-fit: cover;
  max-height: 280px;
  padding: 0;
  filter: none;
  width: 100%;
  height: 100%;
  min-height: 200px;
}
/* Bolsas Polifoam: no recortar; alejar dentro del mismo tamaño de card */
.product-media img[src*="bolsas-polifoam"] {
  object-fit: contain;
  object-position: center;
  padding: 1.35rem 1.5rem;
  background: #fff;
  filter: none;
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 280px;
}

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-3.symmetric { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-3.auto-fit { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-2.symmetric-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin-inline: auto;
}
.cat-grid-balanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.line-card, .product-card, .cat-card, .mv-card, .value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), box-shadow var(--ease);
}
.line-card:hover, .product-card:hover, .cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.line-card { padding: 1.15rem 1.15rem 1.35rem; }
.line-card-media { margin: 0 0 1rem; min-height: 180px; }
.line-card h3 { font-size: 1.05rem; }
.line-card h3 a { color: inherit; }
.line-card p { margin: 0 0 1rem; font-size: .95rem; }

.pill {
  display: inline-block;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--purple); background: rgba(220, 180, 40, 0.16);
  border: 1px solid rgba(220, 180, 40, 0.35);
  border-radius: var(--radius-pill); padding: .35rem .7rem; margin-bottom: .65rem;
}

.product-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.product-card-media { min-height: 200px; border-radius: 0; }
.product-card-text .product-card-body { padding-top: 1.5rem; }
.product-card-body { padding: 1.15rem 1.2rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-card-body h3 { font-size: 1rem; margin: 0; }
.product-card-body h3 a { color: inherit; }
.product-card-body p { margin: 0; font-size: .94rem; flex: 1; }
.product-card-body .btn { align-self: flex-start; margin-top: .35rem; }

.feature-pills {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem;
}
.feature-pills li {
  font-size: .75rem; font-family: var(--font-display); font-weight: 600;
  padding: .3rem .6rem; border-radius: var(--radius-pill);
  background: var(--pale); color: var(--ink); border: 1px solid var(--line);
}

/* Home splits */
.home-split, .home-logistics, .about-intro, .about-quality, .cat-intro, .contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.home-split-media, .home-logistics-media, .about-intro-media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
}
.home-split-media img, .home-logistics-media img, .about-intro-media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.services-media {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: .35rem .5rem 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
  box-sizing: border-box;
}
.phone-frame {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 340px);
  max-width: 100%;
  margin-inline: auto;
  background: linear-gradient(160deg, #2a2a36 0%, #121218 100%);
  border-radius: 34px;
  padding: 12px 11px 16px;
  border: 3px solid var(--gold);
  box-shadow:
    0 18px 40px rgba(40, 40, 100, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 8px;
  border-radius: 999px;
  background: #0a0a10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 2;
  pointer-events: none;
}
.phone-frame::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 2;
  pointer-events: none;
}
.services-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: min(580px, 70vh);
  object-fit: cover;
  object-position: center;
  background: #0a0a10;
  border-radius: 22px;
  vertical-align: middle;
}
.services-split .list-check { margin-bottom: 1.35rem; }

/* Empresas del grupo */
.group-empresas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 1.35rem;
  justify-content: center;
}
.group-empresa-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: .5rem;
  text-align: center;
}
.group-empresa-card:hover {
  transform: none;
  box-shadow: none;
}
.group-empresa-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  margin-bottom: 1rem;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 0;
  overflow: hidden;
}
.group-empresa-logo img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}
.group-empresa-card h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
}
.group-empresa-card p {
  margin: 0;
  font-size: .94rem;
  color: var(--muted);
}

.list-check {
  list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .55rem;
}
.list-check li {
  position: relative; padding-left: 1.35rem; color: var(--ink); font-weight: 500;
}
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.cta-band .section-title { margin-bottom: .5rem; }

/* Category / about */
.cat-card { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.cat-card-media { min-height: 100%; border-radius: 0; }
.cat-card-media img { max-height: none; height: 100%; object-fit: contain; }
.cat-card-body { padding: 1.5rem; }
.cat-card-body h2 { font-size: 1.35rem; }
.cat-card-body h2 a { color: inherit; }
.cat-intro-media { min-height: 320px; }
.cat-intro-media img { max-height: 360px; }

.mv-card { padding: 1.75rem; }
.values-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.value-card { padding: 1.15rem; }
.value-card h3 { font-size: .95rem; color: var(--purple); margin-bottom: .4rem; }
.value-card h3::after {
  content: ""; display: block; width: 28px; height: 3px; margin-top: .45rem;
  background: var(--gold); border-radius: 2px;
}
.value-card p { margin: 0; font-size: .9rem; }

.about-aside { display: grid; gap: 1rem; }
.about-aside-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-soft);
}
.about-aside-card h3 { font-size: 1rem; color: var(--purple); margin-bottom: .65rem; }
.about-aside-card p { margin: 0 0 .45rem; }
.about-aside-card img { width: 100%; border-radius: var(--radius-sm); margin-top: .75rem; object-fit: cover; max-height: 320px; }
.aside-links {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem;
}
.aside-links a {
  display: flex; align-items: center; gap: .45rem;
  color: var(--purple); font-weight: 600; font-size: .95rem;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  background: rgba(40, 40, 100, 0.04);
  border: 1px solid var(--line);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.aside-links a::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.aside-links a:hover {
  background: rgba(220, 180, 40, 0.12);
  border-color: rgba(220, 180, 40, 0.45);
  color: var(--gold-deep);
}

/* Contact */
.contact-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { color: var(--ink); }
.contact-list span { display: block; font-family: var(--font-display); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25rem; }
.contact-form-wrap {
  background: var(--pale); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row-full { grid-column: 1 / -1; }
.form-row label {
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.form-row input, .form-row textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .75rem .9rem; outline: none;
  transition: border-color var(--ease);
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--gold); }
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem; }
.alert-ok { background: #e8f6ee; color: #1d6b3f; }
.alert-err { background: #fdecea; color: #8a1f11; }

.phone-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: .85rem;
  margin: 1.35rem 0 1.25rem;
}
.phone-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--gold);
}
.phone-card-alt { border-top-color: var(--purple); }
.phone-card-label {
  margin: 0 0 .45rem;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep);
}
.phone-card-num {
  display: block; color: var(--purple); font-weight: 700; font-size: 1.05rem;
  font-family: var(--font-display); margin-top: .15rem;
}
.phone-card-num:hover { color: var(--gold-deep); }
.contact-address-block {
  margin-bottom: 1.25rem; padding: 1rem 1.1rem;
  background: rgba(40,40,100,.04); border-radius: var(--radius); border: 1px solid var(--line);
}
.contact-address-block p { margin: 0 0 .35rem; color: var(--purple); }
.text-link {
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px;
}
.map-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #eee;
  aspect-ratio: 21 / 9;
  min-height: 280px;
  isolation: isolate;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
  display: block;
  margin: 0;
  padding: 0;
}
.policy-layout {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 2rem; align-items: start;
}
.policy-lead { font-size: 1.08rem; color: var(--text); max-width: 54ch; }
.policy-list { margin-top: 1rem; }
.policy-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.policy-block {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--gold);
}
.policy-block h3 { margin-top: 0; }
.policy-block p:last-child { margin-bottom: 0; }
.policy-arco-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.15rem 0 0;
}
.policy-arco-card {
  background: rgba(40, 40, 100, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .95rem 1rem;
}
.policy-arco-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .35rem;
}
.policy-arco-card p { margin: 0; font-size: .92rem; }
.policy-highlight {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(220, 180, 40, 0.14), rgba(40, 40, 100, 0.06));
  border: 1px solid rgba(220, 180, 40, 0.35);
}
.policy-highlight p { margin: 0; color: var(--purple); }
.aside-card-accent {
  border-top: 3px solid var(--gold);
}
.aside-meta {
  display: grid; gap: .35rem;
  font-size: .92rem;
  color: var(--text);
}
.aside-meta span {
  display: block;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: .55rem;
}
.aside-meta span:first-child { margin-top: 0; }

/* Detalles vivos */
.line-card, .product-card, .cat-card, .value-card, .mv-card {
  position: relative;
}
.line-card::before, .product-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--purple));
  opacity: 0; transition: opacity var(--ease); border-radius: var(--radius) 0 0 var(--radius);
}
.line-card:hover::before, .product-card:hover::before { opacity: 1; }
.product-media img[src$=".svg"] {
  padding: 1.5rem; max-height: 220px; filter: none; object-fit: contain;
}

/* Footer — púrpura del logo */
.site-footer {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(220,180,40,.12), transparent 40%),
    linear-gradient(180deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: rgba(255,255,255,.72); padding-top: 3.25rem;
  border-top: 3px solid var(--gold);
}
.footer-top {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.25rem;
  padding-bottom: 2.5rem;
}
.footer-logo {
  height: 58px; width: auto; border-radius: var(--radius-sm);
  background: #fff; margin-bottom: .85rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.footer-brand-block p { max-width: 30ch; margin: 0 0 .65rem; }
.footer-tag {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold) !important;
  margin-bottom: 1.1rem !important;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.footer-col h3 {
  color: var(--gold); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .85rem;
  position: relative; padding-bottom: .45rem;
}
.footer-col h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: rgba(220,180,40,.55); border-radius: 2px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: rgba(255,255,255,.78); font-size: .95rem; }
.footer-links a:hover { color: var(--gold); }
.footer-phone-group {
  display: grid; gap: .2rem; margin-bottom: .35rem;
}
.footer-phone-group span {
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.15rem 0;
  background: rgba(0,0,0,.12);
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.45);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--gold); }
.policy-copy h3 {
  margin: 1.5rem 0 .65rem;
  font-size: 1.05rem;
}

/* Float buttons */
.float-btn {
  position: fixed; z-index: 1100; width: 54px; height: 54px;
  border-radius: 50%; border: 0; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(40, 40, 100, 0.22); cursor: pointer;
  transition: transform var(--ease), background var(--ease);
  color: #fff;
}
.float-btn:hover { transform: translateY(-2px); }
.float-top {
  left: 1.15rem; bottom: 1.35rem;
  background: var(--purple);
  border: 1px solid rgba(220, 180, 40, 0.45);
  color: var(--gold);
}
.float-top:hover { background: var(--purple-deep); color: var(--gold-light); }
.float-whatsapp {
  right: 1.15rem; bottom: 1.35rem;
  background: #25d366;
  text-decoration: none;
  animation: waPulse 2.6s ease-in-out infinite;
}
.float-whatsapp:hover { background: #1ebe57; color: #fff; animation: none; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

/* Modal cotización */
.quote-modal[hidden] { display: none !important; }
.quote-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; padding: 1rem;
}
.quote-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 28, 72, 0.55); backdrop-filter: blur(3px);
}
.quote-modal-dialog {
  position: relative; z-index: 1;
  width: min(100%, 560px); max-height: min(92vh, 820px); overflow: auto;
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid rgba(220, 180, 40, 0.35);
  box-shadow: 0 24px 60px rgba(40, 40, 100, 0.28);
  padding: 1.5rem 1.5rem 1.75rem;
}
.quote-modal-close {
  position: absolute; top: .85rem; right: .85rem;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-pill);
  padding: .35rem .8rem; font-size: .78rem; cursor: pointer; color: var(--purple);
}
.quote-modal-head { margin-bottom: 1rem; padding-right: 4rem; }
.quote-modal-head h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.quote-modal-item {
  margin: .75rem 0 0; padding: .7rem .9rem; border-radius: var(--radius-sm);
  background: rgba(220, 180, 40, 0.12); border: 1px solid rgba(220, 180, 40, 0.3);
  color: var(--purple); font-weight: 600; font-size: .92rem;
}
.quote-form { display: grid; gap: 1rem; }
.quote-form .two-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.quote-form .form-row { display: flex; flex-direction: column; gap: .4rem; }
.quote-form label {
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.quote-form input, .quote-form textarea {
  font: inherit; color: var(--purple); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .75rem .9rem; outline: none;
}
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--gold); }
body.quote-open { overflow: hidden; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .line-card:hover, .product-card:hover, .cat-card:hover { transform: none; }
  .float-whatsapp { animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .grid-3, .grid-3.symmetric, .values-grid, .cat-grid-balanced { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .home-split, .home-logistics, .about-intro, .about-quality,
  .cat-intro, .contact-layout, .cat-card, .footer-top,
  .grid-2.symmetric-pair, .policy-layout, .phone-cards {
    grid-template-columns: 1fr;
  }
  .cat-card-media { min-height: 220px; }
  .quote-form .two-cols { grid-template-columns: 1fr; }
  .map-embed {
    aspect-ratio: 4 / 3;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }
  .site-logo { max-height: 62px; }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
  }
}

@media (max-width: 820px) {
  :root { --header-h: 72px; }
  body { overflow-x: hidden; }
  .header-inner {
    width: min(100% - 1.25rem, var(--container));
    min-height: var(--header-h);
    gap: .75rem;
  }
  .site-logo { max-height: 48px; }
  .page-hero {
    min-height: clamp(220px, 32vh, 320px);
    padding: 3.25rem 0 2.5rem;
  }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto; background: rgba(255,255,255,.98);
    flex-direction: column; align-items: stretch; gap: .5rem;
    padding: 1rem 1.25rem 1.35rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: var(--ease); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    z-index: 999;
  }
  .primary-nav.is-open {
    transform: none; opacity: 1; pointer-events: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; margin-top: .25rem;
  }
  .has-submenu.is-open > .submenu { display: block; }
  .header-cta { width: 100%; text-align: center; }

  /* Hero compacto en móvil: cabe en un viewport */
  .hero {
    min-height: 0;
    align-items: flex-start;
    background-position: 62% center;
  }
  .hero-grid {
    width: min(100% - 1.25rem, var(--container));
    padding: 1.5rem 0 1.75rem;
    gap: 1.1rem;
  }
  .hero-kicker { margin-bottom: .65rem; font-size: .72rem; }
  .hero h1 {
    font-size: clamp(1.55rem, 7.2vw, 2.05rem);
    max-width: none;
    margin-bottom: .75rem;
  }
  .hero-main > p {
    font-size: .98rem;
    line-height: 1.55;
    margin: 0 0 1.1rem;
  }
  .hero .btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
  }
  .hero .btn { width: 100%; }
  .hero-stat-card { padding: .95rem .9rem; }
  .hero-stat-card strong { font-size: 1.05rem; }
  .hero-stat-card h3 { font-size: .92rem; }
  .hero-stat-card p { font-size: .82rem; line-height: 1.4; }
  .hero-stat-icon { width: 34px; height: 34px; border-radius: 10px; margin-bottom: .55rem; }

  .section { padding: 3.25rem 0; }
  .section-title { font-size: clamp(1.45rem, 5.5vw, 1.85rem); }
  .section-lead { font-size: 1rem; }
  .container { width: min(100% - 1.25rem, var(--container)); }
  .map-embed {
    aspect-ratio: 1 / 1;
    min-height: 240px;
    border-radius: 14px;
  }
  .phone-cards {
    grid-template-columns: 1fr;
  }
  .cta-band {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-band .btn-group {
    width: 100%;
    flex-direction: column;
  }
  .cta-band .btn { width: 100%; }
  .section-head-row {
    flex-direction: column;
    align-items: stretch;
  }
  .section-head-row .btn { width: 100%; text-align: center; }
  .home-split-media img,
  .home-logistics-media img {
    aspect-ratio: 16 / 10;
  }
  .services-split {
    justify-items: center;
  }
  .services-media {
    order: -1;
    padding: .25rem .25rem 1.15rem;
  }
  .phone-frame {
    width: min(78vw, 280px);
    border-radius: 28px;
    padding: 10px 9px 14px;
    border-width: 3px;
  }
  .phone-frame::before {
    top: 12px;
    width: 56px;
    height: 7px;
  }
  .services-video {
    border-radius: 18px;
    max-height: min(460px, 58vh);
  }
  .float-btn {
    width: 48px; height: 48px;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }
  .float-top { left: max(.85rem, env(safe-area-inset-left, 0px)); }
  .float-whatsapp { right: max(.85rem, env(safe-area-inset-right, 0px)); }
  .quote-modal { padding: .75rem; align-items: end; }
  .quote-modal-dialog {
    width: 100%;
    max-height: min(92dvh, 820px);
    padding: 1.15rem 1.1rem 1.35rem;
    border-radius: 18px 18px 12px 12px;
  }
  .quote-form .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .quote-form .btn { width: 100%; }

  /* Footer centrado en móvil */
  .site-footer { text-align: center; padding-top: 2.75rem; }
  .footer-top {
    justify-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
  }
  .footer-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-logo { margin-inline: auto; }
  .footer-brand-block p {
    max-width: 34ch;
    margin-inline: auto;
  }
  .footer-cols {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
    align-items: start;
    gap: 1rem 1.25rem;
  }
  .footer-col {
    width: 100%;
    max-width: none;
  }
  /* Teléfonos a ancho completo debajo de Productos | Empresa */
  .footer-col:nth-child(3) {
    grid-column: 1 / -1;
  }
  .footer-col h3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
  }
  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-links {
    justify-items: center;
  }
  .footer-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem 1rem;
    align-items: start;
  }
  .footer-contact > li:last-child {
    grid-column: 1 / -1;
  }
  .footer-phone-group {
    justify-items: center;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .35rem;
  }
}

@media (max-width: 640px) {
  .grid-3, .grid-3.symmetric, .grid-2, .values-grid, .contact-form,
  .cat-grid-balanced, .policy-arco-grid {
    grid-template-columns: 1fr;
  }
  .policy-aside { position: static; }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: .7rem;
  }
  .hero-stat-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(28, 28, 72, 0.72) 0%, rgba(28, 28, 72, 0.55) 45%, rgba(20, 20, 30, 0.72) 100%);
  }
  .line-card, .product-card { border-radius: 14px; }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1rem .85rem;
  }
  .footer-col:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: .35rem;
  }
  .footer-col h3 { font-size: .72rem; }
  .footer-links a { font-size: .88rem; }
  .footer-contact {
    grid-template-columns: 1fr 1fr;
    gap: .75rem .65rem;
  }
  .footer-phone-group span { font-size: .62rem; }
  .footer-phone-group a { font-size: .84rem; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.45rem; }
  .hero-main > p { font-size: .94rem; }
  .btn { padding: .8rem 1.1rem; font-size: .74rem; }
}
