/* ====== ÁRIDOS CAPA — landing styles ====== */
:root {
  --azul: #0056A0;
  --azul-dark: #003d75;
  --azul-soft: #1c6fba;
  --verde: #2E7D32;
  --verde-soft: #e8f3ea;
  --amarillo: #FFD600;
  --amarillo-dark: #e6c200;
  --naranja: #FF9800;
  --rojo: #D32F2F;
  --beige: #F5E6C8;
  --beige-2: #fdf8ec;
  --bg: #ffffff;
  --ink: #1b1f24;
  --ink-2: #4a525c;
  --line: #e6e8ec;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 86, 160, 0.10);
  --shadow-lg: 0 16px 40px rgba(0, 86, 160, 0.16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 .35em; line-height: 1.15; letter-spacing: -0.01em; color: var(--azul); }
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-weight: 700; font-size: 1.25rem; }
h4 { font-weight: 700; font-size: 1rem; }
p { margin: 0 0 .8em; color: var(--ink-2); }

.accent-yellow { color: var(--amarillo); }

/* ====== BOTONES ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-weight: 700;
  border-radius: 999px;
  padding: .85em 1.3em;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }

.btn--wa { background: var(--amarillo); color: #1b1b1b; }
.btn--wa:hover { background: var(--amarillo-dark); }
.btn--blue { background: var(--azul); color: #fff; }
.btn--blue:hover { background: var(--azul-dark); }
.btn--green { background: var(--verde); color: #fff; }
.btn--sm { padding: .55em 1em; font-size: .92rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn--xl { padding: 1.15em 1.9em; font-size: 1.2rem; }

/* ====== NAVBAR ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 3px solid var(--azul);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.nav__brand-text {
  font-weight: 800;
  color: var(--azul);
  letter-spacing: -0.01em;
}
.nav__brand-text strong { color: var(--azul-dark); }
.nav__links {
  display: none;
  margin-left: auto;
  gap: 1.4rem;
}
.nav__links a {
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  position: relative;
}
.nav__links a:hover { color: var(--azul); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--amarillo);
  transform: scaleX(0);
  transition: transform .2s ease;
  transform-origin: left;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: auto; }
@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}

/* ====== HERO ====== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(255,214,0,0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(46,125,50,0.15), transparent 60%),
    linear-gradient(135deg, var(--azul) 0%, var(--azul-dark) 60%, #002a55 100%);
  color: #fff;
  padding: 3.5rem 1rem 4rem;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('assets/capa-poster-referencia.jpeg');
  background-size: cover;
  background-position: right center;
  opacity: 0.06;
  filter: saturate(0.8) contrast(0.9);
  pointer-events: none;
  mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
}
.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .35em .9em;
  border-radius: 999px;
  background: rgba(255,214,0,0.18);
  color: var(--amarillo);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255,214,0,0.4);
}
.hero__title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  color: #fff;
  margin: 0 0 .6em;
}
.hero__title .accent-yellow {
  background: linear-gradient(120deg, var(--amarillo), #ffe45e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.4rem;
}
.hero__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  color: rgba(255,255,255,0.92);
  font-size: .95rem;
}
.hero__bullets li {
  background: rgba(255,255,255,0.10);
  padding: .45em .9em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero__bullets strong { color: var(--amarillo); }

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.5rem 0;
}
.hero__logo {
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.35));
  max-width: min(380px, 88%);
}
.hero__zagzag {
  position: absolute;
  bottom: 0; left: 15%; right: 15%;
  height: 12px;
  background:
    repeating-linear-gradient(135deg,
      var(--rojo) 0 12px,
      var(--beige) 12px 24px);
  border-radius: 4px;
  opacity: .85;
}

@media (min-width: 880px) {
  .hero { padding: 5rem 1rem 5.5rem; }
  .hero__inner { grid-template-columns: 1.2fr .8fr; }
  .hero__art { margin-top: 0; padding: 0; }
  .hero__logo { max-width: 360px; }
  .hero__zagzag { left: 8%; right: 8%; }
}

/* ====== SECCIONES ====== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1rem;
}
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.section__head p { font-size: 1.05rem; }

.section--calc {
  background: linear-gradient(180deg, var(--beige-2) 0%, var(--beige) 100%);
  max-width: none;
  padding: 3.5rem 1rem;
}
.section--calc > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--calc .section__head h2 { color: var(--azul); }
.section--pillars {
  background: var(--azul);
  max-width: none;
  padding: 3rem 1rem;
}
.section--why {
  background: var(--beige-2);
  max-width: none;
  padding: 3.5rem 1rem;
}
.section--why > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* ====== PRODUCTOS ====== */
.grid-products {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }

