/* ==========================================================================
   GRUAS TAY — Hoja de estilos principal
   Paleta tomada del rótulo real de la unidad: rojo carrocería + amarillo
   de los números + blanco del logotipo, sobre negro para máximo contraste.
   ========================================================================== */

/* ------------------------------- 1. Tokens ------------------------------- */
:root {
  --red:        #D8232A;
  --red-bright: #F0383F;
  --red-deep:   #8E1017;
  --gold:       #FFC01E;
  --gold-deep:  #E0A000;

  --ink:    #08080A;
  --ink-2:  #0F0F14;
  --ink-3:  #16161D;
  --ink-4:  #1E1E27;

  --steel:     #99A1AE;
  --steel-dim: #6C7480;
  --white:     #FFFFFF;

  --line:      rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .06);

  --wrap: 1200px;
  --r:    20px;
  --r-sm: 13px;

  --shadow-1: 0 18px 40px -22px rgba(0, 0, 0, .9);
  --shadow-2: 0 30px 70px -26px rgba(0, 0, 0, .95);
  --glow-red: 0 20px 50px -18px rgba(216, 35, 42, .55);

  --ff-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --ff-cond:    "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --ff-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 74px;
  --ease: cubic-bezier(.22, .68, .28, 1);
}

/* ------------------------------- 2. Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--red);
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------ 3. Layout ------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }

.head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 58px); }
.head--left { margin-bottom: 26px; }

.eyebrow {
  font-family: var(--ff-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.head__sub { color: var(--steel); margin-top: 16px; font-size: 1.02rem; }

.mini {
  font-family: var(--ff-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ------------------------------ 4. Botones ------------------------------ */
.btn {
  --btn-bg: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn--red {
  background: linear-gradient(135deg, var(--red-bright), var(--red) 55%, var(--red-deep));
  box-shadow: var(--glow-red);
}
.btn--red:hover { box-shadow: 0 24px 56px -16px rgba(240, 56, 63, .7); }

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--lg { padding: 15px 26px; border-radius: 16px; }

.btn .ico { width: 21px; height: 21px; fill: currentColor; flex: none; }

.btn__stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn__stack small {
  font-family: var(--ff-cond);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
}
.btn__stack strong { font-size: 1.16rem; letter-spacing: .01em; }

/* ---------------------------- 5. Barra superior -------------------------- */
.topbar {
  background: #050507;
  border-bottom: 1px solid var(--line-soft);
  font-size: .86rem;
  position: relative;
  z-index: 60;
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.topbar__msg { display: flex; align-items: center; gap: 9px; color: var(--steel); }
.topbar__msg strong { color: var(--white); }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
  flex: none;
  box-shadow: 0 0 0 0 rgba(240, 56, 63, .7);
  animation: ping 2.4s ease-out infinite;
}

.topbar__phones { display: flex; align-items: center; gap: 14px; }
.topbar__phones a {
  font-family: var(--ff-cond);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: .06em;
  color: var(--gold);
  transition: color .2s;
}
.topbar__phones a:hover { color: #fff; }
.topbar__sep { width: 1px; height: 15px; background: var(--line); }

/* -------------------------------- 6. Header ----------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, .78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.header.is-stuck {
  background: rgba(6, 6, 8, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 40px -22px rgba(0, 0, 0, 1);
}
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
  color: #fff;
  box-shadow: var(--glow-red);
}
.brand__mark svg { width: 26px; height: 26px; }

.brand__text {
  font-family: var(--ff-display);
  font-size: 1.42rem;
  line-height: 1;
  letter-spacing: .015em;
  display: flex;
  gap: .3em;
}
.brand__gruas { color: #fff; }
.brand__tay   { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) {
  position: relative;
  padding: 10px 13px;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  transition: color .2s;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav > a:not(.btn):hover { color: #fff; }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 12px; padding: 11px 20px; font-size: .93rem; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  padding: 12px 11px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------- 7. Hero ------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 42px);
  min-height: calc(100svh - var(--header-h) - 42px);
  padding: clamp(60px, 8vw, 96px) 0 clamp(70px, 8vw, 100px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -2%;
  z-index: -3;
  background-image: url("../img/hero.webp");
  background-size: cover;
  background-position: 62% 42%;
  transform-origin: 62% 42%;
  animation: kenburns 30s ease-in-out infinite alternate;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(96deg,
      rgba(6, 6, 8, .98) 0%,
      rgba(6, 6, 8, .95) 32%,
      rgba(6, 6, 8, .78) 50%,
      rgba(6, 6, 8, .38) 72%,
      rgba(8, 8, 10, .58) 100%),
    linear-gradient(to bottom, rgba(8, 8, 10, .72) 0%, transparent 26%, transparent 62%, var(--ink) 100%);
}

.hero__stripes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(115deg,
    rgba(216, 35, 42, .16) 0 12px,
    transparent 12px 34px);
  -webkit-mask-image: linear-gradient(105deg, #000 0%, transparent 46%);
  mask-image: linear-gradient(105deg, #000 0%, transparent 46%);
}

.hero__in { position: relative; }
.hero__copy { max-width: 680px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  font-family: var(--ff-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 22px;
}
.badge--dark { background: rgba(0, 0, 0, .3); }

/* Torreta estroboscópica: guiño a las luces de la grúa. */
.strobe { display: inline-flex; gap: 4px; flex: none; }
.strobe i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(255, 192, 30, .85);
  animation: strobe 1.1s steps(1, end) infinite;
}
.strobe i:last-child { animation-delay: .55s; background: var(--red-bright); box-shadow: 0 0 10px 2px rgba(240, 56, 63, .85); }

.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 12.5vw, 7.6rem);
  line-height: .88;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero__title span { display: block; }
