/* =====================================================
   IRON FORGE — Estilos
   Arquetipo de layout: "BRUTALIST BLUEPRINT GRID"
   (rejilla de planos declasificada / terminal militar)
   Paleta: negro #0a0a0a, concreto #161616/#1c1c1c,
   texto #ededed, rojo #e11d2a / #b3141f
   Todo con esquinas duras, bordes gruesos y monoespacio.
   ===================================================== */

/* ---------- Variables ---------- */
:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --text: #ededed;
  --muted: #9a9a9a;
  --red: #e11d2a;
  --red-dark: #b3141f;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --mono: 'Oswald', ui-monospace, 'Courier New', monospace;
  --maxw: 1240px;
  --ease: all .3s ease;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Evitar scroll horizontal en movil */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  /* Textura sutil de rejilla tipo blueprint */
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 110px 0; position: relative; }

/* ---------- Tipografia base ---------- */
h1, h2, h3, h4 { font-family: 'Anton', 'Oswald', sans-serif; text-transform: uppercase; line-height: .92; letter-spacing: .5px; }

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

/* Etiqueta monoespacio con tracking ancho (estilo terminal) */
.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

/* Regla horizontal bajo cada etiqueta de seccion */
.rule {
  border: none;
  border-top: 2px solid var(--border-strong);
  margin: 0 0 26px;
}

.section-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin-bottom: 22px;
}

.section-head { margin-bottom: 48px; }

/* ---------- Botones (utilitarios, esquinas duras) ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .9rem;
  padding: 15px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--ease);
  border-radius: 0; /* esquinas duras */
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(225,29,42,.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}

.btn-block { width: 100%; text-align: center; }

/* ===================================================
   TOP STATUS BAR (terminal monoespacio)
   =================================================== */
.statusbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  height: 34px;
  background: #060606;
  border-bottom: 1px solid var(--border);
}
.statusbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.status-item { flex-shrink: 0; }
.status-sep { color: var(--red); flex-shrink: 0; }
.status-coords { margin-left: auto; color: var(--red); }

/* ===================================================
   NAVBAR (utilitario, bordes gruesos, debajo del status bar)
   =================================================== */
.navbar {
  position: fixed;
  top: 34px; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--border);
  transition: var(--ease);
}
.navbar.scrolled {
  background: rgba(10,10,10,.97);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 6px 30px rgba(0,0,0,.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.logo:hover { color: var(--red); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  transition: var(--ease);
}
/* Subrayado animado */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .3s ease;
}
.nav-link:hover { color: var(--red); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--red); }

.nav-cta { padding: 11px 22px; }
.nav-cta::after { display: none; }

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  width: 26px; height: 3px;
  background: var(--text);
  transition: var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================================================
   HERO — titular gigante a la izquierda + rail de datos
   Rejilla visible enmarcando el bloque.
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* compensar status bar (34) + navbar (70) */
  padding-top: 104px;
  background:
    url('https://images.unsplash.com/photo-1623428187969-5da2dcea5ebf?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat fixed;
}
/* Overlay oscuro + rejilla fina tipo plano por encima */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.82) 50%, rgba(10,10,10,.65) 100%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 220px;
  align-items: stretch;
  /* Marco de rejilla visible alrededor del hero */
  border: 2px solid var(--border-strong);
}

/* Columna principal del titular */
.hero-main {
  padding: 54px 48px;
  /* Animacion de entrada desde la izquierda */
  opacity: 0;
  transform: translateX(-60px);
  animation: heroIn 1s cubic-bezier(.2,.7,.2,1) .2s forwards;
}
@keyframes heroIn {
  to { opacity: 1; transform: translateX(0); }
}

