/* Clikaval · negro y oro
   Fondo negro profundo, oro champán metálico y blanco roto.
   Tres voces: Syncopate (nombre, títulos 3D, rótulos), Sora (titulares y texto). */

@font-face { font-family: 'Syncopate'; src: url('../fuentes/syncopate-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Syncopate'; src: url('../fuentes/syncopate-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../fuentes/sora-var.woff2') format('woff2-variations'), url('../fuentes/sora-var.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --negro: #0a0a0c;
  --negro-2: #111114;
  --negro-3: #18181d;
  --oro: #d8b77e;
  --oro-claro: #f3dfb0;
  --oro-oscuro: #9c7a45;
  --oro-sombra: #4a3719;
  --texto: #f4f1ea;
  --texto-2: #bdb6a9;
  --texto-3: #8f887b;
  --linea: rgba(216, 183, 126, .16);
  --linea-fuerte: rgba(216, 183, 126, .38);
  --vidrio: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  --oro-deg: linear-gradient(105deg, #8a6a3a 0%, #d8b77e 20%, #f7e9c6 36%, #d8b77e 50%, #a4834d 66%, #efd9a6 84%, #9c7a45 100%);

  --f-display: 'Syncopate', 'Arial Black', sans-serif;
  --f-texto: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radio: 22px;
  --ancho: 1240px;
  --margen: clamp(1.15rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Dirección del relieve de los títulos 3D (la mueve el ratón) */
  --dx: 1;
  --dy: 1;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  background: var(--negro);
  color: var(--texto);
  font: 300 1.0625rem/1.65 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Grano de película muy suave sobre todo */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--oro); color: var(--negro); }
:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--oro-oscuro) var(--negro); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salto { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--oro); color: var(--negro); padding: .7rem 1rem; border-radius: 10px; font-weight: 600; transition: top .2s; }
.salto:focus { top: 1rem; }
.contenedor { width: min(100%, var(--ancho)); margin-inline: auto; padding-inline: var(--margen); }

/* Brillo dorado que sigue al ratón */
.brillo-cursor {
  position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(216, 183, 126, .09), transparent 62%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0); opacity: 0; transition: opacity .6s;
}
.con-raton .brillo-cursor { opacity: 1; }