.hero__gruas { color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.hero__tay {
  color: var(--gold);
  text-shadow: 0 0 42px rgba(255, 192, 30, .35), 0 6px 40px rgba(0, 0, 0, .6);
}

.hero__lead {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  color: #D5D9DF;
  max-width: 30em;
  margin-bottom: 24px;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  font-size: .84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .84);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }

.hero__note {
  font-size: .9rem;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__note::before { content: "✓"; color: var(--gold); font-weight: 700; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--gold);
  animation: wheel 1.9s ease-in-out infinite;
}

/* ------------------------------- 8. Marquee ------------------------------ */
.marquee {
  background: linear-gradient(90deg, var(--red-deep), var(--red) 22%, var(--red-bright) 50%, var(--red) 78%, var(--red-deep));
  border-block: 1px solid rgba(0, 0, 0, .35);
  overflow: hidden;
  padding: 13px 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee__track span {
  font-family: var(--ff-display);
  font-size: 1.12rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track i { color: var(--gold); font-style: normal; font-size: .8rem; }

/* -------------------------------- 9. Stats ------------------------------- */
.stats { background: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 26px;
  border-right: 1px solid var(--line-soft);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  width: 34px;
  height: 3px;
  background: var(--red);
  border-radius: 0 0 3px 3px;
}
.stat strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 8px;
}
.stat span { font-size: .92rem; color: var(--steel); }

/* ------------------------------- 10. Cards ------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, .055), transparent 55%),
    var(--ink-2);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  transform-style: preserve-3d;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(216, 35, 42, .5), transparent 42%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(240, 56, 63, .5);
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(240, 56, 63, .12);
}
.card:hover::after { opacity: .16; }

.card--accent { border-color: rgba(255, 192, 30, .28); }
.card--accent .card__ico { background: rgba(255, 192, 30, .12); color: var(--gold); border-color: rgba(255, 192, 30, .3); }
.card--accent .card__tag { color: var(--gold); border-color: rgba(255, 192, 30, .3); }
.card--accent:hover { border-color: rgba(255, 192, 30, .55); box-shadow: var(--shadow-2), 0 0 0 1px rgba(255, 192, 30, .18); }
.card--accent::after { background: linear-gradient(135deg, rgba(255, 192, 30, .5), transparent 42%); }

.card__ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(216, 35, 42, .13);
  border: 1px solid rgba(240, 56, 63, .28);
  color: var(--red-bright);
  margin-bottom: 20px;
}
.card__ico svg { width: 28px; height: 28px; }

.card h3 {
  font-family: var(--ff-cond);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card p { color: var(--steel); font-size: .96rem; margin-bottom: 22px; }

.card__tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 56, 63, .28);
  font-family: var(--ff-cond);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--red-bright);
}

/* ------------------------------- 11. Proceso ----------------------------- */
.process {
  background: var(--ink-2);
  border-block: 1px solid var(--line-soft);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), transparent 60%), var(--ink-3);
}
.step__num {
  font-family: var(--ff-display);
  font-size: 3.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(240, 56, 63, .55);
  display: block;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--ff-cond);
  font-size: 1.42rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step p { color: var(--steel); font-size: .95rem; }