.hero-label { color: var(--red); }
.hero-title {
  /* Titular masivo, alineado a la izquierda, cada palabra apilada */
  font-size: clamp(3.4rem, 12vw, 8.4rem);
  margin: 10px 0 24px;
  text-align: left;
  text-shadow: 0 6px 30px rgba(0,0,0,.6);
}
.hero-subtitle {
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  color: #cfcfcf;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Rail lateral de datos / coordenadas */
.hero-rail {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--border-strong);
  background: rgba(6,6,6,.55);
}
.rail-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.rail-block:last-child { border-bottom: none; }
.rail-key {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-val {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 1px;
  color: #fff;
}

/* ===================================================
   STATS / CONTADORES (fila bordeada)
   =================================================== */
.stats {
  background: var(--surface);
  border-top: 3px solid var(--red);
  border-bottom: 2px solid var(--border);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  border: 2px solid var(--border);
}
.stat { padding: 24px 16px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-number {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===================================================
   NOSOTROS
   =================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p { color: var(--muted); margin-bottom: 26px; }
.feature-list { margin-bottom: 32px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  letter-spacing: .5px;
}
.tick { color: var(--red); font-weight: 800; font-size: 1.2rem; }

.about-image { position: relative; }
.about-image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border: 3px solid var(--border);
  filter: grayscale(.25) contrast(1.05);
  transition: var(--ease);
}
.about-image:hover img {
  filter: grayscale(0) contrast(1.1);
  border-color: var(--red);
}
.about-badge {
  position: absolute;
  bottom: 24px; right: -14px;
  background: var(--red);
  color: #fff;
  font-family: 'Anton', sans-serif;
  letter-spacing: 2px;
  padding: 12px 22px;
  font-size: 1.2rem;
}

/* ===================================================
   SERVICIOS / WODS — tabla brutalista de filas
   (NO es una rejilla de tarjetas)
   =================================================== */
.services { background: var(--surface); }
.services-table {
  border: 2px solid var(--border-strong);
  border-bottom: none; /* cada fila aporta su borde inferior */
}
.service-row {
  display: grid;
  grid-template-columns: 90px 280px 1fr 48px;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border-bottom: 2px solid var(--border-strong);
  color: var(--text);
  transition: background .25s ease, color .25s ease, padding-left .25s ease;
}
.row-index {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}
.row-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.35rem;
}
.row-desc { color: var(--muted); font-size: .95rem; }
.row-arrow {
  font-size: 1.6rem;
  text-align: right;
  color: var(--muted);
  transition: var(--ease);
}
/* Hover: la fila se rellena con el rojo de acento */
.service-row:hover {
  background: var(--red);
  color: #fff;
  padding-left: 40px;
}
.service-row:hover .row-index,
.service-row:hover .row-desc,
.service-row:hover .row-arrow { color: #fff; }

/* ===================================================
   PRECIOS — modulos bordeados, destacado invertido
   =================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
  border: 2px solid var(--border-strong);
}
.price-card {
  position: relative;
  background: var(--surface);
  border-right: 2px solid var(--border-strong);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  transition: var(--ease);
  overflow: hidden; /* contiene el ribbon rotado */
}
.price-card:last-child { border-right: none; }
.price-card:hover {
  background: var(--surface-2);
}
/* Plan destacado: relleno rojo (invertido) */
.price-card.featured {
  background: var(--red);
  color: #fff;
}
.price-card.featured .plan-name { color: #fff; }
.price-card.featured .plan-price { color: #fff; }
.price-card.featured .plan-price .period { color: rgba(255,255,255,.8); }
.price-card.featured .plan-features li { border-color: rgba(255,255,255,.25); color: #fff; }
.price-card.featured .plan-features li::before { color: #fff; }
.price-card.featured .plan-features li.off { color: rgba(255,255,255,.55); }
.price-card.featured .plan-features li.off::before { color: rgba(255,255,255,.55); }
.price-card.featured .btn-primary {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.price-card.featured .btn-primary:hover {
  background: #060606;
  color: #fff;
  border-color: #060606;
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
}

.ribbon {
  position: absolute;
  top: 22px; right: -42px;
  background: #060606;
  color: #fff;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 50px;
  transform: rotate(45deg);
}

.plan-name {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.1rem;
  color: var(--red);
  margin-bottom: 14px;
}
.plan-price {
  font-family: 'Anton', sans-serif;
  font-size: 3.4rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 26px;
}
.plan-price .currency { font-size: 1.6rem; vertical-align: super; }
.plan-price .period { font-size: .85rem; font-family: 'Inter', sans-serif; color: var(--muted); margin-left: 4px; }

.plan-features { flex: 1; margin-bottom: 28px; }
.plan-features li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
  color: var(--text);
}
.plan-features li::before { content: '✓  '; color: var(--red); font-weight: 700; }
.plan-features li.off { color: #555; text-decoration: line-through; }
.plan-features li.off::before { content: '✕  '; color: #555; }

/* ===================================================
   GALERIA — rejilla bordeada compacta (masonry-ish)
   =================================================== */
.gallery { background: var(--surface); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0;
  border: 2px solid var(--border-strong);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  cursor: pointer;
}
/* Mosaicos que ocupan 2 columnas / 2 filas */
.span-2 { grid-column: span 2; }
.span-row { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.4) contrast(1.05);
  transition: transform .5s ease, filter .5s ease;
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(225,29,42,.4), transparent 60%);
  opacity: 0;
  transition: var(--ease);
}
.gallery-item figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--ease);
}
.gallery-item:hover img { transform: scale(1.12); filter: grayscale(0) contrast(1.1); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ===================================================
   TESTIMONIOS
   =================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--border-strong);
}
.testi-card {
  background: var(--surface);
  border-right: 2px solid var(--border-strong);
  border-top: 3px solid var(--red);
  padding: 34px 30px;
  transition: var(--ease);
}
.testi-card:last-child { border-right: none; }
.testi-card:hover {
  background: var(--surface-2);
}
.stars { color: var(--red); letter-spacing: 3px; margin-bottom: 16px; font-size: 1.1rem; }
.testi-card p { color: #cfcfcf; font-style: italic; margin-bottom: 24px; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-author img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 0; /* esquinas duras */
  border: 2px solid var(--red);
}
.t-name { display: block; font-weight: 700; letter-spacing: .5px; }
.t-role { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }

/* ===================================================
   CONTACTO
   =================================================== */
.contact { background: var(--surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border: 2px solid var(--border-strong);
}
.contact-info {
  padding: 40px;
  border-right: 2px solid var(--border-strong);
}
.contact-info > p { color: var(--muted); margin-bottom: 30px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  border-radius: 0;
  transition: var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #6a6a6a; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,29,42,.15);
}
.contact-form textarea { resize: vertical; }
.contact-form input.invalid,
.contact-form select.invalid,
.contact-form textarea.invalid { border-color: var(--red); background: rgba(225,29,42,.06); }

.form-feedback { font-size: .9rem; font-weight: 600; min-height: 20px; }
.form-feedback.ok { color: #4ade80; }
.form-feedback.err { color: var(--red); }

.contact-map {
  min-height: 440px;
  filter: grayscale(.3) contrast(1.1);
}
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 440px; }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: #060606;
  border-top: 3px solid var(--red);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { font-size: 1.6rem; display: inline-block; margin-bottom: 14px; }
.footer-col > p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--mono);
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 18px;
  color: #fff;
}
.footer-list li { padding: 7px 0; color: var(--muted); font-size: .92rem; }
.footer-nav a:hover, .footer-list a:hover { color: var(--red); }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--ease);
}
.socials a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-bottom p { font-size: .85rem; color: var(--muted); }
.credit-link { color: var(--red); font-weight: 700; transition: var(--ease); }
.credit-link:hover { text-shadow: 0 0 12px rgba(225,29,42,.8); color: #ff3b48; }

/* ===================================================
   BOTONES FLOTANTES
   =================================================== */
.float-whatsapp {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 1200;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  animation: pulse 2s infinite;
  transition: transform .3s ease;
}
.float-whatsapp:hover { transform: scale(1.12); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.scroll-top {
  position: fixed;
  bottom: 26px; left: 26px;
  z-index: 1200;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--red);
  border: none;
  border-radius: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--ease);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--red-dark); transform: translateY(-4px); }

