/* ===== DECORATIO — Hacemos realidad tus ideas (rojo · negro · blanco) ===== */

:root {
  --negro-950: #0a0a0c;
  --negro-900: #121215;
  --negro-850: #18181c;
  --negro-800: #202026;
  --rojo: #d61f2b;
  --rojo-claro: #f23645;
  --rojo-osc: #a4151f;
  --rojo-gradiente: linear-gradient(135deg, #f23645 0%, #d61f2b 100%);
  --blanco: #ffffff;
  --tinta: #14141a;
  --gris: #60606b;
  --fondo: #f8f9fb;
  --fondo-card: rgba(255, 255, 255, 0.7);
  --linea: rgba(0, 0, 0, 0.06);
  --sombra: 0 20px 40px rgba(0, 0, 0, 0.06);
  --sombra-hover: 0 30px 60px rgba(214, 31, 43, 0.12);
  --radio: 24px;
  --blur: blur(16px);
}

@property --ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--tinta);
  background: var(--fondo);
  background-image: radial-gradient(circle at 15% 0%, rgba(214, 31, 43, 0.03) 0%, transparent 40%),
                    radial-gradient(circle at 85% 100%, rgba(214, 31, 43, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container { width: min(1160px, 92%); margin-inline: auto; }

section { scroll-margin-top: 84px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 6px;
}

.kicker-claro { color: var(--rojo-claro); }

.seccion-intro { color: var(--gris); margin-top: -2px; }

/* ===== Barra de progreso de scroll ===== */
.progreso {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--rojo), var(--rojo-claro));
  box-shadow: 0 0 12px rgba(214, 31, 43, 0.7);
  transition: width 0.08s linear;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, box-shadow;
  border: 1px solid transparent;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -130%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.btn:hover::after { left: 150%; }

.btn:active { transform: scale(0.96); }

.btn-rojo {
  background: var(--rojo-gradiente);
  color: var(--blanco);
  box-shadow: 0 10px 24px rgba(214, 31, 43, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255,255,255,0.2);
}
.btn-rojo:hover {
  box-shadow: 0 16px 36px rgba(214, 31, 43, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: var(--blanco);
}
.btn-ghost:hover { 
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-oscuro {
  background: linear-gradient(135deg, var(--negro-900), var(--negro-800));
  color: var(--blanco);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255,255,255,0.08);
}
.btn-oscuro:hover { 
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.btn-wsp {
  background: linear-gradient(135deg, #25d366, #1fc05a);
  color: #fff;
  padding: 12px 22px;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.btn-wsp:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45); }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanco);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

.brand {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--negro-950);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.brand span { color: var(--rojo); }

.brand::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 8px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rojo), transparent);
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--gris);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--rojo-gradiente);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav a:hover { color: var(--negro-900); }

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

.nav a.activo { color: var(--negro-900); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.burger span {
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--negro-950);
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 440px at 86% -12%, rgba(214, 31, 43, 0.30), transparent 62%),
    linear-gradient(135deg, var(--negro-950) 0%, var(--negro-900) 58%, var(--negro-800) 100%);
  color: var(--blanco);
  overflow: hidden;
  position: relative;
}

.aurora { position: absolute; inset: 0; pointer-events: none; }

.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.aurora i:nth-child(1) {
  width: 460px; height: 460px;
  background: rgba(214, 31, 43, 0.26);
  top: -18%; right: 4%;
  animation: deriva-1 21s ease-in-out infinite alternate;
}

.aurora i:nth-child(2) {
  width: 420px; height: 420px;
  background: rgba(120, 14, 22, 0.55);
  bottom: -22%; left: -6%;
  animation: deriva-2 26s ease-in-out infinite alternate;
}

.aurora i:nth-child(3) {
  width: 300px; height: 300px;
  background: rgba(255, 255, 255, 0.05);
  top: 30%; left: 42%;
  animation: deriva-3 31s ease-in-out infinite alternate;
}

@keyframes deriva-1 { to { transform: translate(-90px, 70px) scale(1.15); } }
@keyframes deriva-2 { to { transform: translate(110px, -60px) scale(1.1); } }
@keyframes deriva-3 { to { transform: translate(-70px, -80px) scale(0.9); } }

.grilla {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 55% 25%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 55% 25%, #000 25%, transparent 78%);
  animation: grilla-pan 9s linear infinite;
}

