/* =====================================================================
   MADRID GLOW — styles.css
   Archetype: Editorial Dark (noche + fibra óptica)
   Playfair Display (display) · Manrope (body) · JetBrains Mono (meta)
   ===================================================================== */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:      #05060c;
  --bg-2:    #0a0c16;
  --bg-3:    #10131f;
  --text:    #eef1fa;
  --text-2:  #bec5da;
  --mute:    #7e86a1;

  --accent:       #d42b2b;   /* rojo del logo */
  --accent-hover: #e13a3a;
  --wa:           #25d366;   /* verde WhatsApp */

  --violet: #8f7cff;
  --blue:   #5aa7ff;
  --pink:   #ff7ad9;

  --line: rgba(238, 241, 250, 0.1);

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 18px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --red-soft: #ff7a7a;
  --shadow-glow: 0 0 40px rgba(212, 43, 43, 0.18);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "✦ ";
  color: var(--accent-hover);
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 22ch;
}

.section-title em,
.hero-title em {
  font-style: italic;
  color: var(--red-soft);
  background: linear-gradient(100deg, var(--red-soft) 8%, #ffffff 78%, #ffe9e9 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============================================================
   4. Botones y chips
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(140deg, var(--accent-hover), var(--accent) 60%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(212, 43, 43, 0.34);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212, 43, 43, 0.45);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text-2);
  background: rgba(238, 241, 250, 0.02);
}
.btn-ghost:hover {
  border-color: rgba(225, 58, 58, 0.65);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1.1rem 1.4rem;
}
.chips li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-2);
  padding: 0.34rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(238, 241, 250, 0.03);
}

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.1rem;
  background: var(--bg);
  transition: opacity 0.7s var(--ease-soft), visibility 0.7s;
  /* red de seguridad: se oculta sola a los 4.5s aunque falle el JS */
  animation: splashSafety 0.01s 4.5s forwards;
}
.splash img {
  width: 68px; height: 68px;
  border-radius: 50%;
  animation: splashLogo 1.6s var(--ease-out) both;
}
.splash-word {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--mute);
  animation: splashLogo 1.6s 0.15s var(--ease-out) both;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes splashLogo {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes splashSafety {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft),
              backdrop-filter 0.45s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 6, 12, 0.82);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(14px)) {
  .nav.is-scrolled {
    background: rgba(5, 6, 12, 0.6);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }
}

.nav-inner {
  width: min(100% - 2 * var(--gutter), 1320px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.nav-brand img { border-radius: 50%; }
.nav-brand b { font-weight: 800; color: var(--accent-hover); }

.nav-links {
  display: none;
  gap: 1.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
}
.nav-links a {
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.3s var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--accent-hover), #ffffff);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 0.7rem; }
.btn-nav { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn-nav span { display: none; }

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.nav-burger span {
  display: block;
  height: 2px; width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobilenav {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 3rem;
  background: rgba(5, 6, 12, 0.97);
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-soft), visibility 0.45s;
}
.mobilenav.is-open { opacity: 1; visibility: visible; }
.mobilenav nav {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.6rem;
  font-family: var(--serif);
  font-size: 1.7rem;
}
.mobilenav-wa {
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wa);
}
.mobilenav-social {
  display: flex; gap: 2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 7rem 5rem;
  isolation: isolate;
}

.hero-stars {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}

.hero-fade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 90% 55% at 50% 42%, rgba(143, 124, 255, 0.075), transparent 68%),
    linear-gradient(180deg, rgba(5, 6, 12, 0.5) 0%, transparent 26%, transparent 62%, var(--bg) 96%);
  pointer-events: none;
}

.hero-inner {
  width: min(100% - 2 * var(--gutter), 880px);
  margin-inline: auto;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.55rem, 7.4vw, 5.3rem);
  line-height: 1.05;
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 30px rgba(5, 6, 12, 0.8);
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  font-weight: 400;
  color: var(--text-2);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.42rem; }