.card-product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.4rem;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.card-product::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--azul), var(--verde));
}
.card-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--azul-soft);
}
.card-product h3 { color: var(--azul); }
.card-product p { margin: .3rem 0; font-size: .95rem; }
.card-product__chip {
  display: inline-block;
  background: var(--verde-soft);
  color: var(--verde);
  font-weight: 700;
  font-size: .75rem;
  padding: .25em .7em;
  border-radius: 999px;
  margin-bottom: .7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.card-product__chip--star {
  background: var(--amarillo);
  color: #1b1b1b;
}
.card-product__price {
  margin-top: .7rem !important;
  font-size: .95rem;
  color: var(--ink-2);
}
.card-product__price strong {
  color: var(--azul);
  font-size: 1.25rem;
  font-weight: 800;
}
.card-product--featured {
  background: linear-gradient(160deg, #fff 0%, #fff7d6 100%);
  border-color: var(--amarillo);
}
.card-product--featured::before {
  background: linear-gradient(90deg, var(--amarillo), var(--naranja));
}
.card-product__cta {
  display: inline-block;
  margin-top: .5rem;
  color: var(--azul);
  font-weight: 700;
}
.card-product__cta:hover { color: var(--azul-dark); text-decoration: underline; }

/* ====== CALCULADORA ====== */
.calc {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .calc { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.calc__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .calc__grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > span {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.field small {
  color: var(--ink-2);
  font-size: .8rem;
}
.field select,
.field input[type=number] {
  font: inherit;
  font-size: 1rem;
  padding: .75em .9em;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(0,86,160,.18);
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--rojo); }

.calc__out {
  background: linear-gradient(160deg, #f3f8fc 0%, #e8f3ea 100%);
  border: 1.5px solid var(--azul-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .5rem 0;
  border-bottom: 1px dashed rgba(0,86,160,0.18);
  color: var(--ink);
}
.calc__row:last-of-type { border-bottom: 0; }
.calc__row strong { color: var(--azul); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.calc__row em {
  font-style: normal;
  color: var(--verde);
  font-weight: 700;
  margin-left: .4em;
}
.calc__row--total {
  border-top: 2px solid var(--azul);
  border-bottom: 0;
  padding-top: .8rem;
  margin-top: .3rem;
}
.calc__row--total strong {
  font-size: 1.7rem;
  color: var(--azul);
  font-weight: 900;
}
.calc__cta { margin-top: .3rem; }
.calc__disclaimer {
  margin: .2rem 0 0;
  font-size: .82rem;
  color: var(--ink-2);
  text-align: center;
}

/* ====== PILARES ====== */
.pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: var(--max);
  margin: 0 auto;
}
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(2px);
}
.pillar h3 { color: var(--amarillo); font-size: 1.05rem; letter-spacing: 0.03em; }
.pillar p { color: rgba(255,255,255,0.88); margin: 0; }
.pillar__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin: 0 auto 1rem;
}
.pillar__icon--shield { background: var(--verde); color: #fff; }
.pillar__icon--truck  { background: var(--amarillo); color: var(--azul-dark); }
.pillar__icon--hand   { background: var(--rojo); color: #fff; }

/* ====== COBERTURA ====== */
.coverage {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) { .coverage { grid-template-columns: 1fr 1fr; } }
.coverage__map {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.coverage__map svg { width: 100%; height: auto; }
.coverage__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}
.coverage__list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1rem;
  font-weight: 600;
  color: var(--ink);
}
.dotdot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dotdot--blue { background: var(--azul); box-shadow: 0 0 0 3px rgba(0,86,160,0.18); }

/* ====== POR QUÉ ====== */
.why {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .why { grid-template-columns: repeat(2, 1fr); } /* 2 cols es mejor lectura */ }
.why li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amarillo);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  align-items: center;
}
.why__n {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--azul);
  color: var(--amarillo);
  font-weight: 900;
  font-size: 1.3rem;
}
.why li div { color: var(--ink); font-size: 1rem; }
.why li strong { color: var(--azul); }

/* ====== CTA FINAL ====== */
.cta-final {
  background:
    radial-gradient(900px 400px at 80% 20%, rgba(255,214,0,0.22), transparent 60%),
    linear-gradient(135deg, var(--azul) 0%, var(--azul-dark) 100%);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}
.cta-final__inner {
  max-width: 720px;
  margin: 0 auto;
}
.cta-final h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-final p { color: rgba(255,255,255,0.92); font-size: 1.1rem; margin-bottom: 1.6rem; }
.cta-final__phone {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--amarillo);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* ====== FOOTER ====== */
.footer {
  background: #0d1822;
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 1rem 1rem;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer__inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer__brand strong { color: #fff; font-size: 1.15rem; }
.footer__brand p { margin: .15rem 0 0; color: var(--amarillo); font-weight: 600; font-size: .9rem; }
.footer__col h4 { color: var(--amarillo); margin-bottom: .5rem; }
.footer__col p { color: rgba(255,255,255,0.78); margin: .25rem 0; font-size: .95rem; }
.footer__col a { color: var(--amarillo); }
.footer__col a:hover { text-decoration: underline; }
.footer__bottom {
  max-width: var(--max);
  margin: 1.8rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.footer__bottom p { color: rgba(255,255,255,0.6); margin: 0; font-size: .85rem; }
.footer__credit { margin-top: .35rem !important; color: rgba(255,255,255,0.45) !important; font-size: .8rem !important; }
.footer__credit a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color .2s ease; }
.footer__credit a:hover { color: var(--amarillo); text-decoration: underline; }

/* ====== FAB WhatsApp ====== */
.fab-wa {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 60px; height: 60px;
  background: var(--verde);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 60;
  transition: transform .2s ease;
  animation: pulse-wa 2.4s ease-in-out infinite;
}
.fab-wa:hover { transform: scale(1.08); }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(46,125,50,0.5); }
  50%     { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 14px rgba(46,125,50,0); }
}
@media (min-width: 880px) {
  .fab-wa { display: none; } /* desktop ya tiene nav__cta */
}

/* ====== Utilidades ====== */
@media (max-width: 640px) {
  .hero__ctas .btn { width: 100%; }

  /* === Cotizador mobile: responsividad === */
  .section--calc { padding: 2.2rem 0.6rem; }

  .calc {
    padding: 1rem 0.7rem;
    gap: 1rem;
    min-width: 0;
    overflow: hidden;
  }

  .calc__grid,
  .field {
    min-width: 0;
  }

  .field select,
  .field input[type=number] {
    width: 100%;
    min-width: 0;
  }

  .calc__out {
    padding: 1rem 0.8rem;
    gap: 0.6rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .calc__row {
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.45rem 0;
  }
  .calc__row > span {
    min-width: 0;
    flex: 1 1 auto;
  }
  .calc__row strong {
    font-size: 1rem;
    text-align: right;
    min-width: 0;
    flex: 0 1 auto;
    overflow-wrap: anywhere;
  }

  .calc__row--total {
    padding-top: 0.6rem;
    margin-top: 0.2rem;
  }
  .calc__row--total strong {
    font-size: 1.35rem;
  }

  .calc__cta {
    white-space: normal;
    text-align: center;
    padding: 0.85rem 0.7rem;
    font-size: 0.95rem;
    line-height: 1.3;
    width: 100%;
    min-width: 0;
  }

  .calc__disclaimer {
    font-size: 0.75rem;
    padding: 0 0.4rem;
    line-height: 1.4;
  }

  .fab-wa {
    display: none;
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: 12px;
  }
  .fab-wa svg {
    width: 26px;
    height: 26px;
  }
}