@keyframes grilla-pan { to { background-position: 44px 44px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 76px 0 92px;
  position: relative;
  z-index: 2;
}

.hero-text > * {
  opacity: 0;
  transform: translateY(26px);
  animation: subir 0.7s cubic-bezier(0.22, 0.65, 0.3, 1) forwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.hero-text > *:nth-child(2) { animation-delay: 0.16s; }
.hero-text > *:nth-child(3) { animation-delay: 0.27s; }
.hero-text > *:nth-child(4) { animation-delay: 0.38s; }
.hero-text > *:nth-child(5) { animation-delay: 0.49s; }

@keyframes subir { to { opacity: 1; transform: translateY(0); } }

.eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rojo-claro);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(110deg, var(--rojo) 0%, #ff4d5a 50%, var(--rojo) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: brillo-texto 5s linear infinite;
}

@keyframes brillo-texto { to { background-position: 200% center; } }

.lead {
  font-size: 1.06rem;
  color: #d4d4da;
  max-width: 56ch;
  margin-bottom: 22px;
}

.checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-bottom: 30px;
}

.checks li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20 6L9 17l-5-5"/%3E%3C/svg%3E') center / contain no-repeat;
  mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20 6L9 17l-5-5"/%3E%3C/svg%3E') center / contain no-repeat;
  background: var(--rojo);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* visual del hero con tilt 3D */
.hero-shot {
  justify-self: center;
  position: relative;
  animation: aparecer-shot 0.9s 0.4s cubic-bezier(0.22, 0.65, 0.3, 1) backwards, flotar 7s 1.5s ease-in-out infinite alternate;
}

@keyframes aparecer-shot {
  from { opacity: 0; transform: translateY(40px) rotate(4deg) scale(0.94); }
  to { opacity: 1; transform: translateY(0) rotate(1.6deg) scale(1); }
}

@keyframes flotar {
  from { transform: translateY(0) rotate(1.6deg); }
  to { transform: translateY(-14px) rotate(0.6deg); }
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: -10% -12%;
  background: radial-gradient(closest-side, rgba(214, 31, 43, 0.32), transparent 75%);
  filter: blur(30px);
  z-index: -1;
}

.hero-shot img {
  width: min(440px, 100%);
  border: 8px solid var(--blanco);
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

/* ===== Cinta marquee ===== */
.cinta-seccion {
  background: var(--negro-950);
  overflow: hidden;
  padding: 0 0 0;
}

.cinta {
  background: var(--rojo);
  transform: rotate(-1.4deg);
  width: 104%;
  margin-left: -2%;
  margin-block: 26px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(214, 31, 43, 0.4);
}

.cinta-track {
  display: flex;
  width: max-content;
  animation: cinta-scroll 28s linear infinite;
  will-change: transform;
}

.cinta:hover .cinta-track { animation-play-state: paused; }

.cinta-track span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 9px;
  white-space: nowrap;
  font-weight: 800;
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blanco);
}

.cinta-track b { color: var(--negro-950); font-size: 0.8rem; }

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

/* ===== Aparición al hacer scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.22, 0.65, 0.3, 1);
  transition-delay: var(--retraso, 0s);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-img {
  clip-path: inset(8% 8% 8% 8% round 14px);
  transform: scale(1.06);
  opacity: 0;
  transition: clip-path 0.9s cubic-bezier(0.22, 0.65, 0.3, 1), transform 0.9s cubic-bezier(0.22, 0.65, 0.3, 1), opacity 0.6s ease;
  transition-delay: var(--retraso, 0s);
}

.reveal-img.visible {
  clip-path: inset(0 0 0 0 round 12px);
  transform: scale(1);
  opacity: 1;
}

/* ===== Servicios (3 temas) ===== */
.servicios { padding: 80px 0 100px; background: var(--fondo); }

.temas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}

.tema {
  position: relative;
  background: var(--fondo-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radio);
  padding: 38px 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tema::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 31, 43, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tema:hover::before { opacity: 1; }

.tema:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-hover);
  border-color: rgba(214, 31, 43, 0.3);
}

.tema-num {
  position: absolute;
  top: 12px;
  right: 22px;
  font-size: 4rem;
  font-weight: 800;
  font-style: italic;
  color: rgba(214, 31, 43, 0.05);
  line-height: 1;
  pointer-events: none;
}

.tema-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--negro-900), var(--negro-800));
  color: var(--rojo-claro);
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tema:hover .tema-icon { transform: rotate(-7deg) scale(1.12); }

.tema-icon svg { width: 30px; height: 30px; }

.tema h3 { font-size: 1.25rem; font-weight: 700; position: relative; margin-bottom: 16px; }

.tema ul {
  list-style: none;
  display: grid;
  gap: 12px;
  position: relative;
}

.tema li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tinta);
}

.tema li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rojo-gradiente);
}

/* ===== Proyectos ===== */
.proyectos { padding: 100px 0; background: var(--blanco); }