/* ---------------------- 11b. Factores del precio ------------------------ */
.price {
  margin-top: clamp(34px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(24px, 3.6vw, 52px);
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--r);
  border: 1px solid rgba(255, 192, 30, .2);
  background:
    radial-gradient(120% 110% at 100% 0%, rgba(255, 192, 30, .07), transparent 58%),
    var(--ink-3);
}

.price__title {
  font-family: var(--ff-cond);
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.06;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.price__lead { color: var(--steel); font-size: .97rem; }
.price__lead strong { color: var(--gold); }

.price__list { display: grid; align-content: start; }
.price__list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.price__list li:first-child { padding-top: 0; }
.price__list li:last-child { padding-bottom: 0; border-bottom: 0; }

.price__ico {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 192, 30, .1);
  border: 1px solid rgba(255, 192, 30, .26);
  color: var(--gold);
}
.price__ico svg { width: 22px; height: 22px; }
.price__list li > strong { font-size: 1.02rem; font-weight: 600; }
.price__list li > span:not(.price__ico) { color: var(--steel); font-size: .92rem; }

/* --------------------- 11c. Testimonios (por activar) ------------------- */
.quotes { background: var(--ink-2); border-block: 1px solid var(--line-soft); }
.quotes__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), transparent 62%), var(--ink-3);
}
.quote__text { color: #D5D9DF; font-size: 1rem; }
.quote__text::before {
  content: "\201C";
  display: block;
  font-family: var(--ff-display);
  font-size: 2.8rem;
  line-height: .55;
  color: var(--red-bright);
  margin-bottom: 12px;
}
.quote__by { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.quote__by strong { display: block; font-size: .98rem; }
.quote__by span { font-size: .86rem; color: var(--steel-dim); }

/* ------------------------------ 12. Galería ------------------------------ */
/* Retícula curada de 4 columnas: las fotos horizontales abarcan 2 columnas y
   fijan la altura de la fila; las verticales se estiran y recortan con
   object-fit. Cualquier foto extra que se agregue después fluye sola. */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--ink-3);
  aspect-ratio: 3 / 4;
  min-height: 220px;
}
.shot--wide { grid-column: span 2; aspect-ratio: 3 / 2; }

.shot__btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}
.shot__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s;
}
.shot__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 10, .85), transparent 52%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.shot__btn:hover img { transform: scale(1.06); }
.shot__btn:hover::after { opacity: 1; }

.shot figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-family: var(--ff-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity .4s, transform .4s var(--ease);
  pointer-events: none;
}
.shot:hover figcaption { opacity: 1; transform: none; }

.shot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 42px solid var(--red);
  border-right: 42px solid transparent;
  opacity: 0;
  transition: opacity .35s;
  z-index: 2;
}
.shot:hover::before { opacity: 1; }

/* ------------------------------- 13. Por qué ----------------------------- */
.why {
  background: var(--ink-2);
  border-block: 1px solid var(--line-soft);
}
.why__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
}
.why__media { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.why__media img { width: 100%; }
.why__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 10, .8), transparent 46%);
}
.why__tag {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--red);
  font-family: var(--ff-cond);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.checks { display: grid; gap: 4px; }
.checks li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "";
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(216, 35, 42, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F0383F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5 9.5 17.5 19.5 6.5'/%3E%3C/svg%3E") center / 15px no-repeat;
  border: 1px solid rgba(240, 56, 63, .28);
  margin-top: 2px;
}
.checks strong { display: block; font-size: 1.04rem; font-weight: 600; }
.checks span { color: var(--steel); font-size: .94rem; }