.hero-meta svg { color: var(--accent-hover); }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex; justify-content: center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 3px; height: 8px;
  border-radius: 3px;
  background: var(--accent-hover);
  animation: scrollHint 2.2s var(--ease-soft) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =============================================================
   8. Marquee
   ============================================================= */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 0.85rem;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  animation: marquee 30s linear infinite;
}
.marquee-track span { white-space: nowrap; }
.marquee-track i {
  font-style: normal;
  color: var(--accent-hover);
  font-size: 0.65rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =============================================================
   9. Servicios
   ============================================================= */
.servicios { background: var(--bg); }

.servicios-grid {
  display: grid;
  gap: 1.3rem;
}

.scard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.scard:hover {
  border-color: rgba(225, 58, 58, 0.45);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}

/* halo que sigue al cursor (variables que fija el JS del tilt) */
.scard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--hx, 50%) var(--hy, 50%),
              rgba(225, 58, 58, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.scard:hover::before { opacity: 1; }

.scard-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.scard-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.scard:hover .scard-media img {
  transform: scale(1.05);
  filter: saturate(1.15) brightness(1.06);
}

.scard-icon {
  display: inline-flex;
  width: 54px; height: 54px;
  align-items: center;
  justify-content: center;
  margin: 1.6rem 1.6rem 0;
  border-radius: 14px;
  color: var(--accent-hover);
  background: rgba(212, 43, 43, 0.1);
  border: 1px solid rgba(212, 43, 43, 0.28);
}

.scard-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.6rem 1.7rem;
}
.scard-body h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.scard-body p { color: var(--text-2); font-size: 0.96rem; }

.scard-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--wa);
}
.scard-cta span { transition: transform 0.35s var(--ease-out); }
.scard-cta:hover span { transform: translateX(5px); }

.scard-feature .scard-body h3 { font-size: 1.85rem; }

/* =============================================================
   10. Specs
   ============================================================= */
.specs {
  padding-block: 0;
}
.specs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem 2.5rem;
  border-block: 1px solid var(--line);
  padding-block: 2.4rem;
}
.spec { display: flex; flex-direction: column; gap: 0.25rem; }
.spec-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1;
  background: linear-gradient(100deg, var(--red-soft) 10%, #ffffff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.spec-label {
  font-size: 0.85rem;
  color: var(--mute);
}
.spec-chip {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  background: var(--bg-2);
}
.spec-chip span:first-child { color: var(--accent-hover); }

/* =============================================================
   11. Proceso
   ============================================================= */
.proceso { background: var(--bg-2); }

.pasos {
  display: grid;
  gap: 1.3rem;
  counter-reset: paso;
}
.paso {
  position: relative;
  padding: 1.7rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 6, 12, 0.5);
}
.paso-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent-hover);
}
.paso h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-block: 0.55rem 0.6rem;
}
.paso p { color: var(--text-2); font-size: 0.95rem; }

/* =============================================================
   12. Galería
   ============================================================= */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.gitem {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.gitem img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.gitem:hover img { transform: scale(1.06); filter: saturate(1.15) brightness(1.07); }

.gitem figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 0.9rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  background: linear-gradient(180deg, transparent, rgba(5, 6, 12, 0.85));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.gitem:hover figcaption,
.gitem:focus-visible figcaption { opacity: 1; transform: none; }

.gplay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 6, 12, 0.55);
  border: 1px solid rgba(238, 241, 250, 0.35);
  transition: transform 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
@supports (backdrop-filter: blur(6px)) {
  .gplay { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
.gplay svg { margin-left: 3px; }
.gitem:hover .gplay {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(212, 43, 43, 0.85);
}

.galeria-more {
  margin-top: 2.2rem;
  color: var(--mute);
  font-size: 0.95rem;
}
.galeria-more a {
  color: var(--text);
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  transition: color 0.3s var(--ease-out);
}
.galeria-more a:hover { color: var(--red-soft); }

/* =============================================================
   13. Redes
   ============================================================= */
.redes { padding-block: 0 clamp(4rem, 9vw, 7.5rem); }

.redes-grid {
  display: grid;
  gap: 1rem;
}

.redcard {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-3);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}
.redcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}
.redcard > div { display: flex; flex-direction: column; line-height: 1.3; }
.redcard b { font-size: 1.08rem; font-weight: 800; }
.redcard span:not(.redcard-arrow) {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mute);
}
.redcard-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--mute);
  transition: transform 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.redcard:hover .redcard-arrow { transform: translateX(6px); color: var(--text); }