.proyecto {
  background: var(--fondo);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radio);
  padding: 40px;
  margin-top: 40px;
  box-shadow: inset 0 2px 10px rgba(255,255,255,1);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.proyecto:hover {
  box-shadow: var(--sombra);
}

.proyecto-head { margin-bottom: 20px; }

.proyecto-head h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }

.proyecto-head p { color: var(--gris); max-width: 70ch; }

.antes-despues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.antes-despues figure,
.proyecto-split figure {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.antes-despues img,
.proyecto-split img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.45s cubic-bezier(0.22, 0.65, 0.3, 1), filter 0.45s ease;
}

.antes-despues figure:hover img,
.proyecto-split figure:hover img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-antes { background: var(--negro-900); color: var(--blanco); }

.badge-despues {
  background: var(--rojo);
  color: var(--blanco);
  animation: badge-pulso 2.8s ease-out infinite;
}

@keyframes badge-pulso {
  0% { box-shadow: 0 0 0 0 rgba(214, 31, 43, 0.55); }
  60% { box-shadow: 0 0 0 14px rgba(214, 31, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 31, 43, 0); }
}

.proyecto-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: center;
}

.proyecto-split .proyecto-head { margin-bottom: 0; }

/* plano de arquitectura sobre mesa de luz */
.nota-priv {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--rojo);
  font-weight: 600;
}

.plano {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, #20202a, var(--negro-900));
  border-radius: 12px;
  padding: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.plano img {
  max-height: 640px;
  width: auto;
  max-width: 100%;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.22, 0.65, 0.3, 1);
}

.plano:hover img { transform: scale(1.02); }

.plano-lupa {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(214, 31, 43, 0.92);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.plano:hover .plano-lupa { opacity: 1; transform: translateY(0); }

/* ===== Quiénes somos ===== */
.sobre { padding: 84px 0; background: var(--fondo); }

.sobre-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.sobre-text p { margin-bottom: 14px; color: #33343a; }

.sobre-text .btn { margin-top: 10px; }

.sobre-card { position: relative; }

.sobre-card::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 22px;
  background: conic-gradient(from var(--ang), transparent 0%, rgba(214, 31, 43, 0.55) 11%, transparent 28%, transparent 55%, rgba(255, 255, 255, 0.35) 68%, transparent 86%);
  filter: blur(14px);
  animation: girar 6s linear infinite;
  z-index: 0;
}

@keyframes girar { to { --ang: 360deg; } }

/* credencial (tarjeta rearmada en rojo/negro/blanco) */
.credencial {
  position: relative;
  z-index: 1;
  background: linear-gradient(150deg, var(--negro-900), var(--negro-950));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radio);
  padding: 34px 32px;
  color: var(--blanco);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.credencial::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: linear-gradient(var(--rojo), var(--rojo-osc));
}

.credencial-marca {
  font-size: 1.2rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
}
.credencial-marca span { color: var(--rojo); }

.credencial-nombre {
  font-size: 1.7rem;
  font-weight: 800;
  margin-top: 14px;
}

.credencial-rol {
  color: #c9c9d0;
  font-weight: 500;
  margin-top: 2px;
}

.credencial-estudios {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(214, 31, 43, 0.14);
  border: 1px solid rgba(214, 31, 43, 0.4);
  color: #ffd2d4;
  font-size: 0.86rem;
  font-weight: 600;
}
.credencial-estudios svg { color: var(--rojo-claro); }

.credencial-datos {
  list-style: none;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 12px;
}

.credencial-datos li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  color: #e2e2e6;
  word-break: break-word;
}
.credencial-datos svg { color: var(--rojo-claro); flex-shrink: 0; }

/* columna derecha: credencial + diploma */
.sobre-col { display: grid; gap: 22px; }

.diploma {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 12px 12px 4px;
  box-shadow: var(--sombra);
}

.diploma img {
  width: 100%;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.diploma:hover img { transform: scale(1.015); }

.diploma figcaption {
  font-size: 0.8rem;
  color: var(--gris);
  text-align: center;
  padding: 11px 8px 8px;
  line-height: 1.45;
}

.diploma figcaption strong { color: var(--rojo); }

/* ===== Contacto ===== */
.contacto {
  padding: 100px 0 110px;
  background:
    radial-gradient(800px 500px at 12% 110%, rgba(214, 31, 43, 0.25), transparent 60%),
    linear-gradient(135deg, var(--negro-950), var(--negro-850));
  color: var(--blanco);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 20%, transparent 75%);
  pointer-events: none;
}

.contacto .container { position: relative; z-index: 1; }