/* ===================================================
   SCROLL REVEAL
   =================================================== */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 992px) {
  .section { padding: 80px 0; }

  /* El status bar se simplifica (oculta coordenadas que sobran) */
  .status-coords { display: none; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 76%;
    max-width: 340px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: #0d0d0d;
    border-left: 3px solid var(--red);
    transition: right .4s ease;
    z-index: 1050;
  }
  .nav-menu.open { right: 0; }
  .hamburger { display: flex; }

  /* Hero: el rail lateral pasa a fila horizontal abajo para no desbordar */
  .hero-content { grid-template-columns: 1fr; }
  .hero-main { padding: 40px 32px; }
  .hero-rail {
    flex-direction: row;
    border-left: none;
    border-top: 2px solid var(--border-strong);
  }
  .rail-block {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .rail-block:last-child { border-right: none; }
  .rail-val { font-size: 1.1rem; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 2px solid var(--border-strong); }
  .about-image img { height: 420px; }

  /* Servicios: la fila se reordena para 2 columnas */
  .service-row {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "idx name"
      "idx desc";
    gap: 4px 18px;
    row-gap: 6px;
  }
  .row-index { grid-area: idx; align-self: start; }
  .row-name { grid-area: name; }
  .row-desc { grid-area: desc; }
  .row-arrow { display: none; }

  .pricing-grid,
  .testi-grid { grid-template-columns: 1fr; }
  .price-card { border-right: none; border-bottom: 2px solid var(--border-strong); }
  .price-card:last-child { border-bottom: none; }
  .testi-card { border-right: none; border-bottom: 2px solid var(--border-strong); }
  .testi-card:last-child { border-bottom: none; }

  /* Galeria: 2 columnas, se anulan los spans para evitar huecos */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .span-2, .span-row { grid-column: auto; grid-row: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--border); padding-bottom: 24px; }

  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .testi-grid { grid-template-columns: 1fr; }

  .hero { background-attachment: scroll; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }

  /* Status bar: solo lo esencial en movil para no desbordar */
  .statusbar-inner { gap: 10px; font-size: .6rem; letter-spacing: 2px; }
  .status-sep:nth-of-type(2),
  .status-item:nth-of-type(3) { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .about-badge { right: 0; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .hero-main { padding: 32px 22px; }
  .contact-info { padding: 28px 22px; }

  /* Rail del hero apilado en movil estrecho */
  .hero-rail { flex-direction: column; }
  .rail-block { border-right: none; border-bottom: 1px solid var(--border); }
  .rail-block:last-child { border-bottom: none; }

  .float-whatsapp { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .scroll-top { bottom: 18px; left: 18px; }
}

/* ===================================================
   PREFERS-REDUCED-MOTION
   Se mantienen reveal, hover y entrada del hero.
   Solo se desactivan los bucles infinitos decorativos.
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  .float-whatsapp { animation: none; }
  .hero { background-attachment: scroll; }
}