/* ------------------------------ 14. Cobertura ---------------------------- */
.coverage__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.coverage__radar {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 35, 42, .2), transparent 62%);
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(240, 56, 63, .28);
}
/* Anillos fijos: se ven desde el primer pintado. */
.ring--1 { inset: 4%; border-color: rgba(255, 255, 255, .09); }
.ring--2 { inset: 22%; border-color: rgba(255, 255, 255, .12); }
.ring--3 { inset: 40%; border-color: rgba(240, 56, 63, .34); }
/* Anillos que laten encima. */
.ring--pulse { border-color: rgba(240, 56, 63, .55); animation: ripple 4.5s ease-out infinite; }
.ring--p1 { inset: 10%; animation-delay: 0s; }
.ring--p2 { inset: 28%; animation-delay: 1.5s; }
.ring--p3 { inset: 46%; animation-delay: 3s; }

.radar__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 6px rgba(240, 56, 63, .16), 0 0 22px 5px rgba(240, 56, 63, .5);
}
.radar__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  text-align: center;
  font-family: var(--ff-cond);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.radar__label small {
  display: block;
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--steel-dim);
  font-weight: 600;
}

.coverage__lists { display: grid; gap: 30px; }
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pills li {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(240, 56, 63, .3);
  background: rgba(216, 35, 42, .1);
  font-size: .9rem;
  font-weight: 500;
}
.pills--soft li {
  border-color: var(--line);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .82);
}

/* --------------------------------- 15. CTA ------------------------------- */
.cta {
  position: relative;
  padding: clamp(64px, 9vw, 108px) 0 clamp(70px, 9vw, 112px);
  background:
    radial-gradient(120% 130% at 50% -10%, var(--red-bright) 0%, var(--red) 34%, var(--red-deep) 78%, #5E0A0F 100%);
  overflow: hidden;
  text-align: center;
}
.cta__stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(0, 0, 0, .09) 0 16px, transparent 16px 52px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 30%, transparent 70%, #000);
  mask-image: linear-gradient(to bottom, #000, transparent 30%, transparent 70%, #000);
  pointer-events: none;
}
.cta__in { position: relative; }
.cta .badge { margin-bottom: 20px; }

.cta__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: .98;
  text-transform: uppercase;
  text-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.cta__sub {
  margin-top: 18px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
}

.cta__cards {
  margin-top: clamp(32px, 4.5vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin-inline: auto;
}

.phonecard {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.phonecard:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -18px rgba(0, 0, 0, .7); }
.phonecard__ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(216, 35, 42, .1);
  color: var(--red);
  flex: none;
}
.phonecard__ico svg { width: 23px; height: 23px; }
.phonecard__body { display: flex; flex-direction: column; min-width: 0; }
.phonecard__body small {
  font-family: var(--ff-cond);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel-dim);
}
.phonecard__body strong {
  font-size: 1.22rem;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.phonecard__go { margin-left: auto; font-size: 1.3rem; color: var(--red); flex: none; }
.phonecard--wa .phonecard__ico { background: rgba(37, 211, 102, .14); color: #12854A; }
.phonecard--wa .phonecard__go { color: #12854A; }

.cta__foot { margin-top: 26px; font-size: .94rem; color: rgba(255, 255, 255, .8); }

/* -------------------------------- 16. Footer ----------------------------- */
.footer { background: #050507; border-top: 1px solid var(--line-soft); padding-top: 54px; }
.footer__in {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand .brand__text { font-size: 1.85rem; margin-bottom: 14px; }
.footer__brand p { color: var(--steel); font-size: .95rem; max-width: 34ch; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { color: var(--steel); font-size: .96rem; transition: color .2s; }
.footer__col a:hover { color: var(--gold); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--steel-dim);
  font-size: .85rem;
}

/* ---------------------------------- 17. FAB ------------------------------ */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s;
}
.fab.is-visible { opacity: 1; visibility: visible; transform: none; }

.fab__btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .8);
  transition: transform .28s var(--ease);
}
.fab__btn svg { width: 27px; height: 27px; }
.fab__btn:hover { transform: scale(1.07); }
.fab__btn--wa { background: #25D366; color: #05310F; }
.fab__btn--tel { background: var(--red); color: #fff; }
.fab__btn--tel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: sonar 2.4s ease-out infinite;
}
.fab__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  translate: 0 -50%;
  padding: 7px 13px;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.fab__btn:hover .fab__tip { opacity: 1; }

/* ------------------------------- 18. Lightbox ---------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 26px;
  background: rgba(4, 4, 6, .94);
  backdrop-filter: blur(6px);
  animation: fade .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox__fig {
  display: grid;
  place-items: center;
  gap: 14px;
  max-height: 100%;
  min-width: 0;
}
.lightbox__fig img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
}
.lightbox__fig figcaption {
  font-family: var(--ff-cond);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.lightbox__close:hover { background: var(--red); border-color: var(--red); }
.lightbox__nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}
.lightbox__nav:hover { background: var(--red); border-color: var(--red); }

/* --------------------------- 19. Efectos globales ------------------------ */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 80;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--red), var(--red-bright) 60%, var(--gold));
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(216, 35, 42, .16), transparent 62%);
  transition: opacity .5s;
  will-change: transform;
}