.contacto-lead { color: #d0d0d6; margin-bottom: 40px; }

.contacto-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contacto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 34px 20px;
  border-radius: var(--radio);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
  color: var(--blanco);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contacto-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 31, 43, 0.2), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contacto-card:hover::before { opacity: 1; }

.contacto-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(214, 31, 43, 0.4);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.contacto-card svg { color: var(--rojo-claro); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

.contacto-card:hover svg { transform: scale(1.18) rotate(-6deg); }

.contacto-card-titulo { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }

.contacto-card-dato { font-size: 0.95rem; color: #d0d0d6; word-break: break-all; }

/* ===== Cómo Trabajamos ===== */
.como-trabajamos { padding: 80px 0; background: var(--fondo); }
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.paso { background: var(--fondo-card); backdrop-filter: var(--blur); padding: 32px 24px; border-radius: var(--radio); border: 1px solid rgba(255,255,255,0.8); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.paso:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.paso-num { display: inline-flex; justify-content: center; align-items: center; width: 48px; height: 48px; background: var(--rojo-gradiente); color: var(--blanco); font-weight: 800; border-radius: 50%; margin-bottom: 20px; font-size: 1.3rem; box-shadow: 0 8px 16px rgba(214, 31, 43, 0.3); }
.paso h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.paso p { font-size: 0.95rem; color: var(--gris); }

/* ===== Ley del Mono ===== */
.ley-mono { padding: 100px 0; background: linear-gradient(135deg, var(--negro-950), var(--negro-850)); color: var(--blanco); position: relative; overflow: hidden;}
.ley-mono::before { content: ""; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(214, 31, 43, 0.15) 0%, transparent 60%); pointer-events: none;}
.ley-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1;}
.ley-text h2 { color: var(--blanco); font-size: clamp(2.2rem, 3.8vw, 3.2rem); }
.lead-ley { font-size: 1.1rem; color: #d0d0d6; margin-bottom: 28px; line-height: 1.7; }
.checks-ley li { font-size: 1rem; margin-bottom: 14px; color: #e2e2e6; }
.checks-ley li::before { background: var(--rojo); }
.ley-icon { background: rgba(255,255,255,0.02); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 32px; padding: 60px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1); transition: transform 0.5s ease; }
.ley-icon:hover { transform: scale(1.02) translateY(-10px); }
.ley-icon svg { width: 120px; height: 120px; color: var(--rojo-claro); filter: drop-shadow(0 10px 20px rgba(214, 31, 43, 0.4)); }

/* ===== Testimonios ===== */
.testimonios { padding: 90px 0; background: var(--fondo); }
.cards-testimonios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.testimonio { background: var(--fondo-card); backdrop-filter: var(--blur); padding: 36px 30px; border-radius: var(--radio); box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid rgba(255,255,255,0.8); position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease;}
.testimonio:hover { transform: translateY(-6px); box-shadow: var(--sombra-hover); border-color: rgba(214, 31, 43, 0.2); }
.comilla { width: 38px; height: 38px; color: rgba(214,31,43,0.15); margin-bottom: 18px; }
.testimonio p { font-style: italic; color: var(--tinta); font-size: 1.05rem; margin-bottom: 24px; line-height: 1.7; font-weight: 500; }
.testimonio footer { border-top: 1px solid rgba(0,0,0,0.06); padding-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.testimonio footer strong { font-weight: 800; color: var(--negro-900); font-size: 1.05rem; }
.testimonio footer span { font-size: 0.85rem; color: var(--gris); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* ===== Formulario Contacto ===== */
.contacto-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; margin-top: 40px; text-align: left; }
.contacto-form { background: var(--blanco); padding: 40px; border-radius: var(--radio); color: var(--tinta); box-shadow: 0 20px 50px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.04); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; color: var(--negro-800); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 12px; font-family: inherit; font-size: 1rem; color: var(--tinta); background: #f8fafc; transition: all 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--rojo); box-shadow: 0 0 0 4px rgba(214,31,43,0.12); background: var(--blanco); }
.btn-submit { width: 100%; justify-content: center; margin-top: 14px; font-size: 1.05rem; padding: 18px; border: none; cursor: pointer; }

/* ===== Footer ===== */
.footer {
  background: #08080a;
  color: #9a9aa2;
  padding: 34px 0;
  text-align: center;
  font-size: 0.88rem;
  border-top: 2px solid var(--rojo);
}

.brand-footer { font-size: 1.2rem; display: inline-block; margin-bottom: 8px; color: var(--blanco); }

.footer-copy { margin-top: 4px; font-size: 0.8rem; color: #6a6a72; }

/* ===== WhatsApp flotante ===== */
.fab-wsp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.fab-wsp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.85; }
  75%, 100% { transform: scale(1.6); opacity: 0; }
}

.fab-wsp:hover { transform: scale(1.1); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 8, 0.93);
  padding: 4vh 4vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.abierto {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.93);
  transition: transform 0.28s cubic-bezier(0.22, 0.65, 0.3, 1);
}

.lightbox.abierto img { transform: scale(1); }

.lightbox-cerrar {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}

.lightbox-cerrar:hover { opacity: 1; }

/* ===== En acción (video reel) ===== */
.en-accion {
  padding: 92px 0;
  background: linear-gradient(135deg, var(--negro-950), var(--negro-850));
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}
.en-accion .aurora i:nth-child(1) { width: 380px; height: 380px; background: rgba(214, 31, 43, 0.22); top: -12%; left: -6%; }
.en-accion .aurora i:nth-child(2) { width: 320px; height: 320px; background: rgba(120, 14, 22, 0.5); bottom: -16%; right: -4%; }

.accion-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.accion-text h2 { color: var(--blanco); }
.lead-accion { color: #d0d0d6; font-size: 1.08rem; margin-bottom: 22px; max-width: 52ch; }
.checks-accion { margin-bottom: 28px; }
.checks-accion li { color: #e8e8ec; }

.reel { justify-self: center; position: relative; margin: 0; }
.reel::before {
  content: "";
  position: absolute;
  inset: -12% -14%;
  background: radial-gradient(closest-side, rgba(214, 31, 43, 0.4), transparent 72%);
  filter: blur(34px);
  z-index: 0;
}
.reel-frame {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  aspect-ratio: 520 / 926;
  border-radius: 30px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  background: #000;
}
.reel-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel figcaption { text-align: center; color: #9a9aa2; font-size: 0.85rem; margin-top: 16px; position: relative; z-index: 1; }

.reel-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.reel-badge i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rojo);
  animation: badge-pulso 2s infinite;
}

.reel-sound {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.reel-sound:hover { background: var(--rojo); transform: scale(1.08); }
.reel-sound .ic-sound { display: none; }
.reel-sound.con-sonido .ic-mute { display: none; }
.reel-sound.con-sonido .ic-sound { display: block; }

/* ===== Sub-secciones de Proyectos ===== */
.sub-grupo { margin-top: 60px; }
.sub-grupo:first-of-type { margin-top: 44px; }

.sub-titulo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.sub-titulo::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--rojo-gradiente);
}
.sub-desc { color: var(--gris); margin-bottom: 8px; }

/* galería uniforme */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.galeria-item {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  box-shadow: var(--sombra);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 0.65, 0.3, 1);
}
.galeria-item:hover img { transform: scale(1.07); }
.galeria-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
}
.galeria-cap .cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rojo-claro);
  margin-bottom: 3px;
}
.galeria-cap h4 { font-size: 1.02rem; font-weight: 700; }

