:root {
  --blue: #0275d0;
  --blue-dark: #015ba3;
  --blue-soft: #e8f2fb;
  --red: #d7261e;
  --ink: #16202a;
  --ink-2: #2a2a2a;
  --muted: #5a6875;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --wa: #1fa855;
  --wa-hover: #188f47;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(22, 32, 42, .05), 0 16px 40px rgba(22, 32, 42, .08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 820px; }

.accent { color: var(--blue); }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}

.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  border: 0;
  font: 600 15px/1 "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.btn:active { transform: translateY(1px); }

.btn:focus-visible,
.faq summary:focus-visible,
.header__nav a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }

.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }

.btn--sm { height: 42px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}

.header.is-scrolled { box-shadow: 0 6px 24px rgba(22, 32, 42, .08); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.header__logo img { width: 190px; height: auto; }

.header__nav { display: flex; gap: 28px; }

.header__nav a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}

/* Subrayado animado: crece al pasar el mouse o cuando la sección está en pantalla */
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .25s;
}

.header__nav a:hover,
.header__nav a.is-active { color: var(--blue); }

.header__nav a:hover::after,
.header__nav a.is-active::after { transform: scaleX(1); }

/* Menú de instrumentos */
.menu { position: relative; }

.menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  font: 600 14px/1 "Inter", sans-serif;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}

.menu__toggle:hover,
.menu.is-open .menu__toggle { background: var(--blue-dark); }
.menu__toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.menu__grid { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.menu__chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s;
}

.menu.is-open .menu__chevron { transform: rotate(180deg); }

.menu__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;
  width: min(780px, calc(100vw - 48px));
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(22, 32, 42, .18);
  animation: menu-in .22s cubic-bezier(.2, .7, .2, 1);
}

.menu__panel[hidden] { display: none; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.menu__group { display: grid; align-content: start; gap: 4px; }

.menu__title {
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
}

.menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s;
}

.menu__item:hover,
.menu__item:focus-visible { background: var(--blue-soft); outline: none; }