/* --- Texto base ------------------------------------------------------------ */
.antetitulo {
  display: flex; align-items: center; gap: .8rem;
  font: 700 .72rem/1.2 var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: var(--oro);
}
.antetitulo span { color: var(--texto-3); font-weight: 400; }
.antetitulo span::after { content: ''; display: inline-block; width: 2.2rem; height: 1px; background: var(--linea-fuerte); vertical-align: middle; margin-left: .8rem; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
.punto-oro { color: var(--oro); }

/* Texto en oro con brillo que recorre */
.oro-texto, .titulo-3d > span, .num-3d > span, .hero__nombre, .telefono, .precio__cifra strong {
  background: var(--oro-deg); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brillo 7s linear infinite;
}
@keyframes brillo { from { background-position: 110% 0; } to { background-position: -110% 0; } }

/* --- Títulos 3D: oro con relieve que cambia con la luz del ratón ---------- */
.titulo-3d, .num-3d {
  position: relative; isolation: isolate; display: inline-block;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: .95;
}
.titulo-3d { font-size: clamp(2.3rem, 7.4vw, 6.4rem); margin: 1.1rem 0 1.3rem; }
.titulo-3d > span, .num-3d > span { position: relative; z-index: 1; display: inline-block; }
.titulo-3d::before, .num-3d::before {
  content: attr(data-texto) / ''; position: absolute; left: 0; top: 0; z-index: 0; color: var(--oro-sombra); pointer-events: none;
  text-shadow:
    calc(var(--dx) * 1px) calc(var(--dy) * 1px) 0 #6b5129,
    calc(var(--dx) * 2px) calc(var(--dy) * 2px) 0 #614926,
    calc(var(--dx) * 3px) calc(var(--dy) * 3px) 0 #574222,
    calc(var(--dx) * 4px) calc(var(--dy) * 4px) 0 #4d3a1e,
    calc(var(--dx) * 5px) calc(var(--dy) * 5px) 0 #43321a,
    calc(var(--dx) * 6px) calc(var(--dy) * 6px) 0 #392a16,
    calc(var(--dx) * 7px) calc(var(--dy) * 7px) 0 #2f2312,
    calc(var(--dx) * 10px) calc(var(--dy) * 14px) 24px rgba(0, 0, 0, .75);
}
.titulo-3d::after {
  content: ''; position: absolute; left: 4%; right: 4%; bottom: -.55em; height: .5em; z-index: -1;
  background: radial-gradient(closest-side, rgba(216, 183, 126, .22), transparent); filter: blur(10px);
}

/* --- Botones --------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 3.2rem; padding: .95rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font: 700 .74rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn--oro { background: var(--oro-deg); background-size: 200% 100%; color: #17120a; box-shadow: 0 10px 34px -12px rgba(216, 183, 126, .55), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--oro::after {
  content: ''; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transition: transform .8s var(--ease);
}
.btn--oro:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(216, 183, 126, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--oro:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn--linea { border-color: var(--linea-fuerte); color: var(--oro-claro); background: rgba(216, 183, 126, .04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--linea:hover { border-color: var(--oro); background: rgba(216, 183, 126, .1); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.enlace { display: inline-flex; align-items: center; gap: .5rem; color: var(--oro-claro); font: 700 .74rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: .8rem 0; border-bottom: 1px solid var(--linea-fuerte); transition: gap .3s var(--ease), border-color .3s; }
.enlace svg { width: 1.1rem; height: 1.1rem; }
.enlace:hover { gap: .8rem; border-color: var(--oro); }

/* --- Navegación ----------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.logo__marca {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 10px; flex: none;
  font: 700 .78rem/1 var(--f-display); letter-spacing: .04em; color: #17120a;
  background: var(--oro-deg); background-size: 200% 100%; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 20px -8px rgba(216,183,126,.6);
}
.logo__txt { font: 700 .95rem/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; }

.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top); transition: background-color .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.solida { background: rgba(10, 10, 12, .72); border-color: var(--linea); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.nav__dentro { width: min(100%, 1440px); margin-inline: auto; padding: .95rem var(--margen); display: flex; align-items: center; gap: 2rem; }
.nav__enlaces { display: flex; align-items: center; gap: 2.2rem; margin-left: auto; }
.nav__enlaces a { position: relative; text-decoration: none; font: 700 .72rem/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--texto-2); padding: .85rem 0; transition: color .3s; }
.nav__enlaces a::after { content: ''; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--oro); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__enlaces a:hover, .nav__enlaces a.activo { color: var(--oro-claro); }
.nav__enlaces a:hover::after, .nav__enlaces a.activo::after { transform: scaleX(1); transform-origin: left; }
.nav__tel { display: none !important; }
.btn--nav { flex: none; min-height: 2.75rem; padding: .7rem 1.3rem; font-size: .7rem; }
.nav__menu { display: none; }

/* --- Portada 3D ------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 36%, rgba(216, 183, 126, .13), transparent 70%),
    radial-gradient(40% 40% at 85% 90%, rgba(156, 122, 69, .08), transparent 70%),
    var(--negro);
}
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 58%; z-index: 1; pointer-events: none; background: linear-gradient(to top, var(--negro) 8%, rgba(10, 10, 12, .82) 42%, transparent); }
.hero__escena { position: absolute; inset: 0; }
.hero__lienzo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); touch-action: pan-y; }
.escena-lista .hero__lienzo { opacity: 1; }
.hero__nombre {
  position: absolute; left: 50%; top: 37%; translate: -50% -50%;
  font: 700 clamp(2.4rem, 9vw, 8.5rem)/1 var(--f-display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); transition: opacity .9s var(--ease);
}
.escena-lista .hero__nombre { opacity: 0; }
.hero__texto {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem 4rem; align-items: end;
  padding-top: 60vh; padding-bottom: clamp(2.2rem, 7vh, 4.5rem);
}
.hero h1 { font-size: clamp(2.1rem, 4.3vw, 3.9rem); margin-top: 1.1rem; max-width: 14ch; letter-spacing: -.035em; line-height: 1.02; }
.hero__entrada { color: var(--texto-2); max-width: 44ch; font-size: 1.08rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero__pista { position: absolute; z-index: 2; right: var(--margen); top: 5.8rem; font: 700 .7rem/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: var(--texto-3); display: flex; align-items: center; gap: .6rem; }
.hero__pista::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: var(--oro); box-shadow: 0 0 0 0 rgba(216,183,126,.6); animation: latido 2.4s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 .6rem rgba(216,183,126,0); } 100% { box-shadow: 0 0 0 0 rgba(216,183,126,0); } }
.solo-tactil { display: none; }
@media (hover: none) { .solo-tactil { display: inline; } .solo-raton { display: none; } }

/* Entrada de la portada */
.js .hero__texto > * { opacity: 0; translate: 0 26px; animation: sube 1.1s var(--ease) forwards; }
.js .hero__texto > :nth-child(1) { animation-delay: .9s; }
.js .hero__texto > :nth-child(2) { animation-delay: 1.15s; }
@keyframes sube { to { opacity: 1; translate: 0 0; } }

/* --- Bloques ----------------------------------------------------------------- */
.bloque { position: relative; padding-block: clamp(5rem, 12vw, 9.5rem); }
.bloque::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--linea-fuerte), transparent); }
.bloque > .contenedor { position: relative; z-index: 1; }
.cab { margin-bottom: clamp(2.6rem, 6vw, 4.5rem); }
.cab__entrada { color: var(--texto-2); max-width: 52ch; font-size: 1.1rem; }

