/* ============ VARIABLES ============ */
:root {
  --yellow: #ffc20e;
  --yellow-light: #ffd84a;
  --yellow-dark: #352500;
  --black: #111111;
  --black-soft: #1c1c1c;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --card-bg: rgba(17, 17, 17, 0.9);
  --font-ui: "Rajdhani", system-ui, sans-serif;
  --font-display: "Saira", "Arial Black", sans-serif;
  --pad-x: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-ui);
  background: var(--yellow);
  color: var(--black);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 11px 20px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s;
}
.btn--dark { background: var(--black); color: var(--yellow); }
.btn--dark:hover { background: var(--white); color: var(--black); }
.btn:hover svg { transform: translateX(4px); }

/* ============ HEADER ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.header.is-scrolled {
  background: rgba(255, 194, 14, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-block: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon { width: 34px; height: 34px; transition: transform 0.5s var(--ease); }
.logo:hover .logo__icon { transform: rotate(-20deg); }
.logo__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.nav { display: flex; align-items: center; }
.nav__list { display: flex; gap: clamp(22px, 4vw, 60px); }
.nav__link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 3px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; }

.burger {
  display: none;
  width: 34px; height: 26px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.burger span { height: 3px; background: var(--black); transition: 0.3s; }
.burger.is-open span:nth-child(1) { transform: translateY(11.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-11.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* Capa 1 — fondo */
.hero__bg { position: absolute; inset: -30px; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

/* Engranes */
.gear {
  position: absolute;
  z-index: 0;
  opacity: 0.1;
  animation: spin 30s linear infinite;
  pointer-events: none;
}
.gear--a { width: 280px; top: 10%; left: -70px; }
.gear--b { width: 190px; bottom: 22%; right: 4%; animation-direction: reverse; animation-duration: 22s; }
@keyframes spin { to { rotate: 360deg; } }

/* Capa 2 — título detrás del personaje */
.hero__title {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -64%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(5rem, 20vw, 18.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--black);
  user-select: none;
}
.hero__title-fill {
  display: block;
  background: linear-gradient(180deg, #111 0 62%, #2b2b2b 62% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__tag {
  position: absolute;
  z-index: 1;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 2.1rem);
  letter-spacing: 0.06em;
}
.hero__tag b { font-variant-numeric: tabular-nums; }
.hero__tag--top  { top: 21%; right: 13%; }
.hero__tag--left {
  top: 61%; left: 11%;
  padding: 4px 12px;
  background: var(--black);
  color: var(--yellow);
}

/* Capa 3 — personaje */
.hero__character {
  position: absolute;
  z-index: 2;
  bottom: -3vh;
  left: 50%;
  width: min(60vh, 520px);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__character img {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.35));
  animation: float 5s ease-in-out infinite;
  animation-delay: 1.4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Círculo negro detrás del mecánico: tapa el centro del título */
.hero__halo {
  position: absolute;
  top: -2%;
  left: 50%;
  width: 104%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, #222 0 55%, #111 70%);
  box-shadow:
    0 0 0 8px var(--yellow),
    0 0 0 14px var(--black);
}
.hero__halo::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 194, 14, 0.45);
  animation: spin 40s linear infinite;
}

/* Insignia de calificación */
.badge {
  position: absolute;
  z-index: 3;
  top: 38%;
  right: 9%;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  rotate: 4deg;
}
.badge__stars { color: var(--yellow-dark); letter-spacing: 2px; font-size: 1rem; }
.badge__score { font-weight: 600; font-size: 0.95rem; }
.badge__score b { font-size: 1.6rem; }
.badge__label { font-size: 0.8rem; font-weight: 600; opacity: 0.7; }

/* Capa 4 — tarjetas */
.cards {
  position: absolute;
  z-index: 4;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 0.75fr;
  gap: 12px;
}

.card {
  position: relative;
  padding: 16px 18px 18px;
  background: var(--card-bg);
  color: var(--white);
  border: 1px solid rgba(255, 194, 14, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-8px); border-color: var(--yellow); }

.card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  border-top: 10px solid var(--yellow);
  border-right: 10px solid transparent;
}
.card--notch::after {
  content: "";
  position: absolute;
  top: -12px; left: 0;
  border-bottom: 12px solid var(--black);
  border-right: 12px solid transparent;
}

.card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card__icon {
  flex: none;
  width: 30px; height: 30px;
  padding: 5px;
  background: var(--yellow);
  fill: none; stroke: var(--black); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: rotate 0.5s var(--ease);
}
.card:hover .card__icon { rotate: -12deg; }
.card__title {
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  letter-spacing: 0.03em;
  color: var(--yellow);
}
.card__text {
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-soft);
}

