/* ==========================================================================
   Rincón del Carnicero — Landing
   Identidad: negro, blanco y rojo. Serif gruesa en mayúsculas para títulos.
   ========================================================================== */

:root {
  --black: #070707;
  --ink: #0d0d0d;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --line: rgba(255, 255, 255, 0.09);
  --white: #f7f5f2;
  --muted: #a9a6a2;
  --red: #e3121b;
  --red-deep: #9e0a10;
  --red-glow: rgba(227, 18, 27, 0.35);

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Elementos comunes ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}

.rule {
  display: inline-block;
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.section {
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  text-transform: uppercase;
}

.section-title em,
.hero-title em,
.cta-title em {
  font-style: normal;
  color: var(--red);
}

.section-lead {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.075rem;
  max-width: 58ch;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn-lg {
  padding: 1.05rem 1.6rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--red-glow);
}

.btn-primary:hover {
  background: #f5232c;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(227, 18, 27, 0.6);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost svg {
  transition: transform 0.25s var(--ease);
}

.btn-ghost:hover svg {
  transform: translateX(3px);
}

/* ---------- Encabezado ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 7, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
}

.brand-small {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--red);
}

.brand-big {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav ul a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(247, 245, 242, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav ul a:hover {
  color: var(--white);
}

.nav ul a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-of-type(2) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-of-type(3) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-of-type(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  animation: heroZoom 18s var(--ease) both;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.82) 34%, rgba(7, 7, 7, 0.15) 70%, rgba(7, 7, 7, 0.1) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 28%);
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Franjas diagonales como en el banner */
.hero-slash {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
}

.hero-slash::before,
.hero-slash::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-slash--top {
  top: 0;
  left: 0;
}

.hero-slash--top::before {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  clip-path: polygon(0 0, 40% 0, 0 22%);
}

.hero-slash--top::after {
  background: var(--red);
  clip-path: polygon(46% 0, 49% 0, 0 27%, 0 25.4%);
}

.hero-slash--bottom {
  right: 0;
  bottom: 0;
}

.hero-slash--bottom::before {
  background: linear-gradient(315deg, var(--red) 0%, var(--red-deep) 100%);
  clip-path: polygon(100% 78%, 100% 100%, 60% 100%);
}

.hero-slash--bottom::after {
  background: var(--red);
  clip-path: polygon(100% 73%, 100% 74.6%, 51% 100%, 54% 100%);
}

.hero-content {
  padding-block: 4rem 6rem;
}

.hero-content > * {
  max-width: 620px;
}

.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.8rem, 7.2vw, 5.6rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: rgba(247, 245, 242, 0.78);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(247, 245, 242, 0.75);
}

.hero-location svg {
  color: var(--red);
}

.hero-photo-mobile {
  display: none;
}

/* ---------- Cinta ---------- */

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--red);
  transform: rotate(-1.6deg);
  margin: -1.5rem -2rem 0;
  padding-block: 0.95rem;
  box-shadow: 0 20px 50px -20px rgba(227, 18, 27, 0.5);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #fff;
}

.ticker span::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 1.6rem;
  background: var(--black);
  transform: rotate(45deg);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Productos ---------- */

.products {
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(227, 18, 27, 0.08), transparent 70%),
    var(--black);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.card {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 18, 27, 0.35);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(227, 18, 27, 0.08);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.3s;
}

.card-media img.is-swapping {
  opacity: 0;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(0deg, var(--surface), transparent);
  pointer-events: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  padding: 0.5rem 1.6rem 1.6rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--red);
}

.card-title {
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--white);
  align-self: flex-start;
}

.card-link svg {
  color: var(--red);
  transition: transform 0.25s var(--ease);
}

.card-link:hover svg {
  transform: translateX(4px);
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(247, 245, 242, 0.85);
  background: rgba(255, 255, 255, 0.03);
}

/* Tarjeta ancha: imagen y texto lado a lado */
.card--wide {
  grid-column: span 8;
  flex-direction: row;
}

.card--wide .card-media {
  flex: 0 0 52%;
  aspect-ratio: auto;
  min-height: 100%;
}

.card--wide .card-media::after {
  inset: 0 0 0 auto;
  width: 35%;
  height: auto;
  background: linear-gradient(270deg, var(--surface), transparent);
}

.card--wide .card-body {
  justify-content: center;
  padding: 2.5rem 2.25rem;
}

.card--wide .card-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

/* Tarjeta alta: ocupa dos filas y la imagen llena el espacio libre */
.card--tall {
  grid-row: span 2;
}