/* Aparición al bajar */
.js [data-rev] { opacity: 0; translate: 0 40px; filter: blur(6px); transition: opacity 1s var(--ease), translate 1s var(--ease), filter 1s var(--ease); transition-delay: var(--retraso, 0s); }
.js [data-rev].visto { opacity: 1; translate: 0 0; filter: none; }
.js .cab .titulo-3d { transform: perspective(700px) rotateX(58deg) translateY(.3em); transform-origin: 50% 100%; opacity: 0; transition: transform 1.4s var(--ease) .15s, opacity 1s var(--ease) .15s; }
.js .cab.visto .titulo-3d { transform: none; opacity: 1; }

/* --- Tarjetas con inclinación 3D ------------------------------------------ */
.servicios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.tarjeta, .precio {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; border-radius: var(--radio); background: var(--vidrio), var(--negro-2);
  border: 1px solid var(--linea); overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .4s, opacity 1s var(--ease), translate 1s var(--ease), filter 1s var(--ease);
  transform-style: preserve-3d;
}
.tarjeta::before, .precio::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(216, 183, 126, .13), transparent 60%); }
.tarjeta::after, .precio::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), var(--oro-claro), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tarjeta:hover, .precio:hover { border-color: var(--linea-fuerte); }
.tarjeta:hover::before, .tarjeta:hover::after, .precio:hover::before, .precio:hover::after { opacity: 1; }
.tarjeta.moviendo, .precio.moviendo { transition: transform .12s linear, border-color .4s, opacity 1s var(--ease), translate 1s var(--ease), filter 1s var(--ease); }
.tarjeta__cuerpo { position: relative; padding: clamp(1.6rem, 3.4vw, 2.6rem); display: grid; align-content: start; gap: .9rem; }
.tarjeta--ancha { display: grid; grid-template-columns: minmax(0, 1fr); }
.tarjeta h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); margin-top: .3rem; }
.tarjeta p { color: var(--texto-2); }
.tarjeta__n { position: absolute; right: clamp(1.6rem, 3.4vw, 2.6rem); top: clamp(1.6rem, 3.4vw, 2.6rem); font: 700 .72rem/1 var(--f-display); letter-spacing: .2em; color: var(--texto-3); }
.icono { width: 3.6rem; height: 3.6rem; fill: none; stroke: url(#g-oro); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .6rem; filter: drop-shadow(0 6px 16px rgba(216, 183, 126, .25)); }
.js .icono * { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 2.2s var(--ease) .4s; }
.js .visto .icono * { stroke-dashoffset: 0; }
.lista { list-style: none; display: grid; gap: .55rem; margin-top: .4rem; }
.lista li { position: relative; padding-left: 1.6rem; color: var(--texto); font-size: .98rem; }
.lista li::before { content: ''; position: absolute; left: 0; top: .62em; width: .7rem; height: .7rem; transform: rotate(45deg) scale(.7); background: var(--oro-deg); border-radius: 2px; }
.estrellas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; color: var(--texto-3); font-size: .9rem; }
.estrellas svg { width: 7.5rem; height: auto; filter: drop-shadow(0 0 12px rgba(216, 183, 126, .4)); }

/* Mini web que pasa de ordenador a móvil */
.adapta { margin: 0 clamp(1.6rem, 3.4vw, 2.6rem) clamp(1.6rem, 3.4vw, 2.6rem); padding: 1.2rem 1.1rem .9rem; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid var(--linea); display: grid; justify-items: center; gap: .9rem; }
.adapta__pantalla { width: 100%; height: 11.5rem; border: 1px solid var(--linea-fuerte); border-radius: 12px; background: var(--negro-3); overflow: hidden; animation: adapta 8s var(--ease) infinite paused; }
.visto .adapta__pantalla { animation-play-state: running; }
@keyframes adapta { 0%, 28% { width: 100%; border-radius: 12px; } 40%, 58% { width: 62%; border-radius: 14px; } 70%, 88% { width: 34%; border-radius: 18px; } 100% { width: 100%; border-radius: 12px; } }
.adapta__barra { display: flex; align-items: center; gap: .3rem; height: 1.6rem; padding: 0 .6rem; border-bottom: 1px solid var(--linea); }
.adapta__barra i { width: .38rem; height: .38rem; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: none; }
.adapta__barra em { margin-left: auto; width: 2.4rem; height: .6rem; border-radius: 9px; background: var(--oro-deg); flex: none; }
.adapta__cuerpo { display: grid; gap: .5rem; padding: .9rem .75rem; }
.adapta__cuerpo b { height: .75rem; width: 70%; border-radius: 4px; background: var(--oro-deg); }
.adapta__cuerpo span { height: .38rem; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.adapta__cuerpo span:nth-of-type(2) { width: 88%; } .adapta__cuerpo span:nth-of-type(3) { width: 64%; }
.adapta__cuerpo em { margin-top: .5rem; height: 1.35rem; width: min(9rem, 80%); border-radius: 99px; background: var(--oro-deg); box-shadow: 0 6px 16px -6px rgba(216, 183, 126, .6); }
.adapta__medida { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; font: 700 .7rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--texto-3); }
.visto .adapta__medida span { animation: medida 8s var(--ease) infinite; }
.adapta__medida span:nth-child(2) { animation-delay: 2.66s !important; } .adapta__medida span:nth-child(3) { animation-delay: 5.33s !important; }
@keyframes medida { 0%, 5% { color: var(--texto-3); } 10%, 30% { color: var(--oro-claro); } 36%, 100% { color: var(--texto-3); } }

/* Mini buscador: tu web sube al primer puesto */
.ranking { position: relative; margin: 0 clamp(1.6rem, 3.4vw, 2.6rem) clamp(1.6rem, 3.4vw, 2.6rem); padding: 1.1rem; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid var(--linea); }
.ranking__busca { display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; border-radius: 999px; background: var(--negro-3); border: 1px solid var(--linea); font-size: .88rem; color: var(--texto-2); margin-bottom: .9rem; }
.ranking__busca svg { width: 1rem; height: 1rem; fill: none; stroke: var(--oro); stroke-width: 2; stroke-linecap: round; }
.ranking ol { position: relative; list-style: none; height: calc(5 * 2.6rem); }
.ranking li { --p: var(--a); position: absolute; inset: 0 0 auto; height: 2.2rem; display: flex; align-items: center; gap: .8rem; padding: 0 .9rem; border-radius: 10px; background: rgba(255, 255, 255, .03); transform: translateY(calc(var(--p) * 2.6rem)); transition: transform 1.3s var(--ease) .9s, background-color .6s 1.8s; }
.ranking li b { font: 700 .7rem/1 var(--f-display); color: var(--texto-3); width: 1rem; }
.ranking li i { height: .45rem; border-radius: 99px; background: rgba(255, 255, 255, .09); flex: 1; max-width: 70%; }
.ranking li:nth-child(2) i { max-width: 55%; } .ranking li:nth-child(3) i { max-width: 62%; } .ranking li:nth-child(4) i { max-width: 48%; }
.ranking__tuyo { background: rgba(216, 183, 126, .1) !important; border: 1px solid var(--linea-fuerte); z-index: 1; }
.ranking__tuyo b { color: var(--oro) !important; }
.ranking__tuyo span { font-weight: 600; font-size: .92rem; color: var(--oro-claro); }
.visto .ranking li { --p: var(--b); }
.visto .ranking__tuyo { box-shadow: 0 0 30px -6px rgba(216, 183, 126, .5); }

/* --- Proceso --------------------------------------------------------------- */
.pasos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; padding-top: 1rem; }
.pasos::before { content: ''; position: absolute; left: 0; right: 0; top: calc(1rem + clamp(3.4rem, 6vw, 5.2rem) + 1rem); height: 1px; background: var(--linea); }
.pasos::after { content: ''; position: absolute; left: 0; right: 0; top: calc(1rem + clamp(3.4rem, 6vw, 5.2rem) + 1rem); height: 1px; background: linear-gradient(90deg, var(--oro-oscuro), var(--oro-claro)); transform: scaleX(var(--prog, 0)); transform-origin: left; box-shadow: 0 0 12px rgba(216, 183, 126, .6); }
.paso { position: relative; padding-right: 1rem; }
.num-3d { font-size: clamp(3.4rem, 6vw, 5.2rem); margin-bottom: 2.6rem; }
.paso h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.paso p { color: var(--texto-2); font-size: .98rem; }
.paso:nth-child(2) { --retraso: .12s; } .paso:nth-child(3) { --retraso: .24s; } .paso:nth-child(4) { --retraso: .36s; }

