/* Kael Ingenieros — estilos del sitio público */
:root {
  --navy: #00259e;
  --navy-900: #00176b;
  --navy-050: #eef2fb;
  --mint: #78efdb;
  --mint-600: #3fbfa9;
  --ink: #1a1f36;
  --muted: #5b6275;
  --line: #dfe4ef;
  --white: #fff;
  --wa: #1fae5b;
  --f-display: "Marcellus", "Times New Roman", serif;
  --f-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0, 23, 107, .06), 0 8px 24px rgba(0, 23, 107, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--mint); color: var(--navy-900); padding: .6rem 1rem; }
.skip:focus { left: 1rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.4rem;
  font: 500 1rem/1.2 var(--f-body); text-decoration: none; border: 1.5px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s; }
.btn--lg { min-height: 54px; padding-inline: 1.9rem; font-size: 1.08rem; }
.btn--mint { background: var(--mint); color: var(--navy-900); }
.btn--mint:hover { background: #a3f5e7; }
.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-900); }
.btn--line-light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--line-light:hover { background: rgba(255,255,255,.12); }
.btn--line-mint { color: #fff; border-color: var(--mint); background: rgba(0,0,0,.15); }
.btn--line-mint:hover { background: var(--mint); color: var(--navy-900); }
.btn--ghost-navy { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn--ghost-navy:hover { background: var(--navy); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178a48; }
.btn--wa::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3a13 13 0 0 0-11.2 19.6L3 29l6.6-1.7A13 13 0 1 0 16 3zm5.9 15.7c-.3-.2-1.9-1-2.2-1s-.5-.2-.7.2-.8 1-1 1.2-.4.2-.7 0a8.8 8.8 0 0 1-4.4-3.8c-.3-.6.3-.5.9-1.7a.6.6 0 0 0 0-.5l-1-2.4c-.3-.6-.5-.5-.7-.5h-.6a1.2 1.2 0 0 0-.9.4 3.6 3.6 0 0 0-1.1 2.7 6.3 6.3 0 0 0 1.3 3.3 14.4 14.4 0 0 0 5.5 4.9c2 .9 2.8.9 3.8.8a3.3 3.3 0 0 0 2.2-1.5 2.7 2.7 0 0 0 .2-1.5c-.1-.2-.3-.3-.6-.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3a13 13 0 0 0-11.2 19.6L3 29l6.6-1.7A13 13 0 1 0 16 3zm5.9 15.7c-.3-.2-1.9-1-2.2-1s-.5-.2-.7.2-.8 1-1 1.2-.4.2-.7 0a8.8 8.8 0 0 1-4.4-3.8c-.3-.6.3-.5.9-1.7a.6.6 0 0 0 0-.5l-1-2.4c-.3-.6-.5-.5-.7-.5h-.6a1.2 1.2 0 0 0-.9.4 3.6 3.6 0 0 0-1.1 2.7 6.3 6.3 0 0 0 1.3 3.3 14.4 14.4 0 0 0 5.5 4.9c2 .9 2.8.9 3.8.8a3.3 3.3 0 0 0 2.2-1.5 2.7 2.7 0 0 0 .2-1.5c-.1-.2-.3-.3-.6-.4z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Encabezado ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--navy); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.brand img { width: 180px; height: auto; }
.menu ul { display: flex; gap: 2.4rem; list-style: none; margin: 0; padding: 0; }
.menu a { color: #fff; text-decoration: none; font-size: 1.05rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--mint); border-bottom-color: var(--mint); }
.menu-btn { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.menu-btn span { display: block; height: 2px; margin: 5px 0; background: #fff; transition: transform .2s, opacity .2s; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .brand img { width: 150px; }
  .topbar__in { min-height: 74px; }
  .menu { position: absolute; inset: 74px 0 auto; background: var(--navy-900); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .menu.is-open { max-height: 420px; }
  .menu ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .menu a { display: block; padding: .9rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.kicker { margin: 0 0 .6rem; color: var(--navy); font-weight: 600; font-size: 1.1rem; }
.h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 2.9rem); color: var(--ink); margin-bottom: 1.2rem; letter-spacing: -.005em; }
.h2--sm { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section__head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section__head--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; text-align: left; }
.section__head--split > div { max-width: 640px; }
.section__head--split p { margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-900); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(3, 12, 45, .86) 0%, rgba(3, 12, 45, .72) 55%, rgba(3, 12, 45, .55) 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem; align-items: end; min-height: clamp(560px, 78vh, 680px); }
.hero__copy { align-self: center; max-width: 620px; padding: 4rem 0; }
.hero__kicker { font-weight: 600; font-size: 1.2rem; margin-bottom: .8rem; }
.hero__title { font-family: var(--f-display); font-weight: 400; color: var(--mint); font-size: clamp(2.7rem, 6.2vw, 4.6rem); line-height: 1.04; margin-bottom: 1.2rem; }
.hero__lead { font-size: 1.18rem; color: rgba(255,255,255,.9); max-width: 580px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__persona { justify-self: start; align-self: end; width: auto; height: auto; max-height: min(95%, 640px); max-width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.hero__social { position: absolute; right: clamp(1rem, 3vw, 3rem); top: 62%; list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.hero__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mint); }
.hero__social svg { width: 22px; height: 22px; fill: var(--navy-900); }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero__copy { padding: 3rem 0 1.5rem; }
  .hero__persona { max-height: 340px; justify-self: center; }
  .hero__social { top: auto; bottom: 1.2rem; left: 1.25rem; right: auto; grid-auto-flow: column; }
}

/* ---------- Esencia ---------- */
.esencia__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.esencia__grid p { color: var(--ink); max-width: 530px; font-size: 1.08rem; }
.esencia__media { position: relative; margin: 0; aspect-ratio: 1.02 / 1; }
.esencia__a, .esencia__b { position: absolute; object-fit: cover; background: var(--navy-050); }
.esencia__a { left: 0; top: 0; width: 69%; height: 100%; }
.esencia__b { right: 0; top: 10.5%; width: 61%; height: 57%; border: 6px solid #fff; }
.esencia__badge { position: absolute; right: .3%; top: 69%; width: 42.5%; display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.1rem; background: var(--mint); color: var(--navy-900); border-radius: 4px; font-size: 1rem; line-height: 1.3; }
.esencia__badge svg { flex: none; width: 52px; height: 52px; fill: var(--navy); }
.esencia__badge strong { display: block; font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
@media (max-width: 860px) { .esencia__grid { grid-template-columns: 1fr; } .esencia__media { max-width: 560px; } }
@media (max-width: 480px) { .esencia__badge { width: 52%; padding: .7rem; gap: .5rem; font-size: .88rem; } .esencia__badge svg { width: 36px; height: 36px; } .esencia__badge strong { font-size: 1.4rem; } }

/* ---------- Razones ---------- */
.razones { padding-top: 0; }
.razones__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.razones__grid p { color: var(--muted); font-size: 1.08rem; }
.bar { margin-top: 1.1rem; }
.bar__head { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .35rem; }
.bar__track { height: 8px; background: var(--navy-050); }
.bar__track i { display: block; height: 100%; width: var(--w); background: var(--navy); transform-origin: left; }
.js .bar__track i { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.js .bar.is-in .bar__track i { transform: scaleX(1); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 3.5rem; }
.stat { padding: 1.8rem 1rem; text-align: center; background: #fff; box-shadow: var(--shadow); }
.stat strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.8rem; color: var(--navy); line-height: 1; }
.stat span { display: block; margin-top: .5rem; font-weight: 500; font-size: 1.08rem; }
@media (max-width: 860px) { .razones__grid { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.servicios { background: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc { position: relative; aspect-ratio: 1.06 / 1; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: #25306a; isolation: isolate; overflow: hidden; }
.svc__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1); transition: transform .7s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .5s;
  background: linear-gradient(180deg, rgba(0, 12, 45, .25) 0%, rgba(0, 12, 45, .45) 45%, rgba(0, 12, 45, .7) 100%); }
.svc:hover .svc__img, .svc:focus-within .svc__img { transform: scale(1.1); }
.svc:hover::before, .svc:focus-within::before { opacity: .8; }
.svc__body { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.svc__tag { align-self: flex-start; margin-top: 1rem; padding: .45rem 2.4rem .45rem 1rem; background: var(--mint); color: var(--navy-900);
  font: 600 1.15rem/1.2 var(--f-body); clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%); }
.svc__body { padding: 1.4rem 1.4rem 1.6rem; }
.svc__body p { font-size: 1.02rem; margin-bottom: 1rem; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } .svc { min-height: 300px; aspect-ratio: auto; } }

/* ---------- Catálogo en inicio ---------- */
.catalogo-home { background: var(--navy-050); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.chips a { display: inline-flex; gap: .5rem; align-items: center; padding: .45rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .98rem; text-decoration: none; color: var(--ink); }
.chips a:hover { border-color: var(--navy); color: var(--navy); }
.chips span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .section__head--split { flex-direction: column; align-items: flex-start; } }

/* ---------- Tarjeta de producto ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.pcard__img { display: block; aspect-ratio: 4 / 3; background: var(--navy-050); border-bottom: 3px solid var(--mint); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.pcard__body { padding: 1rem 1rem .4rem; flex: 1; }
.pcard__ref { margin: 0 0 .3rem; font-size: .88rem; font-weight: 600; color: var(--mint-600); letter-spacing: .02em; }
.pcard__title { font: 600 1.08rem/1.35 var(--f-body); }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a:hover { color: var(--navy); text-decoration: underline; }
.pcard__price { margin: .6rem 0 0; font-weight: 700; color: var(--navy); font-size: 1.2rem; }
.pcard__price small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.pcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .8rem 1rem 1rem; }
.pcard__actions .btn { padding-inline: .6rem; min-height: 44px; font-size: .95rem; }
@media (max-width: 1024px) { .pgrid { grid-template-columns: repeat(3, 1fr); } .pgrid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .pgrid, .pgrid--3 { grid-template-columns: repeat(2, 1fr); gap: .7rem; } .pcard__actions { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .pgrid, .pgrid--3 { grid-template-columns: 1fr; } }

/* ---------- Clientes ---------- */
.marquee { --gap: 1.2rem; --speed: 38s; display: flex; gap: var(--gap); overflow: hidden; padding: 1rem 0 1.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; flex-shrink: 0; gap: var(--gap); min-width: 100%; justify-content: space-around;
  list-style: none; margin: 0; padding: 0; animation: marquee var(--speed) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; display: grid; place-items: center; width: 220px; height: 150px; padding: .5rem;
  background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); transition: transform .3s; }
.marquee__item:hover { transform: translateY(-4px); }
.marquee__item img { width: 100%; height: 100%; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
@media (max-width: 600px) { .marquee { --speed: 28s; --gap: .8rem; } .marquee__item { width: 150px; height: 110px; padding: .6rem; } }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee-wrap { position: relative; }
.marquee__toggle { position: absolute; right: 0; bottom: -2.6rem; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem;
  font: 500 .9rem var(--f-body); color: var(--navy); background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.marquee__toggle:hover { border-color: var(--navy); }
.marquee__toggle svg { width: 14px; height: 14px; fill: currentColor; }
/* Con "reducir movimiento" activado en el sistema el slider sigue andando, pero más lento
   (la regla global lo detendría; esta la reemplaza solo para el slider). */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: marquee 90s linear infinite !important; }
  .marquee.is-paused .marquee__track, .marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused !important; }
}

/* ---------- Proyectos ---------- */
.proyectos { padding-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 205px); gap: 1rem; }
.gallery__item { margin: 0; overflow: hidden; border-radius: 10px; background: var(--navy-050); box-shadow: var(--shadow); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.gallery__item:hover img { transform: scale(1.1); }
.g1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.g2 { grid-column: 3; grid-row: 1; }
.g3 { grid-column: 4; grid-row: 1; }
.g4 { grid-column: 3 / span 2; grid-row: 2 / span 2; }
.g5 { grid-column: 1; grid-row: 3; }
.g6 { grid-column: 2; grid-row: 3; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: .6rem; }
  .gallery__item { grid-column: auto; grid-row: auto; }
  .g1, .g4 { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Contacto ---------- */
.contacto { background: var(--navy-050); }
.contacto__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: stretch; }
.contacto__form p { color: var(--muted); font-size: 1.08rem; }
.contacto__map { min-height: 420px; background: #e5e3df; }
.contacto__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.contacto__map { position: relative; }
.contacto__route { position: absolute; left: 12px; bottom: 12px; padding: .65rem 1rem; background: var(--navy); color: #fff;
  font-weight: 500; text-decoration: none; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.contacto__route:hover { background: var(--navy-900); }
.contacto__narrow { max-width: 760px; }
.contacto--solo { padding-top: 3.5rem; }
@media (max-width: 860px) { .contacto__grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: 1rem; font-weight: 500; }
.form small { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea { width: 100%; padding: .75rem .85rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c7cfe2; border-radius: var(--radius); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: 2px solid rgba(0, 37, 158, .15); }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: .15rem; flex: none; }
.form .btn { justify-self: start; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

.flash-wrap { padding-top: 1rem; }
.flash { margin: 0 0 .5rem; padding: .8rem 1rem; border-left: 4px solid; background: #fff; }
.flash--error { border-color: #c62828; background: #fdecec; }
.flash--ok { border-color: var(--wa); background: #e8f7ee; }

/* ---------- Encabezado de páginas internas ---------- */
.pagehead { background: var(--navy); color: #fff; padding: 2.2rem 0 3rem; }
.pagehead--slim { padding: 1rem 0; }
.pagehead__title { font-family: var(--f-display); font-weight: 400; color: var(--mint); font-size: clamp(2.1rem, 5vw, 3.2rem); margin: .8rem 0 .6rem; }
.pagehead__lead { max-width: 680px; color: rgba(255,255,255,.85); margin: 0; font-size: 1.12rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { color: rgba(255,255,255,.8); }
.crumbs a:hover { color: var(--mint); }
.crumbs span { color: #fff; }

/* ---------- Catálogo ---------- */
.catalogo { padding-top: 2.5rem; }
.catalogo__grid { display: grid; grid-template-columns: 280px 1fr; gap: 2.2rem; align-items: start; }
.filters { position: sticky; top: 106px; }
.search { display: grid; gap: .5rem; margin-bottom: 1.6rem; }
.search input { flex: 1; min-width: 0; padding: .7rem .8rem; font: inherit; font-size: 1rem; border: 1px solid #c7cfe2; border-radius: var(--radius); }
.search .btn { padding-inline: .9rem; }
.filters__title { font: 600 1.1rem var(--f-body); margin-bottom: .6rem; }
.filters__list { list-style: none; margin: 0 0 1.6rem; padding: 0; border-top: 1px solid var(--line); }
.filters__list a { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 1.02rem; }
.filters__list a:hover { color: var(--navy); }
.filters__list a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--mint); padding-left: .7rem; }
.filters__list span { color: var(--muted); font-size: .9rem; }
.filters__help { padding: 1.2rem; background: var(--navy-050); font-size: 1rem; }
.filters__help .btn { width: 100%; }
.results { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.pager a { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { padding: 3rem 2rem; text-align: center; background: var(--navy-050); }
.empty h2 { font: 600 1.35rem var(--f-body); margin-bottom: .6rem; }
@media (max-width: 900px) { .catalogo__grid { grid-template-columns: 1fr; } .filters { position: static; }
  .filters__list { display: flex; gap: .4rem; overflow-x: auto; border: 0; padding-bottom: .4rem; }
  .filters__list a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; }
  .filters__list a[aria-current="page"] { box-shadow: none; background: var(--navy); color: #fff; padding-left: .8rem; }
  .filters__list a[aria-current="page"] span { color: var(--mint); }
  .filters__help { display: none; } }

/* ---------- Ficha de producto ---------- */
.ficha { padding-top: 2.5rem; }
.ficha__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ficha__main { margin: 0; aspect-ratio: 1 / 1; background: var(--navy-050); border-bottom: 4px solid var(--mint); display: grid; place-items: center; overflow: hidden; }
.ficha__main img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ficha__thumbs { display: flex; gap: .5rem; list-style: none; margin: .7rem 0 0; padding: 0; flex-wrap: wrap; }
.ficha__thumbs button { padding: 0; border: 2px solid transparent; background: var(--navy-050); cursor: pointer; }
.ficha__thumbs button[aria-current="true"] { border-color: var(--navy); }
.ficha__thumbs img { width: 88px; height: 88px; object-fit: cover; }
.ficha__meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .7rem; font-size: .98rem; }
.ficha__ref { font-weight: 700; color: var(--navy-900); background: var(--mint); padding: .2rem .6rem; }
.ficha__cat { color: var(--navy); }
.ficha__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.ficha__desc { color: var(--muted); font-size: 1.1rem; }
.specs { margin: 1.4rem 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; font-size: 1.02rem; }
.specs dd { margin: 0; font-size: 1.08rem; }
.ficha__price { margin: 1.4rem 0; font-size: 2.3rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.ficha__price small { display: block; font-size: .92rem; font-weight: 500; color: var(--muted); margin-bottom: .3rem; }
.ficha__cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.ficha__note { margin-top: 1rem; font-size: 1rem; color: var(--muted); }
.relacionados { background: var(--navy-050); }
@media (max-width: 860px) { .ficha__grid { grid-template-columns: 1fr; } .specs div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Pie de página ---------- */
.footer { background: var(--mint); color: var(--navy-900); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 3rem; }
.footer__brand img { width: 250px; margin-bottom: 1.4rem; }
.footer__brand p { font-size: 1.02rem; max-width: 360px; }
.footer__col h2 { display: flex; flex-direction: column; gap: .5rem; font: 600 1.15rem var(--f-body); margin: 0 0 .5rem; }
.footer__col h2:not(:first-child) { margin-top: 1.6rem; }
.footer__col svg { width: 20px; height: 20px; fill: var(--navy-900); }
.footer__col p { font-size: 1rem; margin-bottom: .7rem; }
.footer a { color: var(--navy-900); }
.footer__bar { background: var(--navy); color: #fff; font-size: .92rem; padding: 1rem 0; }
.footer__bar-in { display: flex; justify-content: space-between; align-items: center; gap: .4rem 1.5rem; flex-wrap: wrap; }
.footer__bar .footer__credit a { color: var(--mint); font-weight: 600; text-decoration: none; }
.footer__bar .footer__credit a:hover { text-decoration: underline; }
@media (max-width: 700px) { .footer__bar-in { flex-direction: column; text-align: center; } }
@media (max-width: 1300px) { .footer__bar { padding-bottom: calc(1rem + 78px); } } /* espacio para el botón flotante de WhatsApp */
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { background: #178a48; }

/* ---------- Landings de servicios (AIDA) ---------- */
.svc__tag a { color: inherit; text-decoration: none; }
.footer__svc h2 { font: 600 1.15rem var(--f-body); margin: 1.4rem 0 .5rem; }
.footer__svc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .98rem; }

.lp-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-900); }
.lp-hero__bg, .lp-action__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.lp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,12,45,.92) 0%, rgba(3,12,45,.78) 55%, rgba(3,12,45,.45) 100%); }
.lp-hero__in { min-height: clamp(520px, 74vh, 660px); display: flex; flex-direction: column; justify-content: center; padding: 3rem 0 4rem; }
.lp-hero .crumbs { margin-bottom: 1.6rem; }
.lp-hero__title { font-family: var(--f-display); font-weight: 400; color: var(--mint); font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.07; max-width: 820px; margin-bottom: 1.2rem; }
.lp-hero .hero__lead { max-width: 640px; }

.lp-split__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.lp-split__grid--rev { grid-template-columns: .95fr 1.05fr; }
.lp-text { font-size: 1.1rem; color: var(--ink); }
.lp-h3 { font: 600 1.15rem var(--f-body); color: var(--navy-900); margin: 1.6rem 0 .8rem; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.4rem; }
.lp-checks li { position: relative; padding-left: 1.9rem; font-size: 1.02rem; }
.lp-checks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--mint)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5.1-5.1 1.1 1.1z' fill='%2300176b'/%3E%3C/svg%3E") center/80% no-repeat; }
.lp-figure { margin: 0; aspect-ratio: 8 / 9; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow); background: var(--navy-050); }
.lp-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.lp-figure:hover img { transform: scale(1.06); }

.lp-desire { background: var(--navy-050); }
.lp-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.lp-benefit { background: #fff; padding: 1.1rem 1.2rem; border-top: 3px solid var(--mint); box-shadow: var(--shadow); }
.lp-benefit h3 { font: 600 1.05rem var(--f-body); color: var(--navy-900); margin-bottom: .4rem; }
.lp-benefit p { margin: 0; font-size: .98rem; color: var(--muted); }
.lp-steps__title { text-align: center; margin-top: 4rem; }
.lp-steps { list-style: none; counter-reset: paso; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lp-steps li { counter-increment: paso; background: #fff; padding: 1.3rem 1.2rem; border-radius: 8px; box-shadow: var(--shadow); display: grid; gap: .4rem; }
.lp-steps li::before { content: counter(paso); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy); color: #fff; font: 400 1.25rem var(--f-display); }
.lp-steps b { font-size: 1.05rem; color: var(--navy-900); }
.lp-steps span { color: var(--muted); font-size: .97rem; }
.lp-proof { text-align: center; max-width: 760px; margin: 2.4rem auto 0; font-size: 1.05rem; }

.lp-action { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.lp-action::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,23,107,.94), rgba(0,23,107,.82)); }
.lp-action__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lp-action__title { font-family: var(--f-display); font-weight: 400; color: var(--mint); font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; margin-bottom: 1rem; }
.lp-action__copy p { font-size: 1.1rem; color: rgba(255,255,255,.9); }
.lp-action__form { background: #fff; color: var(--ink); border-radius: 10px; padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.lp-action__form h3 { font: 600 1.2rem var(--f-body); color: var(--navy-900); }
.lp-action__form .form { margin-top: 1rem; }

.lp-faq__in { max-width: 860px; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.lp-faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--navy); }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: .7rem 0 0; color: var(--muted); font-size: 1.02rem; }
.lp-others { padding-top: 0; }
.lp-others__list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.lp-others__list a { display: inline-block; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 500; }
.lp-others__list a:hover { border-color: var(--navy); background: var(--navy-050); }

@media (max-width: 960px) { .lp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .lp-split__grid, .lp-split__grid--rev, .lp-action__grid { grid-template-columns: 1fr; }
  .lp-split__grid--rev .lp-figure { order: 2; }
  .lp-figure { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .lp-checks, .lp-benefits, .lp-steps { grid-template-columns: 1fr; } }