/* La aparición usa animación (no transición) para que el efecto 3D de las
   tarjetas no herede la duración de .7s. Al terminar, el JS retira las clases
   y el elemento vuelve a su estado normal. */
.js .reveal { opacity: 0; }
.js .reveal.is-in { animation: revealUp .7s var(--ease) both; }

/* ---------------------- 19b. Fuera de horario ---------------------------- */
/* main.js pone .is-closed en <html> cuando ya cerró. Dos consecuencias:
   1. La torreta se apaga y el mensaje deja de prometer atención inmediata.
   2. La acción principal pasa a ser WhatsApp, porque una llamada a las 2 AM
      no la contesta nadie, pero un mensaje sí se lee a las 8. */
.is-closed .strobe i,
.is-closed .dot {
  background: var(--steel-dim);
  box-shadow: none;
  animation: none;
}
.is-closed [data-hours-text] { color: var(--steel); }
.is-closed .badge { border-color: var(--line); }

/* El botón del header: se cambia el icono y el texto por WhatsApp. */
.ico--wa { display: none; }
.is-closed .ico--wa { display: block; }
.is-closed .ico--phone { display: none; }

/* Hero: WhatsApp se va al frente y toma el color de acción principal. */
.hero__wa .ico { color: #25D366; }
.is-closed .hero__wa {
  order: -1;
  background: #25D366;
  border-color: transparent;
  color: #05310F;
  box-shadow: 0 20px 50px -18px rgba(37, 211, 102, .65);
}
.is-closed .hero__wa .ico { color: inherit; }
.is-closed .hero__wa:hover { box-shadow: 0 24px 56px -16px rgba(37, 211, 102, .8); }
.is-closed .hero__cta .btn--red {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: none;
  color: rgba(255, 255, 255, .82);
}

/* Botones flotantes: el de llamar desaparece, el de WhatsApp crece y late. */
.is-closed .fab__btn--tel { display: none; }
.is-closed .fab__btn--wa {
  width: 62px;
  height: 62px;
  box-shadow: 0 18px 40px -12px rgba(37, 211, 102, .55);
}
.is-closed .fab__btn--wa svg { width: 31px; height: 31px; }
.is-closed .fab__btn--wa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: sonar 2.4s ease-out infinite;
}

/* Tarjetas de contacto: primero WhatsApp, y las llamadas pasan a segundo plano. */
.is-closed .phonecard--wa { order: -1; }
.is-closed .phonecard--tel {
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .5);
}
.is-closed .phonecard--tel .phonecard__ico {
  background: rgba(20, 20, 24, .07);
  color: var(--steel-dim);
}
.is-closed .phonecard--tel .phonecard__go { color: var(--steel-dim); }
.is-closed .phonecard--tel .phonecard__body small { color: var(--red); }