/* --- Trabajos: dispositivos en perspectiva -------------------------------- */
.obra { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.obra + .obra { margin-top: clamp(4.5rem, 10vw, 8rem); }
.obra--inversa .obra__dispositivos { order: 2; }
.obra__dispositivos { --rx: 8deg; --ry: -16deg; position: relative; perspective: 1400px; padding: 1rem 2.5rem 3rem 0; }
.obra--inversa .obra__dispositivos { --ry: 16deg; padding: 1rem 0 3rem 2.5rem; }
.portatil { transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform 1.2s var(--ease); }
.portatil__tapa { padding: 2.2% 2.2% 3%; border-radius: 16px 16px 4px 4px; background: linear-gradient(160deg, #26262c, #0e0e11); border: 1px solid rgba(216, 183, 126, .28); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(216, 183, 126, .25); }
.portatil__tapa img { border-radius: 6px; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.portatil__base { height: 14px; margin: 0 -5%; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #d8b77e, #7d6136 70%, #3a2c16); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .9); }
.movil {
  position: absolute; right: 0; bottom: 0; width: 25%; padding: 2.5%; border-radius: 22px;
  background: linear-gradient(160deg, #2a2a30, #0c0c0f); border: 1px solid rgba(216, 183, 126, .45);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95), 0 0 40px -12px rgba(216, 183, 126, .35);
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) * -.6)) translateZ(60px); transition: transform 1.2s var(--ease);
}
.obra--inversa .movil { right: auto; left: 0; }
.movil img { border-radius: 16px; width: 100%; height: auto; }
.obra__dispositivos.plano { --rx: 0deg; --ry: 0deg; }
.obra__nombre { font: 700 clamp(1.45rem, 3vw, 2.4rem)/1.1 var(--f-display); letter-spacing: .03em; margin: 1rem 0 1.4rem; text-transform: uppercase; overflow-wrap: anywhere; background: var(--oro-deg); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brillo 7s linear infinite; }
.notas { list-style: none; counter-reset: n; display: grid; gap: .9rem; margin-bottom: 1.4rem; }
.notas li { counter-increment: n; display: grid; grid-template-columns: 2.4rem 1fr; gap: .6rem; color: var(--texto); }
.notas li::before { content: counter(n, decimal-leading-zero); font: 700 .78rem/1.9 var(--f-display); color: var(--oro); }
.obra__hecho { color: var(--texto-3); font-size: .95rem; padding-top: 1.2rem; border-top: 1px solid var(--linea); margin-bottom: .8rem; }

/* --- Tarifas --------------------------------------------------------------- */
.precios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.precio { padding: 2rem 1.6rem 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.precio h3 { font-size: 1.12rem; min-height: 2.5em; }
.precio__cifra { display: grid; gap: .4rem; padding-block: 1.1rem; border-block: 1px solid var(--linea); }
.precio__cifra span { font: 700 .7rem/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: var(--texto-3); }
.precio__cifra strong { white-space: nowrap; font: 700 clamp(1.35rem, 2vw, 1.9rem)/1.1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.precio__cifra small { font-size: max(.55em, .72rem); letter-spacing: .06em; margin-left: .2em; }
.precio > p:last-child { color: var(--texto-2); font-size: .95rem; }
.precio:nth-child(2) { --retraso: .1s; } .precio:nth-child(3) { --retraso: .2s; } .precio:nth-child(4) { --retraso: .3s; }
.precios__nota { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; margin-top: 2rem; padding: 1.6rem 1.8rem; border-radius: var(--radio); border: 1px dashed var(--linea-fuerte); }
.precios__nota p { color: var(--texto-2); max-width: 64ch; }
.precios__nota .btn { flex: none; }

/* --- Contacto -------------------------------------------------------------- */
.bloque--contacto { background: radial-gradient(50% 60% at 15% 60%, rgba(216, 183, 126, .08), transparent 70%); }
.contacto { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contacto__directo { display: grid; gap: 1.1rem; justify-items: start; position: sticky; top: 7rem; }
.telefono { font: 700 clamp(2rem, 4.4vw, 3.5rem)/1.05 var(--f-display); letter-spacing: .02em; text-decoration: none; font-variant-numeric: tabular-nums; filter: drop-shadow(0 10px 24px rgba(216, 183, 126, .18)); }
.contacto__directo p:not(.antetitulo) { color: var(--texto-2); max-width: 36ch; }
.contacto__correo a { color: var(--oro-claro); text-underline-offset: 4px; display: inline-block; padding-block: .5rem; }
.contacto__correo a:hover { color: var(--oro); }
.formulario { display: grid; gap: 1.4rem; padding: clamp(1.4rem, 3.5vw, 2.4rem); border-radius: var(--radio); background: var(--vidrio), var(--negro-2); border: 1px solid var(--linea); }
.formulario__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.campo { display: grid; gap: .55rem; border: 0; min-width: 0; }
.campo label, .campo legend { font: 700 .72rem/1.2 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--texto-2); }
.campo legend { margin-bottom: .6rem; }
.campo input, .campo textarea {
  width: 100%; padding: .95rem 1.05rem; border-radius: 12px; font-size: 1rem; font-weight: 300;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--linea); transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.campo textarea { resize: vertical; min-height: 7.5rem; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--texto-3); }
.campo input:hover, .campo textarea:hover { border-color: var(--linea-fuerte); }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 4px rgba(216, 183, 126, .14); background: rgba(0, 0, 0, .5); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { font: 400 .95rem/1.2 var(--f-texto); letter-spacing: 0; text-transform: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--linea-fuerte); font-size: .92rem; color: var(--texto-2); transition: all .3s var(--ease); }
.chip:hover span { border-color: var(--oro); color: var(--texto); }
.chip input:checked + span { background: var(--oro-deg); background-size: 200% 100%; color: #17120a; border-color: transparent; font-weight: 500; box-shadow: 0 8px 22px -10px rgba(216, 183, 126, .6); }
.chip input:focus-visible + span { outline: 2px solid var(--oro-claro); outline-offset: 3px; }
.formulario__error { color: #ffb4a2; font-size: .95rem; min-height: 0; }
.formulario__error:empty { display: none; }
.formulario__pie { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.formulario__pie p { color: var(--texto-3); font-size: .88rem; max-width: 30ch; }

/* --- Pie ----------------------------------------------------------------- */
.pie { border-top: 1px solid var(--linea); padding-block: 3rem calc(3rem + env(safe-area-inset-bottom)); }
.pie__dentro { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.pie p { color: var(--texto-3); font-size: .92rem; }
.pie__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.5rem; }
.pie__legal a { color: var(--texto-2); text-underline-offset: 4px; display: inline-block; padding-block: .7rem; }
.pie__legal a:hover { color: var(--oro-claro); }

.barra-movil { display: none; }

/* --- Pantallas medianas -------------------------------------------------- */
@media (max-width: 1180px) and (min-width: 901px) {
  .nav__dentro { gap: 1.2rem; }
  .nav__enlaces { gap: 1.1rem; }
  .nav__enlaces a { letter-spacing: .12em; }
}
@media (max-width: 1100px) {
  .nav__enlaces { gap: 1.5rem; }
  .precios { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .pasos::before, .pasos::after { display: none; }
  .obra, .obra--inversa { grid-template-columns: 1fr; }
  .obra--inversa .obra__dispositivos { order: 0; }
  .obra__dispositivos { max-width: 760px; }
  .pie__dentro { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__enlaces {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: .4rem;
    padding: 6rem var(--margen) 8rem; background: rgba(8, 8, 10, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav__enlaces a { font: 700 clamp(1.5rem, 7vw, 2.3rem)/1.3 var(--f-display); letter-spacing: .06em; color: var(--texto); padding: .45rem 0; translate: 0 18px; opacity: 0; transition: translate .6s var(--ease), opacity .6s var(--ease), color .3s; }
  .nav__enlaces a::after { display: none; }
  .nav__enlaces .nav__tel { display: inline-flex !important; align-items: center; gap: .7rem; margin-top: 1.4rem; font-size: 1.05rem; letter-spacing: .12em; color: var(--oro-claro); }
  .nav__tel svg { width: 1.3rem; height: 1.3rem; }
  .menu-abierto .nav__enlaces { opacity: 1; visibility: visible; }
  .menu-abierto .nav__enlaces a { translate: 0 0; opacity: 1; }
  .menu-abierto .nav__enlaces a:nth-child(2) { transition-delay: .05s; } .menu-abierto .nav__enlaces a:nth-child(3) { transition-delay: .1s; }
  .menu-abierto .nav__enlaces a:nth-child(4) { transition-delay: .15s; } .menu-abierto .nav__enlaces a:nth-child(5) { transition-delay: .2s; } .menu-abierto .nav__enlaces a:nth-child(6) { transition-delay: .25s; }
  .menu-abierto .nav { background: transparent; border-color: transparent; backdrop-filter: none; }
  .btn--nav { margin-left: auto; }
  .nav__menu { display: grid; place-content: center; gap: 6px; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid var(--linea-fuerte); background: rgba(10, 10, 12, .5); cursor: pointer; }
  .nav__menu i { display: block; width: 16px; height: 1.5px; background: var(--oro-claro); transition: transform .4s var(--ease); }
  .menu-abierto .nav__menu i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .menu-abierto .nav__menu i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
  .menu-abierto { overflow: hidden; }

  .hero { display: block; min-height: 0; }
  .hero__escena { position: relative; height: min(66svh, 640px); }
  .hero::after { height: 34%; top: calc(min(66svh, 640px) - 14%); bottom: auto; background: linear-gradient(to bottom, transparent, var(--negro) 70%); }
  .hero__nombre { top: 50%; font-size: 10.5vw; }
  .hero__texto { grid-template-columns: 1fr; padding-top: 0; margin-top: 1.4rem; padding-bottom: 3.5rem; }
  .hero h1 { max-width: 16ch; }
  .hero__pista { top: auto; bottom: calc(100% - min(66svh, 640px) + 1.2rem); left: 50%; right: auto; translate: -50% 0; white-space: nowrap; }

  .servicios { grid-template-columns: 1fr; }
  .contacto { grid-template-columns: 1fr; }
  .contacto__directo { position: static; }
}

/* --- Móvil ----------------------------------------------------------------- */
@media (max-width: 600px) {
  body { font-size: 1rem; padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
  .btn--nav { display: none; }
  .nav__menu { margin-left: auto; }
  .logo__txt { font-size: .82rem; letter-spacing: .24em; }
  .hero__escena { height: min(60svh, 520px); }
  .hero::after { top: calc(min(60svh, 520px) - 14%); }
  .hero__pista { bottom: calc(100% - min(60svh, 520px) + 1rem); }
  .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.5rem); }
  .acciones .btn { flex: 1 1 100%; }
  .titulo-3d { font-size: clamp(1.75rem, 10.2vw, 3rem); }
  .titulo-3d::before, .num-3d::before {
    text-shadow:
      calc(var(--dx) * 1px) calc(var(--dy) * 1px) 0 #6b5129,
      calc(var(--dx) * 2px) calc(var(--dy) * 2px) 0 #5a4423,
      calc(var(--dx) * 3px) calc(var(--dy) * 3px) 0 #4a371c,
      calc(var(--dx) * 4px) calc(var(--dy) * 4px) 0 #3a2b15,
      calc(var(--dx) * 7px) calc(var(--dy) * 10px) 16px rgba(0, 0, 0, .75);
  }
  .precios, .pasos { grid-template-columns: 1fr; }
  .precio h3 { min-height: 0; }
  .num-3d { margin-bottom: 1rem; }
  .formulario__fila { grid-template-columns: 1fr; }
  .formulario__pie .btn { width: 100%; }
  .precios__nota { flex-direction: column; align-items: flex-start; padding: 1.4rem; }
  .obra__dispositivos, .obra--inversa .obra__dispositivos { padding: .5rem 1.2rem 2.2rem 0; }
  .obra--inversa .obra__dispositivos { padding: .5rem 0 2.2rem 1.2rem; }
  .movil { border-radius: 14px; }
  .movil img { border-radius: 10px; }
  .portatil__tapa { border-radius: 10px 10px 3px 3px; }
  .portatil__base { height: 9px; }
  .ranking { margin-inline: 1.2rem; }
  .pie__legal { flex-direction: column; gap: .6rem; }

  .barra-movil {
    position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    padding: .6rem .7rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(10, 10, 12, .88); border-top: 1px solid var(--linea);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .barra-movil a { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; border-radius: 999px; border: 1px solid var(--linea-fuerte); text-decoration: none; font: 700 .7rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--oro-claro); }
  .barra-movil svg { width: 1.1rem; height: 1.1rem; }
  .barra-movil .barra-movil__oro { background: var(--oro-deg); background-size: 200% 100%; color: #17120a; border-color: transparent; }
}

@media (max-width: 380px) {
  .antetitulo { letter-spacing: .18em; }
  .chip span { padding: .55rem .9rem; }
}

/* --- Menos movimiento -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  .js [data-rev] { opacity: 1; translate: none; filter: none; }
  .js .cab .titulo-3d { transform: none; opacity: 1; }
  .js .hero__texto > * { opacity: 1; translate: none; }
  .brillo-cursor { display: none; }
}

/* --- Aviso legal ------------------------------------------------------------ */
.legal { padding: 8rem 0 5rem; }
.legal h1 { font: 700 clamp(1.8rem, 5vw, 3.4rem)/1.05 var(--f-display); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.25rem; margin: 2.6rem 0 .8rem; color: var(--oro-claro); }
.legal p, .legal dl { max-width: 68ch; color: var(--texto-2); }
.legal p + p { margin-top: .9rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.8rem; margin-top: 1.2rem; }
.legal dt { font: 700 .72rem/2.2 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--texto-3); }
.legal dd { color: var(--texto); }
.legal a:not(.btn) { color: var(--oro-claro); text-underline-offset: 4px; }
.legal .btn { margin-top: 3rem; }
.legal .btn svg { transform: scaleX(-1); }
@media (max-width: 600px) { .legal { padding-top: 6.5rem; } .legal dl { grid-template-columns: 1fr; gap: .1rem; } .legal dd { margin-bottom: .8rem; } }
