/* ===== Lenguaje G — capa de diseño compartida =====
   Extraída de la portada (index.html) para que catalogo.html y nosotros.html
   hablen el mismo idioma. La portada conserva sus estilos en línea. */

body { margin: 0; font-family: Barlow, system-ui, sans-serif; background: #FFFFFF; color: #15181F; }
a { color: #16255E; }
a:hover { color: #E20613; }
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #E20613; outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- cabecera ---------- */
.ghead { background: #FFFFFF; border-bottom: 1px solid #E3E6ED; }
.ghead > div { max-width: 1240px; margin: 0 auto; padding: 18px 28px; display: flex; flex-wrap: wrap;
               gap: 16px 32px; align-items: center; justify-content: space-between; }
.ghead img.logo { display: block; height: 52px; width: auto; }
.ghead nav { display: flex; flex-wrap: wrap; gap: 8px 30px; align-items: center; }
.ghead nav a { position: relative; text-decoration: none; color: #15181F; font-weight: 600; font-size: 16px; }
.ghead nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: #E20613; transform: scaleX(0); transform-origin: left;
  transition: transform .38s cubic-bezier(.19,1,.22,1); }
.ghead nav a:hover::after { transform: scaleX(1); }
.ghead nav a[aria-current="page"] { color: #16255E; }
.ghead nav a[aria-current="page"]::after { transform: scaleX(1); }
.btn-head { display: inline-flex; align-items: center; gap: 10px; background: #E20613; color: #FFFFFF;
  text-decoration: none; font-weight: 700; font-size: 16px; padding: 13px 22px; border-radius: 6px;
  min-height: 44px; box-sizing: border-box; }
.btn-head:hover { color: #FFFFFF; background: #C70511; }

/* ---------- encabezados de sección ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: .18em; color: #E20613; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: #E20613; display: block; }
.eyebrow-claro { color: #FF4A55; }
.eyebrow-claro::before { background: #FF4A55; }
.sec-head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end;
  justify-content: space-between; margin-bottom: 30px; }
.sec-head h1, .sec-head h2 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 42px; color: #16255E; line-height: 1.05; }
.sec-sub { margin: 10px 0 0; font-size: 18px; line-height: 1.6; color: #4A5163; max-width: 640px; }
.vertodo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px;
  text-decoration: none; color: #16255E; }
.vertodo svg { transition: transform .3s cubic-bezier(.22,1,.26,1); }
.vertodo:hover { color: #E20613; }
.vertodo:hover svg { transform: translateX(5px); }

/* ---------- hero azul ---------- */
.ghero { position: relative; background: #16255E; color: #FFFFFF; padding: 62px 0 66px; overflow: hidden; }
.ghero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .20; filter: grayscale(.35); }
.ghero > .velo { position: absolute; inset: 0;
  background: linear-gradient(104deg, #16255E 34%, rgba(22,37,94,.80) 62%, rgba(22,37,94,.42) 100%); }
.ghero > div.wrap { position: relative; }
.ghero h1 { margin: 0 0 16px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: clamp(38px, 6vw, 62px); line-height: 1.02; }
.ghero p.lead { margin: 0; font-size: 19px; line-height: 1.6; color: #C8D1EA; max-width: 640px; }

/* ---------- tarjetas de producto ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.pgrid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.pcard { position: relative; background: #fff; border: 1px solid #E3E6ED; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .45s cubic-bezier(.19,1,.22,1), box-shadow .45s ease, border-color .3s ease; }
.pcard::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #E20613;
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.22,1,.26,1); }
.pcard:hover { transform: translateY(-7px); box-shadow: 0 20px 44px rgba(22,37,94,.16); border-color: #C6CFE2; }
.pcard:hover::after { transform: scaleX(1); }
.pfoto { position: relative; height: 168px; background: linear-gradient(160deg,#FBFCFE,#F1F4FA);
  border-bottom: 1px solid #E8EBF1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pfoto img { width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box;
  transition: transform .6s cubic-bezier(.19,1,.22,1); }
.pcard:hover .pfoto img { transform: scale(1.07); }
.badge { position: absolute; top: 11px; left: 11px; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #D9E0EC; color: #15181F; font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; padding: 5px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(22,37,94,.07); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.b-stock .dot { background: #0E7A3C; box-shadow: 0 0 0 0 rgba(14,122,60,.55); animation: pulso 2.4s ease-out infinite; }
.b-pedido .dot { background: #C77700; }
@keyframes pulso { 70% { box-shadow: 0 0 0 7px rgba(14,122,60,0); } 100% { box-shadow: 0 0 0 0 rgba(14,122,60,0); } }
.pbody { padding: 16px 17px 17px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.pmarca { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; color: #7C86A0; }
.pcard h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: #15181F; transition: color .28s; }
.pcard:hover h3 { color: #E20613; }
.precio { margin: 4px 0 0; font-family: 'Barlow Condensed', sans-serif; font-size: 27px; font-weight: 700;
  color: #16255E; font-variant-numeric: tabular-nums; line-height: 1; }
.precio small { font-size: 12px; font-weight: 600; color: #8E97AC; letter-spacing: .06em; display: block; margin-top: 2px; }
.pbtn { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-weight: 700; font-size: 15px; color: #16255E; }
.pbtn svg { transition: transform .35s cubic-bezier(.22,1,.26,1); }
.pcard:hover .pbtn { color: #E20613; }
.pcard:hover .pbtn svg { transform: translateX(5px); }

/* ---------- tarjetas de local ---------- */
.lgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.lcard { position: relative; border: 1px solid #E3E6ED; border-radius: 14px; overflow: hidden; display: flex;
  flex-direction: column; background: #fff;
  transition: transform .45s cubic-bezier(.19,1,.22,1), box-shadow .45s ease, border-color .3s; }
.lcard:hover { transform: translateY(-7px); box-shadow: 0 20px 44px rgba(22,37,94,.16); border-color: #C6CFE2; }
.lfoto { position: relative; height: 160px; overflow: hidden; background: #16255E; }
.lfoto img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.19,1,.22,1); }
.lcard:hover .lfoto img { transform: scale(1.08); }
.lfoto::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,60,.92) 0%, rgba(10,22,60,.35) 45%, rgba(10,22,60,0) 75%); }
.lnom { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2; margin: 0;
  font-family: 'Barlow Condensed', sans-serif; font-size: 25px; font-weight: 700; color: #fff; line-height: 1.05; }
.lpend { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; background: linear-gradient(135deg,#16255E,#22357A); }
.lbody { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 9px; flex-grow: 1; }
.ldir { margin: 0; font-size: 14.5px; line-height: 1.5; color: #4A5163; }
.ltel { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #16255E;
  text-decoration: none; font-variant-numeric: tabular-nums; }
.ltel:hover { color: #E20613; }
.lmapa { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid #D4DAE8; color: #16255E; font-weight: 700; font-size: 15px; padding: 11px;
  border-radius: 8px; min-height: 44px; box-sizing: border-box; text-decoration: none;
  transition: background .28s, border-color .28s, color .28s; }
.lmapa:hover { background: #16255E; border-color: #16255E; color: #fff; }

/* ---------- celdas de sistema / datos ---------- */
.g-cell { background: #fff; border: 1px solid #E3E6ED; border-radius: 14px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 13px; text-decoration: none; color: inherit;
  transition: transform .5s cubic-bezier(.19,1,.22,1), box-shadow .45s ease, border-color .28s ease; }
.g-cell:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(22,37,94,.14); border-color: #B9C2D8; }
.g-cell h3 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 25px; font-weight: 700;
  color: #16255E; line-height: 1.1; transition: color .28s ease; }
.g-cell:hover h3 { color: #E20613; }
.g-cell p { margin: 0; font-size: 15px; line-height: 1.55; color: #5A6170; }

.kpi-banda { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0;
  border: 1px solid #E3E6ED; border-radius: 14px; overflow: hidden; background: #fff; }
.kpi { padding: 28px 26px; border-right: 1px solid #E3E6ED; }
.kpi:last-child { border-right: 0; }
.kpi b { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 44px;
  color: #16255E; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi span { display: block; margin-top: 5px; font-size: 15px; color: #5A6170; }

/* ---------- controles de formulario ---------- */
.g-field { display: flex; flex-direction: column; gap: 5px; }
.g-field label { font-family: 'Barlow Condensed', sans-serif; font-size: 12.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #7C86A0; }
.g-input, .g-select { font-family: Barlow, sans-serif; font-size: 15.5px; padding: 12px 13px; min-height: 46px;
  border: 1px solid #D4DAE8; border-radius: 8px; background: #FFFFFF; color: #15181F; box-sizing: border-box;
  transition: border-color .25s ease, box-shadow .25s ease; }
.g-input:focus, .g-select:focus { border-color: #16255E; box-shadow: 0 0 0 3px rgba(22,37,94,.12); outline: none; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: Barlow, sans-serif;
  font-weight: 700; font-size: 16px; color: #FFFFFF; background: #16255E; border: 0; border-radius: 8px;
  padding: 13px 26px; min-height: 46px; cursor: pointer; text-decoration: none;
  transition: background .28s ease, transform .3s cubic-bezier(.22,1,.26,1); }
.g-btn:hover { background: #0F1C48; color: #FFFFFF; transform: translateY(-2px); }
.g-btn-rojo { background: #E20613; box-shadow: 0 10px 26px rgba(226,6,19,.26); }
.g-btn-rojo:hover { background: #C70511; }
.g-btn-fantasma { background: transparent; color: #16255E; border: 1.5px solid #D4DAE8; }
.g-btn-fantasma:hover { background: #16255E; border-color: #16255E; color: #fff; }

/* ---------- panel de filtros ---------- */
.panel { background: #FFFFFF; border: 1px solid #E3E6ED; border-radius: 14px; padding: 22px; }
.panel h2 { margin: 0 0 16px; font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700;
  color: #16255E; line-height: 1; }
.panel h3 { margin: 18px 0 11px; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #7C86A0; }
.panel h3:first-of-type { margin-top: 0; }
.fgroup { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid #EDEFF4; }
.fgroup:last-child { padding-bottom: 0; border-bottom: 0; }
.fgroup label { display: flex; gap: 10px; align-items: center; font-size: 15.5px; cursor: pointer; color: #30364A;
  transition: color .22s ease; }
.fgroup label:hover { color: #16255E; }
.fgroup input { width: 17px; height: 17px; accent-color: #E20613; }
.panel-azul { background: #16255E; color: #FFFFFF; border: 0; }
.panel-azul h3 { color: #FF4A55; margin-top: 0; }
.panel-azul p { margin: 0 0 15px; font-size: 15px; line-height: 1.55; color: #C8D1EA; }

/* ---------- CTA final ---------- */
.cta { position: relative; background: #16255E; color: #fff; padding: 60px 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(#2A3C7E 1px, transparent 1px), linear-gradient(90deg,#2A3C7E 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000, transparent 72%); }
.cta > div { position: relative; }
.cta h2 { margin: 0 0 8px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 42px; line-height: 1.05; }
.btn-rojo { display: inline-flex; align-items: center; gap: 11px; background: #E20613; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 17px 32px; border-radius: 8px; min-height: 44px; box-sizing: border-box;
  box-shadow: 0 10px 26px rgba(226,6,19,.3); transition: transform .3s cubic-bezier(.22,1,.26,1), box-shadow .3s; }
.btn-rojo:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(226,6,19,.42); color: #fff; }

/* ---------- footer ---------- */
.gfoot { background: #0F1C48; color: #C8D1EA; padding: 52px 0 26px; }
.gfoot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 30px;
  border-bottom: 1px solid #2D3E7E; }
.fcol h3 { margin: 0 0 13px; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.fcol a { position: relative; color: #C8D1EA; text-decoration: none; font-size: 15px; }
.fcol a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: #FF4A55;
  transform: scaleX(0); transform-origin: right; transition: transform .3s cubic-bezier(.22,1,.26,1); }
.fcol a:hover { color: #fff; }
.fcol a:hover::after { transform: scaleX(1); transform-origin: left; }
.fcol p { margin: 0 0 9px; }
.wordmark { display: block; margin-bottom: 14px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 32px; letter-spacing: .01em; color: #FFFFFF; line-height: 1; }
.wordmark i { font-style: normal; color: #FF4A55; }
.wordmark em { font-style: normal; font-size: 15px; letter-spacing: .2em; color: #8E9CCC; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #2D3E7E; border-radius: 999px;
  padding: 5px 12px; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; color: #AEBBE4; }

/* ---------- revelado al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes g-rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
  .reveal { animation: g-rise .85s cubic-bezier(.19,1,.22,1) both; }
  .js-rev .reveal { animation: none; opacity: 0; transform: translateY(26px);
    transition: opacity .7s ease, transform .8s cubic-bezier(.19,1,.22,1); }
  .js-rev .reveal.vis { opacity: 1; transform: none; }
  .js-rev .reveal:nth-child(2) { transition-delay: .08s; }
  .js-rev .reveal:nth-child(3) { transition-delay: .16s; }
  .js-rev .reveal:nth-child(4) { transition-delay: .24s; }
  .js-rev .reveal:nth-child(5) { transition-delay: .32s; }
  .js-rev .reveal:nth-child(6) { transition-delay: .40s; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pgrid, .pgrid-3, .lgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gfoot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kpi-banda { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid #E3E6ED; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .pgrid, .pgrid-3, .lgrid { grid-template-columns: 1fr; gap: 14px; }
  .gfoot-grid, .kpi-banda { grid-template-columns: 1fr; }
  .kpi { border-right: 0; border-bottom: 1px solid #E3E6ED; }
  .kpi:last-child { border-bottom: 0; }
  .sec-head h1, .sec-head h2, .cta h2 { font-size: clamp(28px, 8vw, 36px); }
  .ghead nav { gap: 6px 18px; font-size: 15px; }
  .g-btn, .btn-rojo, .lmapa { width: 100%; justify-content: center; box-sizing: border-box; }
  .ghead .btn-head { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .js-rev .reveal { opacity: 1; transform: none; transition: none; }
  .b-stock .dot { animation: none; }
}