.redcard-ig svg { color: var(--pink); }
.redcard-ig:hover { border-color: rgba(255, 122, 217, 0.5); }
.redcard-tt svg { color: var(--blue); }
.redcard-tt:hover { border-color: rgba(90, 167, 255, 0.5); }

/* =============================================================
   14. Contacto
   ============================================================= */
.contacto { background: var(--bg-2); }

.contacto-grid {
  display: grid;
  gap: 2.6rem;
}

.wa-form {
  display: grid;
  gap: 1rem;
  padding: 1.7rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 6, 12, 0.55);
  margin-bottom: 1.8rem;
}
.wa-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
.wa-form select,
.wa-form input {
  font: inherit;
  color: var(--text);
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.wa-form select:focus,
.wa-form input:focus {
  outline: none;
  border-color: rgba(238, 241, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(238, 241, 250, 0.12);
}
.wa-form input::placeholder { color: var(--mute); }
.wa-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mute) 50%),
    linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.wa-form button { justify-content: center; }
.wa-form-note {
  font-size: 0.8rem;
  color: var(--mute);
  text-align: center;
}

.contacto-datos {
  display: grid;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-2);
}
.contacto-datos li { display: flex; align-items: center; gap: 0.7rem; }
.contacto-datos svg { color: var(--accent-hover); flex-shrink: 0; }
.contacto-datos a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.contacto-datos a:hover { color: var(--text); border-bottom-color: var(--accent); }

.contacto-mapa {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
  filter: grayscale(0.2) contrast(1.02);
}
.contacto-mapa iframe {
  width: 100%; height: 100%;
  min-height: 340px;
  border: 0;
}

/* =============================================================
   15. Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: 3.2rem 1.6rem;
}
.footer-grid {
  display: grid;
  gap: 2.2rem;
  margin-bottom: 2.6rem;
}
.footer-brand {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}
.footer-brand img { border-radius: 50%; }
.footer-brand p { color: var(--mute); font-size: 0.92rem; }

.footer-nav {
  display: grid;
  gap: 0.6rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-2);
  justify-items: start;
}
.footer-nav a:hover { color: var(--red-soft); }

.footer-datos {
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--mute);
  justify-items: start;
}
.footer-datos a:hover { color: var(--text); }
.footer-social { display: flex; gap: 1.2rem; margin-top: 0.4rem; }
.footer-social a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.footer-social a:hover { color: var(--red-soft); border-color: var(--accent); }

.footer-copy {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mute);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* =============================================================
   16. WhatsApp flotante
   ============================================================= */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  color: #fff;
  background: var(--wa);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.wa-float::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: waPulse 2.6s var(--ease-soft) infinite;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.55);
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.9; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* =============================================================
   17. Lightbox
   ============================================================= */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 560px);
  width: auto;
  margin: auto;
}
.lightbox::backdrop {
  background: rgba(5, 6, 12, 0.9);
}
.lightbox-body video,
.lightbox-body img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.lightbox-close {
  position: fixed;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text);
  background: rgba(238, 241, 250, 0.08);
  border: 1px solid var(--line);
  transition: background-color 0.3s, transform 0.3s var(--ease-out);
}
.lightbox-close:hover { background: rgba(212, 43, 43, 0.8); transform: rotate(90deg); }

/* =============================================================
   18. Reveals
   ============================================================= */
/* solo se ocultan si hay JS (html.js lo pone un script inline en <head>);
   con JS desactivado todo el contenido queda visible */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-out);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* defensa: un elemento con reveal + data-split nunca debe quedar oculto */
html.js .reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   19. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .redes-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .btn-nav span { display: inline; }
  .mobilenav { display: none; }

  .galeria-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (min-width: 960px) {
  .servicios-grid {
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: auto auto;
  }
  .scard-feature { grid-row: 1 / 3; }

  .contacto-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .contacto-mapa { position: sticky; top: 110px; min-height: 480px; }
  .contacto-mapa iframe { min-height: 480px; }
}

@media (min-width: 1280px) {
  .galeria-grid { gap: 1.25rem; }
}

/* =============================================================
   20. Reduced motion — solo efectos intrusivos
   (los micro-efectos: hover, tilt, fades… siguen activos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .wa-float::after { animation: none; }
  .hero-scroll span { animation: none; }
}