/* Caja URGENCIAS */
.danger {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 3px solid var(--black);
  background: var(--yellow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.danger:hover { transform: translateY(-8px); box-shadow: 6px 6px 0 var(--black); }
.danger__label {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1;
}
.danger__label small {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  padding-left: 0.35em;
  margin-bottom: 4px;
}
.danger__corner {
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--black);
  border-style: solid;
}
.danger__corner--tl { top: 0; left: 0; border-width: 3px 0 0 3px; }
.danger__corner--br { bottom: 0; right: 0; border-width: 0 3px 3px 0; }
.danger__stripes {
  height: 26px;
  background: repeating-linear-gradient(-45deg, var(--black) 0 10px, var(--yellow) 10px 20px);
  background-size: 200% 100%;
  animation: stripes 1.2s linear infinite;
}
@keyframes stripes { to { background-position: -56.6px 0; } }

/* ============ ANIMACIONES DE ENTRADA ============ */
.hero__title,
.hero__tag,
.hero__character,
.badge,
.card,
.danger { opacity: 0; }

.is-loaded .hero__title     { animation: fadeUp 0.9s 0.1s var(--ease) forwards; }
.is-loaded .hero__tag       { animation: fadeIn 0.8s 0.6s ease forwards; }
.is-loaded .hero__character { animation: riseIn 1s 0.25s var(--ease) forwards; }
.is-loaded .badge           { animation: pop 0.6s 1s var(--ease) forwards; }
.is-loaded .card,
.is-loaded .danger          { animation: fadeUpSmall 0.6s var(--ease) forwards; }
.is-loaded .cards > :nth-child(1) { animation-delay: 0.6s; }
.is-loaded .cards > :nth-child(2) { animation-delay: 0.7s; }
.is-loaded .cards > :nth-child(3) { animation-delay: 0.8s; }
.is-loaded .cards > :nth-child(4) { animation-delay: 0.9s; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp {
  from { opacity: 0; translate: 0 40px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes fadeUpSmall {
  from { opacity: 0; translate: 0 20px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes riseIn {
  from { opacity: 0; translate: 0 80px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes pop {
  from { opacity: 0; scale: 0.6; }
  to   { opacity: 1; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__character { width: min(52vh, 440px); }
  .badge { top: 30%; right: 5%; }
}

@media (max-width: 820px) {
  .burger { display: flex; z-index: 60; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    background: var(--yellow) repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 20px, transparent 20px 40px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: center; gap: 26px; }
  .nav__link { font-size: 1.5rem; }
  .nav__cta { display: inline-flex; font-size: 1rem; }

  .hero { min-height: auto; padding-bottom: 24px; display: flex; flex-direction: column; }
  .hero__title { top: 120px; transform: translate(-50%, 0); font-size: 24vw; }
  .hero__tag--top  { top: 92px; right: 6%; }
  .hero__tag--left { top: 88px; left: 6%; font-size: 0.95rem; }
  .hero__tag--top  { font-size: 1.1rem; }
  .badge { top: auto; bottom: auto; right: 2%; position: absolute; top: calc(190px + 70vw); scale: 0.75; }
  .gear--a { width: 180px; }
  .gear--b { display: none; }

  .hero__character {
    position: relative;
    left: auto; bottom: auto;
    transform: none;
    width: min(78vw, 380px);
    margin: calc(150px + 18vw) auto 0;
  }
  .cards {
    position: relative;
    left: auto; right: auto; bottom: auto;
    margin: -50px 16px 0;
    grid-template-columns: 1fr;
  }
  .danger { min-height: 120px; }
}



.danger__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.danger__wa-icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.card__note { display: block; margin-top: 2px; font-size: 0.78rem; opacity: 0.6; }

/* Insignia de calificación (debajo de Nuestra misión) */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4f4f4 0%, #d9d9d9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
  color: #1a1a1a;
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: 0.98rem;
  line-height: 1.2;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rating:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 26px -12px rgba(0, 0, 0, 0.7);
}
.rating__stars {
  position: relative;
  display: inline-block;
  flex: none;
}
.rating__row {
  display: flex;
  gap: 3px;
}
.rating__row svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.rating__row--bg svg { fill: rgba(0, 0, 0, 0.15); }
.rating__row--fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
}
.rating__row--fill svg { fill: #d98b06; }
.rating__text b {
  font-weight: 700;
  font-size: 1.05rem;
}

@media (max-width: 600px) {
  .rating { gap: 10px; padding: 9px 14px; font-size: 0.88rem; }
  .rating__row svg { width: 16px; height: 16px; }
}


/* Beneficios del paquete (consumo / mano de obra) */
.deal__extras--benefits {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.deal__extras--benefits .extra {
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}

/* Ícono: cuadro centrado, sin heredar estilos de texto */
.deal__extras--benefits .extra .extra__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-top: 2px;
  opacity: 1;
  font-size: 0;
  line-height: 0;
  background: var(--yellow);
  border-radius: 12px;
}
.deal__extras--benefits .extra .extra__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Textos (solo los del contenido, no el ícono) */
.deal__extras--benefits .extra b {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.deal__extras--benefits .extra > div > span {
  display: block;
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
  opacity: 0.8;
}
.deal__extras--benefits .extra--dark b { color: var(--yellow); }
.deal__extras--benefits .extra--dark > div > span { color: rgba(255, 255, 255, 0.78); opacity: 1; }

@media (max-width: 600px) {
  .deal__extras--benefits { grid-template-columns: 1fr; }
}