/* =========================================================
   ANFRIX ETIQUETAS — estilos
   Paleta tomada del logo: azul marino + dorado.
   Secciones oscuras por defecto; las que llevan .light son claras.
   ========================================================= */
:root {
  --bg: #070D2E;          /* azul noche (fondo) */
  --surface: #0D1542;     /* tarjetas */
  --surface-2: #131D55;
  --navy: #060F45;        /* azul del logo */
  --line: rgba(255, 255, 255, .09);
  --text: #EEF0F8;
  --muted: #A7AECB;
  --gold: #FEBE1C;        /* dorado del logo */
  --gold-ink: #FEBE1C;    /* dorado para textos (más oscuro en secciones claras) */
  --gold-grad: linear-gradient(90deg, #E1A936, #FEBE1C);
  --wa: #25D366;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 72px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .55);
}

/* Secciones claras: mismas piezas, otros colores */
.light {
  --bg: #F6F4EF;          /* papel crema */
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --line: rgba(6, 15, 69, .1);
  --text: #0B1446;
  --muted: #535B7C;
  --gold-ink: #B5760A;
  --shadow: 0 18px 40px -22px rgba(6, 15, 69, .35);
  background: var(--bg);
  color: var(--text);
}
.light--white { --bg: #FFFFFF; --surface: #F6F4EF; --surface-2: #F6F4EF; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 400; }
h2 {
  font: 800 clamp(1.8rem, 4.4vw, 2.8rem)/1.08 var(--display);
  font-stretch: 112%; letter-spacing: -.02em;
}
h3 { font: 700 1.15rem/1.3 var(--sans); }
p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { display: flex; justify-content: center; margin-top: 40px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--gold-grad); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn--gold { background: var(--gold-grad); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(254, 190, 28, .55); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(254, 190, 28, .75); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.light .btn--ghost { border-color: rgba(6, 15, 69, .25); color: var(--text); background: transparent; }
.light .btn--ghost:hover { border-color: var(--text); background: rgba(6, 15, 69, .04); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .92rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-ink); text-decoration: none; margin-top: 26px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(7, 13, 46, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__logo img { width: 160px; height: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.82); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--gold); transition: right .25s; }
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after { right: 0; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: #070D2E; padding: 8px 16px 24px; border-bottom: 1px solid rgba(255,255,255,.09);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s, transform .25s, visibility .25s;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: #070D2E; }
.hero__media.is-single { grid-template-columns: 1fr; }
.hero__tile { position: relative; overflow: hidden; background: #0D1542; }
/* Rotador de fotos y videos (portada y pestaña "Impresas") */
.rotator .rot-item { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.rotator .rot-item.is-active { opacity: 1; }
.panel__tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: 7px 12px; border-radius: 999px;
  background: rgba(7,13,46,.7); backdrop-filter: blur(8px); color: #fff; font-size: .8rem; font-weight: 500;
}
.panel__tag:empty { display: none; }
.hero__tag {
  position: absolute; top: calc(var(--header-h) + 18px); left: 16px; z-index: 1;
  padding: 7px 12px; border-radius: 999px; background: rgba(7,13,46,.62); backdrop-filter: blur(8px);
  font-size: .78rem; font-weight: 500; color: #fff; white-space: nowrap;
}
.hero__tag:empty { display: none; }
.hero__pause {
  position: absolute; right: max(16px, calc((100% - 1180px) / 2)); bottom: 96px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.3); background: rgba(7,13,46,.5); color: #fff; backdrop-filter: blur(6px);
}
.hero__pause svg { width: 16px; height: 16px; }
.hero__pause:hover { background: rgba(7,13,46,.8); }
@media (max-width: 700px) {
  .hero__media { grid-template-columns: 1fr; }
  .hero__pause { bottom: auto; top: calc(var(--header-h) + 14px); right: 16px; }
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,13,46,.97) 0%, rgba(7,13,46,.86) 45%, rgba(7,13,46,.35) 100%),
    linear-gradient(0deg, #070D2E 0%, transparent 30%);
}
.hero__title {
  font: 800 clamp(2.3rem, 6.4vw, 4.4rem)/1.02 var(--display);
  font-stretch: 112%; letter-spacing: -.025em;
  max-width: 17ch; margin-bottom: 22px;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 54ch; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 0; }
.stats div { padding: 0 32px; border-left: 1px solid rgba(255,255,255,.18); }
.stats div:first-child { padding-left: 0; border-left: 0; }
.stats dt { font: 800 clamp(1.7rem, 4vw, 2.5rem)/1 var(--display); font-stretch: 112%; letter-spacing: -.02em; color: var(--gold); }
.stats dd { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }


@media (max-width: 600px) {
  .hero { align-items: flex-end; }
  .hero__shade { background: linear-gradient(0deg, #070D2E 8%, rgba(7,13,46,.9) 55%, rgba(7,13,46,.55) 100%); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .stats div { padding: 0 16px; }
}

/* ---------- Barra de confianza ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 26px 18px; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item svg { width: 34px; height: 34px; color: var(--gold); }
.trust__item b { display: block; color: var(--text); font-size: .98rem; margin-bottom: 2px; }
@media (max-width: 900px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .trust__item { flex-direction: column; align-items: flex-start; padding: 20px 12px; gap: 10px; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section__head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.section__head h2 { margin-bottom: 16px; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.section__head--row { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: end; }
.section__head--row h2 { margin-bottom: 0; }
@media (max-width: 800px) { .section__head--row { grid-template-columns: 1fr; } }

/* ---------- Etiquetas: pestañas ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.tab {
  text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.tab:hover { border-color: rgba(6,15,69,.3); }
.tab__n { grid-row: span 2; font: 800 1.5rem/1 var(--display); font-stretch: 112%; color: rgba(6,15,69,.2); transition: color .2s; }
.tab b { font-size: 1.08rem; }
.tab small { color: var(--muted); font-size: .86rem; }
.tab.is-on { border-color: var(--text); box-shadow: var(--shadow); background: var(--navy); color: #fff; }
.tab.is-on small { color: rgba(255,255,255,.7); }
.tab.is-on .tab__n { color: var(--gold); }

.panel { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; align-items: start; gap: clamp(22px, 3.5vw, 48px); padding: clamp(14px, 2vw, 22px); background: var(--surface); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); }
.panel[hidden] { display: none; }
.panel.is-on { animation: fadeUp .45s ease; }
/* La foto o el video tienen un tamaño máximo para que no se vean pixelados en pantallas grandes */
.panel__media { position: sticky; top: calc(var(--header-h) + 20px); aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.panel__media img, .panel__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__media--white { background: #fff; }

.panel__body { padding: clamp(6px, 1.5vw, 18px) clamp(6px, 2vw, 26px) clamp(10px, 2vw, 22px) 0; }
.panel__body > h3 { font: 800 clamp(1.4rem, 2.6vw, 1.8rem)/1.15 var(--display); font-stretch: 108%; letter-spacing: -.015em; margin-bottom: 12px; }
.panel__body > p { color: var(--muted); }
.mini { font: 700 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }

.materials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.materials li { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); border-left: 3px solid var(--gold); line-height: 1.35; }
.materials b { display: block; font-size: .95rem; }
.materials span { font-size: .83rem; color: var(--muted); }

.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font-size: .86rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--navy); color: #fff; }

.mini-steps { list-style: none; counter-reset: ms; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.mini-steps li { counter-increment: ms; position: relative; padding-left: 42px; min-height: 28px; color: var(--muted); }
.mini-steps li::before { content: counter(ms); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-grad); color: var(--navy); font-weight: 700; font-size: .9rem; }
.mini-steps b { color: var(--text); }

.promo { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--navy); color: rgba(255,255,255,.82); font-size: .95rem; }
.promo svg { width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.promo b { color: var(--gold); }

@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .panel__media { position: relative; top: 0; aspect-ratio: 4/3; }
  .panel__body { padding: 4px 6px 10px; }
}
@media (max-width: 600px) {
  .tabs { grid-template-columns: 1fr; gap: 8px; }
  .tab { padding: 14px 16px; }
  .materials { grid-template-columns: 1fr; }
}

/* ---------- Trabajos (galería por industria) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  font: 500 .92rem/1 var(--sans); color: var(--muted); background: transparent;
  border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: all .2s;
}
.chip:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.chip.is-on { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }

.works { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.work { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.work--tall { grid-row: span 2; }
.work.is-hidden { display: none; }
.work img, .work video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.work:hover img, .work:hover video { transform: scale(1.05); }
.work figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 16px 16px; font-size: .84rem; line-height: 1.4; color: rgba(255,255,255,.8);
  background: linear-gradient(0deg, rgba(4,8,32,.95) 10%, transparent);
}
.work figcaption b { display: block; font-size: 1rem; color: #fff; margin: 6px 0 2px; }
.work__tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 3px 8px; border-radius: 4px; }
@media (max-width: 900px) { .works { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } }
@media (max-width: 420px) { .works { grid-auto-rows: 160px; gap: 10px; } .work figcaption { font-size: 0; padding: 30px 12px 12px; } .work figcaption b { font-size: .9rem; } }

/* ---------- Equipos ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product {
  display: flex; flex-direction: column;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__img { position: relative; background: #fff; aspect-ratio: 16/10; overflow: hidden; }
.product__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product__img img { transform: scale(1.04); }
.product__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product p { color: var(--muted); font-size: .93rem; }
.tags { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; background: rgba(254,190,28,.16); color: var(--gold-ink); }
@media (max-width: 1000px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__img { aspect-ratio: 4/3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { padding: 22px 22px 26px; }
.service__n { font: 800 .95rem/1 var(--display); color: var(--gold-ink); display: block; margin-bottom: 10px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .94rem; }
.service__list { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: .92rem; }
.service__list li { position: relative; padding-left: 22px; line-height: 1.45; }
.service__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--gold-grad); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.step { align-self: stretch; padding: 30px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s, border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: rgba(254,190,28,.45); }
.step__icon { position: relative; width: 78px; height: 78px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 22px; background: rgba(254,190,28,.12); color: var(--gold); }
.step__icon svg { width: 46px; height: 46px; }
.step__n {
  position: absolute; top: -8px; right: -10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font: 800 .95rem/1 var(--display); color: var(--navy); background: var(--gold-grad); box-shadow: 0 0 0 4px var(--bg);
}
.step h3 { margin-bottom: 10px; font-size: 1.2rem; }
.step p { color: var(--muted); }
.step__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed rgba(254,190,28,.55); color: var(--gold); }
.step__arrow svg { width: 22px; height: 22px; animation: empuje 1.6s ease-in-out infinite; }
@keyframes empuje { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(4px); } }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; justify-items: stretch; }
  .step__arrow { justify-self: center; transform: rotate(90deg); }
}

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quote { margin: 0; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; line-height: 1.6; position: relative; padding-top: 30px; }
.quote blockquote::before { content: "“"; position: absolute; top: -10px; left: -2px; font: 800 3.6rem/1 var(--display); color: var(--gold); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: .86rem; color: var(--muted); }
.quote figcaption b { display: block; color: var(--text); font-size: .95rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--navy); font-weight: 700; flex: none; }
.quote.placeholder { border-style: dashed; border-color: rgba(181,118,10,.5); }
@media (max-width: 1000px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .quotes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-right: -16px; }
  .quote { scroll-snap-align: start; }
}

/* ---------- Reseñas de Google ---------- */
.rating { display: inline-flex; align-items: center; gap: 14px; margin: -16px 0 32px; padding: 12px 20px 12px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; }
.rating:hover { transform: translateY(-2px); }
.rating__g { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font: 800 1.2rem/1 var(--sans); color: #4285F4; }
.rating__n { font: 800 1.9rem/1 var(--display); font-stretch: 112%; }
.rating small { display: block; font-size: .8rem; color: var(--muted); }
.rating em { font-style: normal; font-weight: 700; font-size: .88rem; color: var(--gold-ink); margin-left: 6px; }
.stars { color: #F5A623; letter-spacing: 2px; font-size: .95rem; }
.quote > .stars { margin-bottom: -10px; }

/* ---------- Soporte: programa propio ---------- */
.software {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 56px); margin-bottom: 56px; border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(120% 140% at 100% 0%, #1B2A78 0%, var(--navy) 55%); color: #EEF0F8;
  box-shadow: 0 30px 60px -30px rgba(6,15,69,.6);
}
.badge { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.software__title { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.software__title img { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); }
.software h3 { font: 800 clamp(1.6rem, 3.4vw, 2.4rem)/1.05 var(--display); font-stretch: 110%; letter-spacing: -.02em; }
.software__lead { color: #A7AECB; max-width: 52ch; }
.software__meta { margin-top: 16px; font-size: .84rem; color: #7E87AE; }
.checks { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checks li { display: flex; gap: 10px; font-size: .95rem; }
.checks li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.software__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.software .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }

.mock { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transform: rotate(-3deg); max-width: 380px; margin-inline: auto; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; }
.mock__bar img { width: 18px; height: 18px; border-radius: 4px; }
.mock__bar span { flex: 1; }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); }
.mock__tools { display: flex; gap: 6px; padding: 8px 12px; background: #EEF0F6; border-bottom: 1px solid #DDE0EA; }
.mock__tools span { min-width: 28px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 5px; background: #fff; color: var(--navy); font-size: .72rem; font-weight: 700; border: 1px solid #DDE0EA; }
.mock__label { margin: 22px; padding: 18px; border: 2px dashed #C9CCDA; border-radius: 10px; display: grid; gap: 10px; color: var(--navy); }
.mock__brand { font: 800 1.3rem/1 var(--display); font-stretch: 112%; }
.mock__line { height: 8px; border-radius: 4px; background: #E3E5EE; }
.mock__line.short { width: 60%; }
.mock__barcode { height: 48px; background: repeating-linear-gradient(90deg, #060F45 0 2px, transparent 2px 4px, #060F45 4px 7px, transparent 7px 9px, #060F45 9px 10px, transparent 10px 13px); }
.mock__data { font: 700 .85rem/1 ui-monospace, monospace; color: #B5760A; }
@media (max-width: 860px) { .software { grid-template-columns: 1fr; } .checks { grid-template-columns: 1fr; } }

/* ---------- Soporte: descargas y videos ---------- */
.support { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; }
.support__title { font: 700 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.dl-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 10px; }
.dl {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.dl:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.dl svg { width: 26px; height: 26px; color: var(--gold-ink); }
.dl__brand { flex: none !important; width: 74px; padding: 8px 0; text-align: center; border-radius: 8px; background: var(--navy); color: #fff !important; font: 800 .82rem/1 var(--display) !important; font-stretch: 108%; letter-spacing: .02em; }
.support__hint { color: var(--muted); font-size: .92rem; margin: -6px 0 14px; }
.support__help { font-size: .92rem; color: var(--muted); }
.support__help a { color: var(--gold-ink); font-weight: 700; }
.dl span { flex: 1; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.dl b { display: block; color: var(--text); font-size: .98rem; }
.dl em { font-style: normal; font-weight: 700; font-size: .85rem; color: var(--gold-ink); white-space: nowrap; }

.videos { display: grid; gap: 22px; align-content: start; }
.video {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #131D55, #060F45);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__btn { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; }
.video__btn svg { width: 72px; height: 50px; transition: transform .2s; }
.video__btn:hover svg { transform: scale(1.1); }
.video__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 20px 16px; font-weight: 500; color: #fff; background: linear-gradient(0deg, rgba(7,13,46,.95), transparent); pointer-events: none; }
.video__cap small { color: #A7AECB; font-weight: 400; }
@media (max-width: 900px) { .support { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__info h2 { margin-bottom: 16px; }
.contact__info > p:not(.eyebrow) { color: var(--muted); margin-bottom: 30px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list svg { width: 22px; height: 22px; color: var(--gold); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--gold); }

.form { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; width: 100%;
  transition: border-color .2s;
}
.form input::placeholder, .form textarea::placeholder { color: #6a7296; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { resize: vertical; }
.form .btn { margin-top: 6px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } }

.map { margin-top: clamp(48px, 7vw, 80px); height: 340px; filter: grayscale(.4) invert(.9) hue-rotate(190deg) contrast(.9); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: #040820; padding: 64px 0 28px; font-size: .92rem; color: #A7AECB; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 36px; }
.footer__grid img { width: 140px; margin-bottom: 16px; }
.footer__grid p { max-width: 34ch; }
.footer h4 { font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #EEF0F8; margin-bottom: 16px; }
.footer__grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.09); font-size: .82rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Descargas en celular: flecha en vez de texto para dar aire */
@media (max-width: 520px) {
  .dl { gap: 12px; padding: 14px; }
  .dl__brand { width: 62px; font-size: .74rem !important; }
  .dl em { font-size: 0; }
  .dl em::after { content: "↗"; font-size: 1.2rem; }
}

/* ---------- Extras ronda 4 ---------- */
.pills--gold li { background: rgba(254,190,28,.18); color: var(--text); border: 1px solid rgba(181,118,10,.35); }

.review-ask { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #DDE1F2; font-size: .9rem; text-decoration: none; transition: background .2s; }
.review-ask:hover { background: rgba(255,255,255,.12); }
.review-ask b { color: var(--gold); }

.mini-cta { display: flex; align-items: center; gap: 14px; margin: -8px 0 30px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px dashed rgba(254,190,28,.5); text-decoration: none; color: var(--muted); font-size: .9rem; line-height: 1.4; transition: background .2s; }
.mini-cta:hover { background: rgba(254,190,28,.06); }
.mini-cta svg { width: 30px; height: 30px; color: var(--gold); }
.mini-cta b { display: block; color: var(--text); font-size: 1rem; }

/* ---------- Presupuestador ---------- */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.calc__form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 34px); background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc__form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 500; color: var(--muted); }
.calc__form input[type=number], .calc__form select {
  font: 500 1rem/1.4 var(--sans); color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; width: 100%;
}
.calc__form input:focus, .calc__form select:focus { outline: none; border-color: var(--gold-ink); }
.calc__check { border: 0; margin: 0; padding: 0; }
.calc__check label { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: .95rem; cursor: pointer; }
.calc__check input { width: 18px; height: 18px; accent-color: #060F45; }

.calc__result { position: relative; padding: clamp(24px, 4vw, 36px); border-radius: calc(var(--radius) + 4px); background: var(--navy); color: #EEF0F8; box-shadow: 0 30px 60px -30px rgba(6,15,69,.6); }
.calc__demo { position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: #E5484D; color: #fff; }
.calc__label { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A7AECB; }
.calc__total { font: 800 clamp(2.2rem, 5vw, 3.2rem)/1.05 var(--display); font-stretch: 110%; color: var(--gold); margin: 6px 0 4px; }
.calc__unit { color: #A7AECB; font-size: .92rem; }
.calc__table { width: 100%; border-collapse: collapse; margin: 22px 0 18px; font-size: .9rem; }
.calc__table caption { text-align: left; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A7AECB; padding-bottom: 8px; }
.calc__table td { padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); }
.calc__table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.calc__table tr.is-sel td { color: var(--gold); }
.calc__note { font-size: .86rem; color: #A7AECB; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); }
.calc__note b { color: #fff; }
.calc__ctas { display: grid; gap: 10px; margin-top: 18px; }
.calc .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Portada: frase destacada y pie de foto del slider ---------- */
.hero__tagline { font: 700 clamp(1.15rem, 2.4vw, 1.5rem)/1.3 var(--sans); color: #fff; margin: -6px 0 14px; max-width: 34ch; }

/* Portada: el slider manda, textos más chicos abajo a la izquierda */
.hero--minimal { align-items: flex-end; padding-bottom: 110px; }
.hero--minimal .hero__shade {
  background:
    linear-gradient(180deg, rgba(7,13,46,.75) 0%, transparent 22%),
    linear-gradient(0deg, rgba(7,13,46,.96) 0%, rgba(7,13,46,.55) 38%, rgba(7,13,46,.05) 70%),
    linear-gradient(90deg, rgba(7,13,46,.6) 0%, transparent 60%);
}
.hero--minimal .hero__eyebrow { display: none; }
.hero--minimal .hero__title {
  font: 700 .82rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; font-stretch: normal;
  color: var(--gold); max-width: none; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.hero--minimal .hero__title::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--gold-grad); }
.hero--minimal .hero__tagline { font: 800 clamp(1.7rem, 4vw, 2.7rem)/1.1 var(--display); font-stretch: 110%; letter-spacing: -.02em; max-width: 22ch; margin: 0 0 22px; }
.hero--minimal .hero__lead { display: none; }
.hero--minimal .hero__ctas { margin-bottom: 34px; }
.hero--minimal .stats dt { font-size: clamp(1.4rem, 3vw, 1.9rem); }
@media (max-width: 600px) {
  .hero--minimal { padding-bottom: 80px; }
}

/* =========================================================
   WordPress: páginas internas, formulario y barra de admin
   ========================================================= */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 90px)) 0 clamp(48px, 7vw, 80px);
  background: radial-gradient(120% 140% at 100% 0%, #1B2A78 0%, var(--bg) 60%);
}
.page-hero h1 { font: 800 clamp(2rem, 5vw, 3.4rem)/1.05 var(--display); font-stretch: 112%; letter-spacing: -.02em; max-width: 22ch; text-wrap: balance; }
.page-hero__bajada { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 60ch; margin-top: 16px; }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.migas { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.migas a { color: var(--gold); text-decoration: none; }

.entry { max-width: 72ch; font-size: 1.05rem; }
.entry > * + * { margin-top: 1em; }
.entry h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 3vw, 2rem); }
.entry h3 { margin-top: 1.4em; }
.entry p, .entry li { color: var(--muted); }
.entry strong { color: var(--text); }
.entry ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.entry ul li { position: relative; padding-left: 24px; }
.entry ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--gold-grad); }
.entry a { color: var(--gold-ink); font-weight: 600; }
.entry img { border-radius: var(--radius); }

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.form__ctas .btn { margin-top: 0; }
@media (max-width: 480px) { .form__ctas { grid-template-columns: 1fr; } }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { transform: translateY(-2px); filter: brightness(1.05); }
.form__msg { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 500; }
.form__msg--ok { background: rgba(37, 211, 102, .15); color: #8EF0B4; border: 1px solid rgba(37, 211, 102, .4); }
.form__msg--error { background: rgba(229, 72, 77, .15); color: #FFB4B6; border: 1px solid rgba(229, 72, 77, .4); }