.card--tall .card-media {
  flex: 1 1 auto;
  min-height: 320px;
}

.card--tall .card-body {
  flex: 0 0 auto;
}

/* Botones dentro de tarjetas quedan por encima del enlace extendido */
.thumbs,
.swatches {
  position: relative;
  z-index: 2;
}

.thumbs {
  display: grid;
  gap: 0.5rem;
}

.thumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  font: 600 0.88rem var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.thumb img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.thumb:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.thumb.is-active {
  border-color: var(--red);
  background: rgba(227, 18, 27, 0.08);
}

.swatches {
  display: flex;
  gap: 0.6rem;
}

.swatch {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.swatch:hover {
  transform: scale(1.08);
}

.swatch.is-active {
  box-shadow: 0 0 0 2px var(--red);
}

.swatch--black { background: #111; }
.swatch--white { background: #f2f2f2; }

/* ---------- Nosotros ---------- */

.about {
  background: var(--ink);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about-media {
  position: relative;
  margin: 0;
}

.about-media > img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  z-index: -1;
  border: 2px solid var(--red);
  border-radius: var(--radius);
}

.about-media {
  isolation: isolate;
}

.about-badge {
  position: absolute;
  right: -1.5rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem 0.75rem 0.75rem;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.9);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-badge img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.features {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  gap: 1.1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s;
}

.feature:hover {
  border-color: rgba(227, 18, 27, 0.4);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(227, 18, 27, 0.12);
  color: var(--red);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.feature p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Cómo pedir ---------- */

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.4rem;
  padding-bottom: 2.25rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 60px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--red), transparent);
}

.step:last-child::before {
  display: none;
}

.step-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--red);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  background: var(--black);
}

.step h3 {
  align-self: end;
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  padding-top: 0.4rem;
}

.step p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.steps-photos {
  position: relative;
  aspect-ratio: 1.1 / 1;
}

.photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--a {
  inset: 0 18% 30% 0;
}

.photo--b {
  inset: 38% 0 0 30%;
  border: 6px solid var(--black);
  outline: 1px solid var(--line);
}

/* ---------- Contacto ---------- */

.cta {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}

.cta-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 7, 0.95) 0%, rgba(7, 7, 7, 0.7) 55%, rgba(7, 7, 7, 0.35) 100%);
}

.cta-inner > * {
  max-width: 640px;
}

.cta-title {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}

.cta-lead {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: rgba(247, 245, 242, 0.8);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(247, 245, 242, 0.85);
  font-size: 0.95rem;
}

.contact-list svg {
  color: var(--red);
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ---------- Pie ---------- */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--black);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Botón flotante ---------- */

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(227, 18, 27, 0.7);
  transition: transform 0.25s var(--ease);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.6); opacity: 0; }
}

/* ---------- Animaciones de aparición ---------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.js-reveal .hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.js-reveal .hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.js-reveal .hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.js-reveal .hero .reveal:nth-child(5) { transition-delay: 0.32s; }

.js-reveal .card.reveal.is-visible:hover {
  transform: translateY(-4px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .card,
  .card--wide {
    grid-column: span 6;
  }

  .card--wide {
    grid-column: span 12;
  }

  .card--tall {
    grid-row: span 1;
  }

  .card--tall .card-media {
    flex: none;
  }

  .about-badge {
    right: 1rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .site-header .brand img {
    width: 52px;
    height: 52px;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 2;
  }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(7, 7, 7, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .nav ul a {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--white);
  }

  .site-header:has(.nav.is-open) {
    backdrop-filter: none;
  }

  .about-grid,
  .steps-layout {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 480px;
  }
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .hero-media {
    display: none;
  }

  .hero-content {
    padding-block: 3rem 2rem;
  }

  .hero-photo-mobile {
    display: block;
    position: relative;
    margin: 0 1.25rem 3.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
  }

  .hero-photo-mobile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 75% center;
  }

  .hero-slash {
    width: 90vw;
    height: 90vw;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .ticker {
    margin-top: -1.75rem;
  }

  .card,
  .card--wide {
    grid-column: span 12;
  }

  .card--wide {
    flex-direction: column;
  }

  .card--wide .card-media {
    flex: none;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .card--wide .card-media::after {
    inset: auto 0 0;
    width: auto;
    height: 35%;
    background: linear-gradient(0deg, var(--surface), transparent);
  }

  .card--wide .card-body {
    padding: 0.5rem 1.6rem 1.6rem;
  }

  .about-media::before {
    inset: 0.75rem -0.75rem -0.75rem 0.75rem;
  }

  .steps-photos {
    aspect-ratio: 1 / 1;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
