/* =========================================================
   PrimeStar Distribution — estilos
   ========================================================= */
:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --navy-3: #1c4277;
  --amber: #f2a900;
  --amber-2: #d99400;
  --ink: #1b2533;
  --muted: #5b6878;
  --line: #dfe5ec;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --ok: #0f7b4a;
  --err: #b42318;
  --wa: #25d366;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 31, 58, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Barlow Condensed", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-3); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: .2px; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-2); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-wa { background: var(--wa); color: #08361b; }
.btn-wa:hover { filter: brightness(.95); }
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.wa-ico { width: 20px; height: 20px; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links > a:not(.btn):hover { color: var(--navy-3); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang-switch button { background: #fff; border: 0; padding: .35em .7em; font-weight: 600; font-size: .82rem; cursor: pointer; color: var(--muted); font-family: inherit; }
.lang-switch button.active { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--navy-3), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 84px 0 92px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.lead { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { background: #fff; color: var(--ink); border-radius: 14px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); border-top: 5px solid var(--amber); }
.hero-card-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; }
.hero-card ol { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.hero-card li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.num { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--amber); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.hero-card-foot { color: var(--muted); font-size: .93rem; margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }

.eyebrow { text-transform: uppercase; letter-spacing: 1.6px; font-size: .78rem; font-weight: 700; color: var(--amber-2); margin-bottom: 10px; }
.eyebrow.light { color: var(--amber); }

/* ---------- Franja ---------- */
.strip { background: var(--amber); color: var(--navy); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 18px 20px; }
.strip-grid div { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.strip-grid svg { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: #fff; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: inherit; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 680px; }

/* ---------- Divisiones ---------- */
.div-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.div-grid.small { grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.div-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.div-card:hover { border-color: var(--navy-3); box-shadow: var(--shadow); transform: translateY(-2px); }
.div-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.div-grid.small .div-card { padding: 18px; align-items: flex-start; }
.div-grid.small .div-card h3 { font-size: .95rem; margin: 0; }
.div-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--navy); color: var(--amber); display: grid; place-items: center; margin-bottom: 16px; }
.div-icon svg { width: 26px; height: 26px; }
.div-icon.big { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 14px; }
.div-icon.big svg { width: 38px; height: 38px; }
.div-more { color: var(--navy-3); font-weight: 600; font-size: .92rem; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); position: relative; }
.step-n { font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--amber); line-height: 1; display: block; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Por qué ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; margin-top: 36px; }
.why { border-left: 3px solid var(--amber); padding-left: 18px; }
.why p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Industrias ---------- */
.ind-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ind-grid li { border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 20px; font-weight: 600; background: rgba(255,255,255,.04); }
.ind-grid li::before { content: ""; display: block; width: 28px; height: 3px; background: var(--amber); margin-bottom: 12px; }

/* ---------- Logística ---------- */
.log-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.log { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; }
.log p { color: var(--muted); font-size: .95rem; margin: 0; }
.docs { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }

/* ---------- Formulario ---------- */
.quote-grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: 48px; align-items: start; }
.contact-box { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.contact-box-title { font-weight: 700; margin: 0; }
.contact-mail { font-weight: 600; word-break: break-all; }
.quote-form { background: #fff; border-radius: 14px; padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.quote-form input, .quote-form select, .quote-form textarea { font: inherit; font-weight: 400; font-size: .97rem; padding: .7em .8em; border: 1px solid #c9d3de; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--navy-3); outline-offset: 0; border-color: var(--navy-3); }
.quote-form input[type="file"] { padding: .55em; background: var(--bg-alt); }
.quote-form small { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-status.success { color: var(--ok); }
.form-status.error { color: var(--err); }
.privacy { color: var(--muted); font-size: .84rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--amber-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-inner p { color: rgba(255,255,255,.82); max-width: 620px; margin: 0; }
.cta-inner .hero-actions { margin-top: 0; }

/* ---------- Página de división ---------- */
.dp-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0 64px; }
.dp-back { color: rgba(255,255,255,.75); text-decoration: none; font-size: .92rem; display: inline-block; margin-bottom: 24px; }
.dp-back:hover { color: #fff; }
.dp-head { display: flex; gap: 24px; align-items: flex-start; }
.dp-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.dp-head .div-icon { margin: 6px 0 0; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.cat { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--amber); }
.cat p { color: var(--muted); font-size: .95rem; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--navy); color: #fff; padding: .45em .95em; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.chips-outline li { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.note { color: var(--muted); font-size: .87rem; margin-top: 14px; }

/* ---------- Pie ---------- */
.site-footer { background: #071528; color: rgba(255,255,255,.78); padding: 56px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: .95rem; text-transform: uppercase; letter-spacing: 1.2px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.foot-tag { max-width: 340px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .84rem; }
.foot-bottom p { margin: 0 0 8px; }
.foot-legal { color: rgba(255,255,255,.5); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 60; transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1280px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .lang-switch { margin: 16px 0; align-self: flex-start; }
  .div-grid.small { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid, .quote-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .div-grid, .why-grid, .cat-grid, .log-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .div-grid, .why-grid, .cat-grid, .log-grid, .steps, .grid-2, .grid-3, .checks, .footer-grid { grid-template-columns: 1fr; }
  .div-grid.small { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr; gap: 10px; }
  .quote-form { padding: 20px; }
  .dp-head { flex-direction: column; gap: 16px; }
  .hero-actions .btn { width: 100%; }
  .brand img { height: 38px; }
}
.req { color: var(--err); font-weight: 700; }

/* ---------- Selector de idiomas ---------- */
.lang-wrap { display: inline-flex; align-items: center; gap: 8px; }
.lang-more { position: relative; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; height: 30px; cursor: pointer; }
.lang-more svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.lang-more select { border: 0; background: transparent; font: inherit; font-size: .82rem; color: var(--muted); cursor: pointer; max-width: 120px; padding: 0; }
.lang-more select:focus { outline: none; }
@media (max-width: 1280px) { .lang-wrap { margin: 16px 0; align-self: flex-start; } .lang-wrap .lang-switch { margin: 0; } }

/* Ocultar la barra superior de Google Translate */
body { top: 0 !important; }
.goog-te-banner-frame, .skiptranslate > iframe, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.nav-links > a, .btn { white-space: nowrap; }

/* ---------- Datos ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 20px; }
.stats-grid div { display: flex; flex-direction: column; align-items: center; text-align: center; border-right: 1px solid var(--line); padding: 0 12px; }
.stats-grid div:last-child { border-right: 0; }
.stats-grid strong { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--navy); }
.stats-grid span { color: var(--muted); font-size: .9rem; font-weight: 500; margin-top: 6px; }

/* ---------- Muro de marcas ---------- */
.brands-section { background: var(--bg-alt); }
.brand-wall { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-wall li { background: #fff; border: 1px solid var(--line); border-radius: 8px; height: 72px; display: grid; place-items: center; text-align: center; padding: 0 10px; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: .3px; color: #3d4b5c; text-transform: uppercase; transition: color .15s, border-color .15s; }
.brand-wall li:hover { color: var(--navy); border-color: var(--navy-3); }
@media (max-width: 900px) { .brand-wall { grid-template-columns: repeat(3, 1fr); } .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; } .stats-grid div:nth-child(2) { border-right: 0; } }
@media (max-width: 600px) { .brand-wall { grid-template-columns: 1fr 1fr; } .brand-wall li { font-size: 1rem; height: 60px; } }

/* ---------- Marcas agrupadas ---------- */
.brand-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.brand-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.brand-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--amber-2); margin: 0 0 14px; }
.brand-group ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.brand-group li { display: grid; place-items: center; text-align: center; min-height: 46px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--display); font-weight: 700; font-size: .98rem; letter-spacing: .2px; color: #3d4b5c; text-transform: uppercase; line-height: 1.1; }
@media (max-width: 900px) { .brand-groups { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .brand-group ul { grid-template-columns: repeat(3, 1fr); } .brand-group li { font-size: .85rem; } }