/* ------------------------------- 20. Animaciones ------------------------- */
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}
@keyframes strobe {
  0%, 45%   { opacity: 1; }
  50%, 100% { opacity: .22; }
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(240, 56, 63, .65); }
  70%  { box-shadow: 0 0 0 9px rgba(240, 56, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 56, 63, 0); }
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 0; }
  35%  { opacity: 1; }
  75%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(16px); opacity: 0; }
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes ripple {
  0%   { transform: scale(.72); opacity: 0; }
  22%  { opacity: 1; }
  100% { transform: scale(1.06); opacity: 0; }
}
@keyframes sonar {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.75); opacity: 0; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------- 21. Responsive -------------------------- */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .quotes__list { grid-template-columns: repeat(2, 1fr); }
  .nav > a:not(.btn) { padding: 10px 9px; font-size: .9rem; }
  .nav > a:not(.btn)::after { left: 9px; right: 9px; }
}

@media (max-width: 940px) {
  :root { --header-h: 66px; }

  .burger { display: flex; }

  /* Anclado al header (no al viewport) para que no quede hueco al hacer
     scroll, cuando la barra superior ya no está visible. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 22px 26px;
    background: rgba(6, 6, 8, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s, transform .28s var(--ease), visibility .28s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 1);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > a:not(.btn) {
    padding: 15px 4px;
    font-size: 1.08rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin: 18px 0 0; justify-content: center; }

  .why__grid,
  .coverage__grid,
  .price { grid-template-columns: 1fr; }
  .coverage__radar { max-width: 300px; }
  .cta__cards { grid-template-columns: repeat(2, 1fr); max-width: 660px; }
  .quotes__list { grid-template-columns: repeat(2, 1fr); }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__bg { background-position: 66% 45%; }
  .hero__scrim {
    background:
      linear-gradient(to bottom,
        rgba(6, 6, 8, .86) 0%,
        rgba(6, 6, 8, .82) 34%,
        rgba(6, 6, 8, .74) 58%,
        rgba(8, 8, 10, .95) 100%);
  }
  .hero__stripes { -webkit-mask-image: linear-gradient(to bottom, #000, transparent 60%); mask-image: linear-gradient(to bottom, #000, transparent 60%); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .topbar__msg { display: none; }
  .topbar__in { justify-content: center; min-height: 40px; }
  .topbar__phones { gap: 16px; }
  .topbar__phones a { font-size: 1.12rem; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 18px; border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n + 3) { border-bottom: 0; }
  .stat::before { left: 18px; }

  .grid-3, .steps { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: 1fr; }
  .shot--wide { grid-column: span 1; }
  .quotes__list { grid-template-columns: 1fr; }

  .card, .step { padding: 26px 22px; }

  .hero { min-height: auto; padding-top: 34px; padding-bottom: 52px; }
  .badge { margin-bottom: 16px; font-size: 13.5px; padding: 7px 13px 7px 11px; }
  .hero__title { font-size: clamp(3rem, 17vw, 4.4rem); margin-bottom: 16px; }
  .hero__lead { margin-bottom: 18px; font-size: 1rem; }
  .chips { margin-bottom: 22px; gap: 7px; }
  .chips li { padding: 6px 12px; font-size: .82rem; }
  .hero__cta { gap: 11px; margin-bottom: 16px; }
  .btn--lg { flex: 1 1 100%; justify-content: center; }
  .btn--lg .btn__stack { align-items: center; text-align: center; }
  .hero__scroll { display: none; }

  .footer__in { grid-template-columns: 1fr; gap: 30px; }
  .footer__legal { flex-direction: column; }

  .fab { right: 14px; bottom: 14px; }
  .fab__btn { width: 52px; height: 52px; }
  .fab__tip { display: none; }

  .lightbox { padding: 14px; grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__nav--prev { left: 18px; }
  .lightbox__nav--next { right: 18px; }
  .lightbox__fig img { max-height: 70vh; }
}

/* Los telefonos de contacto necesitan ancho completo antes que el resto. */
@media (max-width: 620px) {
  .cta__cards { grid-template-columns: 1fr; max-width: 420px; }
}

/* ------------------------ 22. Menos movimiento --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; animation: none; }
  .cursor-glow { display: none; }
  .hero__bg { animation: none; }
}

/* ------------------------------- 23. Impresión --------------------------- */
@media print {
  .topbar, .header, .fab, .lightbox, .marquee, .hero__scroll, .scroll-progress, .cursor-glow { display: none !important; }
  body { background: #fff; color: #000; }
}