/* ===== Ley del Mono: plano real ===== */
.ley-plano {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s ease;
}
.ley-plano:hover { transform: translateY(-6px); }
.ley-plano img { width: 100%; display: block; cursor: zoom-in; transition: transform 0.6s ease; }
.ley-plano:hover img { transform: scale(1.04); }
.ley-plano figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Planimetría + maqueta ===== */
.plano-maqueta {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.plano-maqueta .reel figcaption { color: var(--gris); }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .accion-grid { grid-template-columns: 1fr; gap: 36px; }
  .galeria { grid-template-columns: 1fr 1fr; }
  .plano-maqueta { grid-template-columns: 1fr; gap: 24px; }
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 72px; }
  .hero-shot { display: none; }
  .temas { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ley-grid { grid-template-columns: 1fr; text-align: center; }
  .ley-icon { display: none; }
  .cards-testimonios { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .proyecto-split { grid-template-columns: 1fr; }
  .sobre-grid { grid-template-columns: 1fr; gap: 30px; }
  .contacto-cards { grid-template-columns: 1fr; }
  .btn-topbar { display: none; }
  .aurora i { filter: blur(60px); }
}

@media (max-width: 700px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--negro-950);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }

  .nav a { padding: 14px 6%; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

  .nav a::after { display: none; }

  .topbar.menu-abierto .nav { display: flex; }

  .burger { display: flex; }

  .antes-despues { grid-template-columns: 1fr; }

  .antes-despues img, .proyecto-split img { height: 300px; }

  .pasos { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .galeria { grid-template-columns: 1fr; }
}

/* ===== Accesibilidad: menos movimiento ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .reveal-img {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  html { scroll-behavior: auto; }
}