.menu__item img {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.menu__item span { display: grid; line-height: 1.25; }
.menu__item strong { font-family: "Barlow Condensed", sans-serif; font-size: 20px; }
.menu__item small { font-size: 12px; color: var(--muted); }

.menu__links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.menu__links a { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.menu__links a:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 40px;
  background:
    radial-gradient(800px 420px at 90% 10%, var(--blue-soft), transparent 70%),
    linear-gradient(180deg, #fff, var(--bg-soft));
  transition: background-color .5s;
}

/* Primera diapositiva: fondo oscuro para integrar la foto de la línea Mastech */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 70% 45%, #2a2a2a, #111 70%);
  opacity: 0;
  transition: opacity .5s ease;
}

.hero.is-dark::before { opacity: 1; }

/* En escritorio la foto de marca va de fondo del banner, a su tamaño real como máximo (971 px)
   para que se vea nítida. Sus bordes se funden con el fondo oscuro, así no se nota ningún marco */
@media (min-width: 861px) {
  .hero {
    /* Por encima de su tamaño real (971 px), con tope de 1300 px para no perder demasiada nitidez */
    --bw: min(1300px, 86vw);
    --bh: calc(var(--bw) * 490 / 971);
    --bpos: right 2% top 40%;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(17, 17, 17, .95) 0%, rgba(17, 17, 17, .8) 24%, rgba(17, 17, 17, 0) 44%),
      linear-gradient(90deg, #111 0%, rgba(17, 17, 17, 0) 16%, rgba(17, 17, 17, 0) 88%, #111 100%) var(--bpos) / var(--bw) var(--bh) no-repeat,
      linear-gradient(180deg, #111 0%, rgba(17, 17, 17, 0) 14%, rgba(17, 17, 17, 0) 84%, #111 100%) var(--bpos) / var(--bw) var(--bh) no-repeat,
      url("assets/banner-mastech.png") var(--bpos) / var(--bw) var(--bh) no-repeat,
      #111;
    transform: scale(1.04);
    transition: opacity .5s ease, transform 3s ease-out;
  }

  /* Acercamiento lento al aparecer */
  .hero.is-dark::before { transform: none; }

  /* La caja se mantiene para que las 4 diapositivas midan igual, pero la foto ya está de fondo */
  .slide--dark .hero__banner-img { visibility: hidden; }
}

.hero__slides,
.hero__footer { position: relative; }

.slide { padding: 64px 0 0; }

.slide--dark .hero__kicker { color: #ff5b52; }
.slide--dark .hero__title { color: #fff; }
.slide--dark .accent { color: #3ea2ff; }
.slide--dark .lead { color: rgba(255, 255, 255, .75); }

/* Caja de imagen común a las 4 diapositivas: mismo ancho y alto (proporción de la foto de marca) */
.hero__banner,
.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 971 / 490;
}

/* Foto de marca sin marco: llena la caja */
.hero__banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__banner.is-missing { display: none; }

.slide.is-active .hero__banner-img { animation: banner-in 1s cubic-bezier(.2, .7, .2, 1) both .1s; }

@keyframes banner-in {
  from { opacity: 0; transform: translateX(60px) scale(1.06); }
  to { opacity: 1; transform: none; }
}

.hero.is-dark .trust { color: #fff; }
.hero.is-dark .trust__dot { box-shadow: 0 0 0 4px rgba(62, 162, 255, .25); }
.hero.is-dark .hero__dot { color: rgba(255, 255, 255, .55); }
.hero.is-dark .hero__dot.is-active { color: #fff; }
.hero.is-dark .hero__dot i { background: rgba(255, 255, 255, .2); }
.hero.is-dark .hero__dot i::after { background: #3ea2ff; }

/* Las 4 diapositivas comparten rejilla: texto estrecho e imagen lo más grande posible */
.hero__grid {
  display: grid;
  grid-template-columns: .5fr 1.5fr;
  gap: 32px;
  align-items: center;
  max-width: 1680px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-badge img { width: 104px; }

.hero__kicker {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}

.hero__title {
  font-size: clamp(40px, 4.4vw, 62px);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.lead {
  max-width: 540px;
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--muted);
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}

.trust li { display: flex; align-items: center; gap: 8px; }

.trust__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

/* Banner: todas las diapositivas ocupan la misma celda; solo la activa es visible */
.hero__slides { display: grid; }

.slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
}

.slide.is-active { opacity: 1; visibility: visible; }

/* Los textos entran escalonados (--d) cada vez que la diapositiva se activa */
.slide.is-active .anim {
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.hero__photo {
  position: absolute;
  left: 50%;
  top: 0;
  width: auto;
  max-width: none;
  transform: var(--t);
  filter: drop-shadow(0 24px 30px rgba(22, 32, 42, .22));
}

/* Alturas en % de la caja: se escalan igual en escritorio y móvil */
.hero__photo--front { height: 100%; z-index: 2; --t: translateX(-15%) rotate(5deg); }
.hero__photo--back { height: 80%; top: 12%; z-index: 1; --t: translateX(-100%) rotate(-7deg); }

/* Megóhmetros: el MS5205 es apaisado y va detrás; el MS5201 delante */
.hero__photo--narrow { height: 94%; top: 3%; --t: translateX(-2%) rotate(4deg); }
.hero__photo--wide { height: 62%; top: 22%; --t: translateX(-88%) rotate(-4deg); }

.slide.is-active .hero__photo { animation: photo-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.slide.is-active .hero__photo--back { animation-delay: .12s; }

@keyframes photo-in {
  from { opacity: 0; transform: var(--t) translateX(70px) scale(.92); }
  to { opacity: 1; transform: var(--t); }
}

.hero__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 40px;
}

.hero__dots { display: flex; gap: 16px; }

.hero__dot {
  display: grid;
  gap: 8px;
  min-width: 120px;
  padding: 0;
  border: 0;
  background: none;
  font: 600 13px/1 "Inter", sans-serif;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
}

.hero__dot.is-active { color: var(--ink); }

.hero__dot:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.hero__dot i {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.hero__dot i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}

.hero__dot.is-active i::after { animation: progress var(--slide-ms, 3000ms) linear forwards; }
.hero.is-paused .hero__dot.is-active i::after { animation-play-state: paused; }

@keyframes progress { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .slide.is-active .anim,
  .slide.is-active .hero__photo,
  .slide.is-active .hero__banner-img { animation: none; }
}

/* Sections */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }

.section__head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  text-transform: uppercase;
}

.section__sub {
  margin: 16px 0 0;
  font-size: 17px;
  color: var(--muted);
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}

.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.product--featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow);
}

.product__tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product__tag--featured { background: var(--blue); color: #fff; }

.product__media {
  width: 100%;
  height: 300px;
  margin: 20px auto 16px;
}

/* Fotos PNG con fondo transparente */
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(22, 32, 42, .18));
}

.products--two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }

.product__name {
  font-size: 40px;
  letter-spacing: .01em;
}

.product__tagline {
  min-height: 52px;
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.specs {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.specs span { color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
}

.features li { position: relative; padding-left: 18px; }

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.product__ideal {
  margin: 0 0 24px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
}

.product__ideal strong { color: var(--ink); }

.product .btn { margin-top: auto; }

/* Compare */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }

.compare thead th {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  background: var(--bg-soft);
}

.compare thead th:first-child,
.compare tbody th {
  text-align: left;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.compare thead th:first-child { color: var(--muted); }

.compare .is-featured { background: var(--blue-soft); }
.compare thead .is-featured { background: var(--blue); color: #fff; }
.compare .yes { color: var(--blue); font-weight: 700; }
.compare .no { color: #a9b4be; }

.guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.guide--two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; }

.guide__item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide__item p { margin: 0; font-size: 15px; color: var(--muted); }
.guide__item strong { color: var(--ink); }

.guide__num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

/* Why */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why__list li {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.why__list strong { font-size: 17px; }
.why__list p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

.why__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
}

.why__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* FAQ */
.faq { display: grid; gap: 12px; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

/* Finder (asesor) */
.finder__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}

.finder__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.finder__option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 600 14px/1.3 "Inter", sans-serif;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}

.finder__option:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.finder__option:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.finder__option svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: var(--blue-soft);
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background .2s, stroke .2s;
}

.finder__option.is-active { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.finder__option.is-active svg { background: rgba(255, 255, 255, .18); stroke: #fff; }

.finder__result {
  display: grid;
  min-height: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.finder__empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.finder__empty {
  background: radial-gradient(circle at 50% 45%, var(--blue-soft), transparent 70%);
}

.finder__empty img {
  width: 100%;
  max-width: 560px;
  filter: drop-shadow(0 18px 22px rgba(22, 32, 42, .18));
  animation: float 5s ease-in-out infinite;
}

/* Flota suavemente para invitar a elegir */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.finder__empty p { margin: 0; max-width: 320px; font-size: 15px; }
.finder__empty strong { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .finder__empty img { animation: none; }
}
.finder__empty[hidden] { display: none; }

.finder__card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.finder__card[hidden] { display: none; }

.finder__media {
  height: 260px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 55%, var(--blue-soft), transparent 70%);
  border-radius: 14px;
}

.finder__media img {
  max-height: 240px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(22, 32, 42, .2));
}

.finder__type {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}

.finder__name { font-size: 44px; margin-bottom: 8px; }
.finder__why { margin: 0 0 16px; font-size: 15px; color: var(--muted); }

.finder__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.finder__specs li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
}

.finder__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.finder__ctas .btn { height: 46px; }

/* Entrada de la recomendación: los elementos aparecen escalonados */
.finder__card.is-in .finder__media { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.finder__card.is-in .finder__info > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.finder__card.is-in .finder__info > :nth-child(2) { animation-delay: .06s; }
.finder__card.is-in .finder__info > :nth-child(3) { animation-delay: .12s; }
.finder__card.is-in .finder__info > :nth-child(4) { animation-delay: .18s; }
.finder__card.is-in .finder__info > :nth-child(5) { animation-delay: .24s; }

/* Resalta la ficha a la que lleva el asesor */
.product.is-highlight { animation: highlight 1.8s ease-out; }

@keyframes highlight {
  0%, 30% { box-shadow: 0 0 0 4px var(--blue), var(--shadow); }
  100% { box-shadow: 0 0 0 0 transparent, var(--shadow); }
}

/* Aparición al hacer scroll (la clase .reveal la añade script.js) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* Las fotos de las fichas crecen un poco al pasar el mouse */
.product__media img { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.product:hover .product__media img { transform: scale(1.05) translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .finder__card.is-in .finder__media,
  .finder__card.is-in .finder__info > * { animation: none; }
  .product:hover .product__media img { transform: none; }
}

/* Final CTA */
.cta {
  padding: 72px 0;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .14), transparent 70%),
    var(--blue);
  color: #fff;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  text-transform: uppercase;
}

.cta p { margin: 8px 0 0; font-size: 17px; opacity: .9; }

/* Footer */
.footer {
  padding: 40px 0 96px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
}

.footer__inner img { width: 110px; }
.footer__inner p { margin: 0; }
.footer__note { font-size: 12px; width: 100%; }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 10px 24px rgba(31, 168, 85, .4);
  transition: transform .15s;
}

.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 1200px) {
  .hero__grid { grid-template-columns: .75fr 1.25fr; }
}

@media (max-width: 1000px) {
  .products,
  .products--two { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .product__tagline { min-height: 0; }
  .guide,
  .guide--two { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 32px; }
  .finder__layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header__nav { display: none; }
  /* En móvil el menú baja a lo ancho de la pantalla, debajo de la cabecera */
  .menu { position: static; }
  .menu__panel {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero { padding: 0 0 32px; }
  .slide { padding-top: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 16px; }
  /* En móvil la imagen va arriba, pegada a la cabecera y a todo el ancho de la pantalla.
     Proporción más alta que la foto: recorta solo el fondo vacío de los lados y agranda los equipos */
  .hero__visual,
  .hero__banner {
    order: -1;
    width: auto;
    margin: 0 -24px;
    aspect-ratio: 25 / 16;
  }
  .hero__footer { margin-top: 24px; }
  .finder__card { grid-template-columns: 1fr; }
  .finder__media { height: 220px; }
  .finder__media img { max-height: 200px; }
  .section { padding: 72px 0; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header__inner { height: 70px; }
  .header__logo img { width: 150px; }
  .menu__toggle { height: 42px; padding: 0 12px; }
  .menu__panel { top: 74px; }
  .hero__ctas .btn { width: 100%; height: 46px; }
  .hero__ctas { gap: 10px; }
  .hero__title { font-size: 34px; margin-bottom: 12px; }
  .hero__kicker { font-size: 12px; margin-bottom: 8px; }
  .lead { font-size: 15px; margin-bottom: 20px; }
  .brand-badge { margin-bottom: 14px; padding: 6px 12px; }
  .brand-badge img { width: 88px; }
  .hero__visual,
  .hero__banner { margin: 0 -16px; }
  .product__media { height: 260px; }
  .hero__dots { width: 100%; gap: 10px; }
  .hero__dot { flex: 1; min-width: 0; font-size: 12px; }
  .finder__option { min-height: 64px; padding: 12px; font-size: 13px; gap: 10px; }
  .finder__option svg { width: 34px; height: 34px; padding: 7px; }
  .finder__card { padding: 20px; }
  .finder__ctas .btn { flex: 1; }
  .product { padding: 22px; }
  .features { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
}
