/* ==========================================================================
   D REFORMAS · Hoja de estilos
   Colores de marca tomados de la web actual: azul #0073bc · naranja #f96a00
   ========================================================================== */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --blue: #0073bc;
  --blue-600: #005f9c;
  --blue-100: #e3f1fb;
  --navy: #062a47;
  --navy-900: #031a2e;
  --orange: #f96a00;
  --orange-600: #e05f00;
  --orange-700: #b84c00;   /* naranja para texto pequeño sobre blanco (AA) */
  --orange-100: #fff1e6;
  --ink: #0d1b2a;
  --muted: #4d5d6c;
  --line: #dfe7ee;
  --bg: #ffffff;
  --bg-alt: #f3f7fa;

  --ff-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(6, 42, 71, .06);
  --shadow: 0 18px 50px -18px rgba(6, 42, 71, .28);
  --shadow-orange: 0 14px 34px -12px rgba(249, 106, 0, .55);
  --ease: cubic-bezier(.22, .9, .3, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* Marcadores de datos pendientes del cliente */
.ph { background: #fff6c2; color: #6b4b00; border: 1px dashed #c9a400; border-radius: 4px; padding: 0 .3em; font-family: ui-monospace, monospace; font-size: .85em; }

/* ---------- Utilidades de sección ---------- */
.section { padding-block: clamp(72px, 10vw, 130px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #d9e6f1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--ff-display); font-weight: 500;
  font-size: .9rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-700); margin-bottom: 1rem;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--orange); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--muted); }
.section--dark .lead { color: #b6c9da; }
.accent { color: var(--orange); }
.blue { color: var(--blue); }

/* Rejilla tipo plano de arquitecto */
.blueprint {
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}

/* ---------- Botones ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85em 1.6em;
  font: 600 1rem/1 var(--ff-body); letter-spacing: .01em;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--orange); color: var(--navy-900); box-shadow: var(--shadow-orange); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover { color: var(--navy-900); box-shadow: 0 20px 40px -12px rgba(249,106,0,.7); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-600); color: #fff; }

/* ---------- Barra de progreso de scroll ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--orange), #ffb066); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, transform .45s var(--ease), height .35s;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); --header-h: 66px; }
.header.is-hidden { transform: translateY(-100%); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 60px; width: auto; transition: height .35s; }
.header.is-scrolled .logo img { height: 44px; }
.logo .logo--dark { display: none; }
.header.is-scrolled .logo .logo--light, .header--solid .logo .logo--light { display: none; }
.header.is-scrolled .logo .logo--dark, .header--solid .logo .logo--dark { display: block; }
.header--solid { background: #fff; box-shadow: 0 1px 0 var(--line); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: 10px 14px;
  font-weight: 500; font-size: .97rem; color: #fff; text-decoration: none;
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover { color: #fff; }
.header.is-scrolled .nav__link, .header--solid .nav__link { color: var(--ink); }
.nav .btn { min-height: 44px; padding: .7em 1.3em; margin-left: 10px; font-size: .95rem; }

.burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 110; border-radius: 12px; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .45s var(--ease), opacity .3s, background .3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 29px; }
.header.is-scrolled .burger span, .header--solid .burger span { background: var(--ink); }
.nav-open .burger span { background: #fff !important; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 105; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 100px var(--gutter) 40px; background: var(--navy);
    clip-path: circle(0 at calc(100% - 44px) 38px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .nav-open .nav { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path .8s var(--ease); }
  .nav__list { flex-direction: column; gap: 4px; width: 100%; }
  .nav__link, .header.is-scrolled .nav__link, .header--solid .nav__link { color: #fff; font-family: var(--ff-display); text-transform: uppercase; font-size: clamp(2rem, 9vw, 2.8rem); padding: 6px 0; }
  .nav__link::after { left: 0; right: auto; width: 60px; }
  .nav__list li { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease); }
  .nav-open .nav__list li { opacity: 1; transform: none; }
  .nav-open .nav__list li:nth-child(1) { transition-delay: .15s; } .nav-open .nav__list li:nth-child(2) { transition-delay: .2s; }
  .nav-open .nav__list li:nth-child(3) { transition-delay: .25s; } .nav-open .nav__list li:nth-child(4) { transition-delay: .3s; }
  .nav-open .nav__list li:nth-child(5) { transition-delay: .35s; }
  .nav .btn { margin: 28px 0 0; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter/transform del header crearían un contenedor para el menú fijo: se anulan con el menú abierto */
  .nav-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; background: transparent; box-shadow: none; }
  .nav-open .header .logo { position: relative; z-index: 110; }
  .nav-open .header .logo--dark { display: none !important; } .nav-open .header .logo--light { display: block !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% 10%, rgba(0,115,188,.45), transparent 60%), var(--navy-900);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(70px, 9vw, 120px);
}
.hero .blueprint-bg { position: absolute; inset: 0; pointer-events: none; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 80%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero .lead { color: #c4d5e4; max-width: 560px; animation: fadeUp 1s .45s var(--ease) both; }
.hero .eyebrow { animation: fadeUp .8s .05s var(--ease) both; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; animation: fadeUp 1s .6s var(--ease) both; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; animation: fadeUp 1s .75s var(--ease) both; }
.hero__trust li { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: #d4e2ee; }
.hero__trust svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.highlight { position: relative; color: var(--orange); white-space: nowrap; }
.highlight svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.highlight path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.2s 1s var(--ease) forwards; }

.hero__visual { position: relative; perspective: 1200px; animation: fadeUp 1.1s .3s var(--ease) both; }
.hero__frame {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1280 / 760;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12);
  transform: rotateY(-8deg) rotateX(3deg); transform-style: preserve-3d; transition: transform .8s var(--ease);
}
.hero__visual:hover .hero__frame { transform: rotateY(-2deg) rotateX(1deg); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; animation: zoomOut 2.2s var(--ease) both; }
.hero__frame::after { /* cortina que se retira */
  content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: right;
  animation: curtain 1.1s .25s var(--ease) both;
}
.hero__scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(0,160,255,.18) 48%, rgba(120,200,255,.6) 50%, transparent 52%); background-size: 200% 100%; animation: scan 5s 1.6s ease-in-out infinite; mix-blend-mode: screen; }
.badge-float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.96); color: var(--ink); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: .9rem; line-height: 1.25; z-index: 2;
  animation: floaty 6s ease-in-out infinite, fadeUp .9s var(--ease) both;
}
.badge-float strong { display: block; font-family: var(--ff-display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; }
.badge-float .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.badge-float .ico svg { width: 24px; height: 24px; }
.badge-float--a { left: -26px; bottom: 34px; animation-delay: 0s, 1.1s; }
.badge-float--a .ico { background: var(--orange-100); color: var(--orange-600); }
.badge-float--b { right: -18px; top: 26px; animation-delay: -3s, 1.3s; }
.badge-float--b .ico { background: var(--blue-100); color: var(--blue); }
.hero__house { position: absolute; right: -4%; bottom: -8%; width: min(560px, 60vw); opacity: .5; pointer-events: none; }
.hero__house path, .hero__house line, .hero__house rect { fill: none; stroke: rgba(80,170,240,.55); stroke-width: 1.4; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s .4s var(--ease) forwards; }
.hero__house .roof { stroke: var(--orange); stroke-width: 2.5; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: cue 1.8s infinite; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__frame { transform: none; }
  .badge-float--a { left: 10px; bottom: -22px; }
  .badge-float--b { right: 10px; top: -20px; }
  .scroll-cue { display: none; }
}

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); padding: calc(var(--header-h) + 70px) 0 80px; }
.page-hero .blueprint-bg { position: absolute; inset: 0; mask-image: linear-gradient(90deg, #000, transparent 85%); }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(0,115,188,.55), transparent 65%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.3rem); max-width: 900px; animation: fadeUp .9s var(--ease) both; }
.page-hero .lead { color: #c4d5e4; max-width: 680px; animation: fadeUp .9s .15s var(--ease) both; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .9rem; color: #9fb6ca; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--orange); }
.breadcrumb a { color: #d9e6f1; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Marquee de oficios ---------- */
.marquee { background: var(--orange); color: var(--navy-900); overflow: hidden; padding: 18px 0; position: relative; transform: rotate(-1.2deg); margin: -22px -10px 0; z-index: 3; box-shadow: 0 10px 30px -10px rgba(249,106,0,.6); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--ff-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.marquee li::after { content: ""; width: 14px; height: 14px; background: var(--navy-900); clip-path: polygon(50% 0, 100% 55%, 82% 55%, 82% 100%, 18% 100%, 18% 55%, 0 55%); }

/* ---------- Bloque intro / respuesta directa ---------- */
.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.answer-box { position: relative; background: var(--bg-alt); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 28px; margin-top: 28px; }
.answer-box h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: .4em; }
.answer-box p { margin: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { position: relative; padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.stat.is-in::before { transform: scaleX(1); }
.stat__num { font-family: var(--ff-display); font-size: clamp(2.4rem, 4vw, 3.3rem); font-weight: 700; line-height: 1; color: var(--navy); }
.stat__num small { font-size: .55em; color: var(--orange); margin-left: 2px; }
.stat__label { display: block; margin-top: 8px; font-size: .95rem; color: var(--muted); line-height: 1.4; }
.stat--feature { grid-column: span 2; background: var(--navy); border-color: var(--navy); color: #cfe0ee; display: flex; align-items: center; gap: 18px; }
.stat--feature .stat__num { color: #fff; }
.stat--feature img { width: 92px; height: auto; border-radius: 12px; background: #fff; padding: 6px; }

/* ---------- Servicios (bento + tilt) ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.section-head + .services .card:only-child { grid-column: span 6; }
.card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; grid-column: span 2; display: flex; flex-direction: column;
  padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); overflow: hidden; isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card::before { /* brillo que sigue al cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(0,115,188,.12), transparent 45%);
}
.card:hover { box-shadow: var(--shadow); border-color: rgba(0,115,188,.35); color: var(--ink); }
.card:hover::before { opacity: 1; }
.card--lg { grid-column: span 3; }
.card--lg::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; z-index: -2; border-radius: 50%;
  background-image: linear-gradient(rgba(0,115,188,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(0,115,188,.09) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(circle, #000 35%, transparent 70%); transition: transform .8s var(--ease); }
.card--lg:hover::after { transform: scale(1.15) rotate(8deg); }
.card__icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); margin-bottom: 22px; transition: transform .5s var(--ease), background .4s, color .4s; }
.card__icon svg { width: 34px; height: 34px; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); background: var(--orange); color: #fff; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: 1rem; }
.card ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-size: .82rem; font-weight: 500; padding: 5px 11px; border-radius: 99px; background: var(--bg-alt); color: var(--navy); }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--blue); }
.card__more svg { width: 18px; transition: transform .4s var(--ease); }
.card:hover .card__more svg { transform: translateX(6px); }
.card__num { position: absolute; right: 22px; top: 14px; font-family: var(--ff-display); font-size: 4.2rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--line); line-height: 1; transition: -webkit-text-stroke-color .4s; }
.card:hover .card__num { -webkit-text-stroke-color: rgba(249,106,0,.45); }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } .card, .card--lg { grid-column: span 1; min-height: 0; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* ---------- Antes / después (plano vs. obra) ---------- */
.compare { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1280 / 612; box-shadow: var(--shadow); user-select: none; --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__before img { filter: grayscale(1) contrast(1.3) brightness(1.05) sepia(1) hue-rotate(175deg) saturate(3.2); }
.compare__before::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 32px 32px; mix-blend-mode: overlay; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 20px rgba(0,0,0,.4); }
.compare__handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--navy-900); font-size: 1.5rem; font-weight: 700; box-shadow: var(--shadow-orange); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input:focus-visible + .compare__handle::after { outline: 3px solid #fff; outline-offset: 3px; }
.compare__tag { position: absolute; top: 18px; padding: 6px 14px; border-radius: 99px; font: 600 .8rem/1.4 var(--ff-body); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.compare__tag--l { left: 18px; background: rgba(6,42,71,.85); color: #fff; }
.compare__tag--r { right: 18px; background: rgba(255,255,255,.92); color: var(--navy); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--orange); margin-top: 1px; }
@media (max-width: 900px) { .split, .intro { grid-template-columns: 1fr; } .compare { aspect-ratio: 4 / 3; } }

/* ---------- Proceso (línea de tiempo) ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.process__line { position: absolute; left: 0; right: 0; top: 36px; height: 2px; background: rgba(255,255,255,.12); }
.process__line span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #ffb066); transform-origin: left; transform: scaleX(var(--line, 0)); transition: transform .2s linear; }
.step { position: relative; }
.step__dot { position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); border: 2px solid rgba(255,255,255,.18); font-family: var(--ff-display); font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 22px; transition: background .5s, border-color .5s, transform .5s var(--ease), box-shadow .5s; }
.step.is-in .step__dot { background: var(--orange); border-color: var(--orange); color: var(--navy-900); box-shadow: 0 0 0 8px rgba(249,106,0,.15); }
.step h3 { font-size: 1.35rem; }
.step p { color: #b6c9da; font-size: 1rem; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 10px; padding-left: 0; }
  .process__line { left: 35px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process__line span { transform-origin: top; transform: scaleY(var(--line, 0)); }
  .step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding-bottom: 24px; }
}

/* ---------- Valores ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.value { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: 16px; }
.value h3 { font-size: 1.2rem; }
.value p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Zona de trabajo (parallax) ---------- */
.zone { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding-block: clamp(90px, 12vw, 160px); }
.zone__bg { position: absolute; inset: -15% 0; z-index: -2; }
.zone__bg img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)); will-change: transform; }
.zone::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(3,26,46,.94) 15%, rgba(3,26,46,.65) 60%, rgba(0,115,188,.35)); }
.zone h2 { color: #fff; }
.zone .lead { color: #d0dfeb; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 30px 0 0; }
.chips a, .chips span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-weight: 500; backdrop-filter: blur(8px); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.chips a:hover { background: var(--orange); border-color: var(--orange); color: var(--navy-900); transform: translateY(-3px); }
.chips svg { width: 18px; height: 18px; }

/* Chips sobre fondo claro (landings de zona) */
.chips--light { margin-top: 16px; }
.chips--light a, .chips--light span { background: #fff; border-color: var(--line); color: var(--navy); backdrop-filter: none; }
.chips--light svg { color: var(--orange-600); }
.chips--light a:hover svg { color: var(--navy-900); }

/* ---------- Obras realizadas ---------- */
.obras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.obra { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .45s var(--ease), box-shadow .45s; }
.obra:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.obra h3, .obra p { padding-inline: 24px; }
.obra h3 { margin-top: 22px; font-size: 1.2rem; }
.obra p { color: var(--muted); padding-bottom: 8px; }
.ph-photo { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 20px; text-align: center; background: repeating-linear-gradient(45deg, var(--bg-alt) 0 14px, #fff 14px 28px); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .obras { grid-template-columns: 1fr; } }

/* ---------- Reformas realizadas ---------- */
.casos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.caso { position: relative; padding: 30px 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s, border-color .4s; }
.caso:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-top-color: var(--orange); }
.caso h3 { font-size: 1.25rem; padding-right: 70px; }
.caso h3 a { color: var(--blue); }
.caso p { color: var(--muted); margin: 0; }
.caso__num { position: absolute; right: 20px; top: 12px; font-family: var(--ff-display); font-size: 3.2rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); }
.disenos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; }
.disenos figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.disenos img { width: 100%; height: 320px; object-fit: contain; }
.disenos figcaption { margin-top: 10px; font-weight: 600; color: var(--navy); }
@media (max-width: 760px) { .casos, .disenos { grid-template-columns: 1fr; } }

/* Casos detallados (reformas realizadas) */
.casos-indice { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: .95rem; }
.casos-indice a { text-decoration: none; }
.casos-indice a:hover { text-decoration: underline; }
.caso-detalle { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 50px); align-items: start; padding-block: clamp(34px, 5vw, 56px); border-top: 1px solid var(--line); }
.caso-detalle h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.caso-detalle p { color: var(--muted); }
.caso-logo { margin: 0; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s; }
.caso-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.caso-logo img { width: auto; max-width: 100%; max-height: 150px; object-fit: contain; }
.caso-logo--texto { background: var(--navy) linear-gradient(135deg, rgba(0,115,188,.35), transparent 60%); border-color: var(--navy); }
.caso-logo--texto span { font-family: var(--ff-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-align: center; color: #fff; padding-bottom: 10px; border-bottom: 3px solid var(--orange); }
.caso-detalle__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px !important; }
.caso-detalle__meta > span:not(.ph) { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--blue-100); color: var(--navy); }
@media (max-width: 860px) { .caso-detalle { grid-template-columns: 1fr; } .casos-indice { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: box-shadow .4s, border-color .4s; }
.faq details[open] { border-color: rgba(0,115,188,.4); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230073bc' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .45s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--orange-100); }
.faq__body { padding: 0 22px 22px; color: var(--muted); }
.faq__body p:last-child { margin: 0; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq__aside { position: static; } }

/* ---------- CTA final ---------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 7vw, 80px); background: linear-gradient(120deg, var(--blue) 0%, #004f85 100%); color: #fff; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(249,106,0,.55), transparent 65%); animation: pulse 7s ease-in-out infinite; }
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #d6e8f6; margin: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Contenido largo (servicios / nosotros / legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--blue); }
.prose li { margin-bottom: .4em; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.toc a { display: inline-block; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; transition: all .3s; }
.toc a:hover { border-color: var(--orange); background: var(--orange-100); color: var(--orange-700); }
.service-row { display: grid; grid-template-columns: 90px 1fr 1fr; gap: clamp(20px, 4vw, 50px); padding-block: clamp(40px, 6vw, 70px); border-top: 1px solid var(--line); align-items: start; }
.service-row:first-of-type { border-top: 0; }
.service-row__icon { width: 90px; height: 90px; border-radius: 22px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); }
.service-row__icon svg { width: 46px; height: 46px; }
.service-row h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.service-row .tags { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; margin: 0; }
.service-row .tags li { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); font-weight: 500; }
.service-row .tags li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); flex-shrink: 0; }
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; } .service-row__icon { width: 70px; height: 70px; } }

/* ---------- Formulario de presupuesto (por pasos) ---------- */
.quote { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.form-card { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.steps-bar { display: flex; gap: 8px; margin-bottom: 28px; }
.steps-bar span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.steps-bar span::after { content: ""; display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.steps-bar span.is-done::after { transform: scaleX(1); }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font-family: var(--ff-display); text-transform: uppercase; font-size: 1.45rem; font-weight: 600; margin-bottom: 16px; padding: 0; }
.js .form-step { display: none; }
.js .form-step.is-active { display: block; animation: fadeUp .55s var(--ease) both; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 12px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; font-weight: 600; font-size: .95rem; transition: border-color .3s, background .3s, transform .35s var(--ease); }
.option label svg { width: 34px; height: 34px; color: var(--blue); transition: transform .4s var(--ease); }
.option label:hover { border-color: rgba(0,115,188,.4); transform: translateY(-3px); }
.option input:checked + label { border-color: var(--orange); background: var(--orange-100); }
.option input:checked + label svg { transform: scale(1.15); color: var(--orange-600); }
.option input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #c9d5e0; background: #fff; color: var(--ink); transition: border-color .3s, box-shadow .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,115,188,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 8px 0 20px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.no-js-only { display: block; } .js .no-js-only { display: none; }
.js-only { display: none; } .js .js-only { display: inline-flex; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; display: none; }
.form-msg.is-error { display: block; background: #fdecec; color: #8a1c1c; }
.form-msg.is-ok { display: block; background: #e8f6ee; color: #1d5e36; }
.aside-card { background: var(--navy); color: #cfe0ee; border-radius: 24px; padding: 32px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card h2 { color: #fff; font-size: 1.6rem; }
.aside-card .checklist li { color: #cfe0ee; }
.aside-card a { color: #fff; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } .aside-card { position: static; } .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #a9bed1; padding: clamp(60px, 8vw, 100px) 0 30px; position: relative; overflow: hidden; }
.footer a { color: #d6e4f0; text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h2 { font-size: 1.05rem; letter-spacing: .12em; color: #fff; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer address { font-style: normal; display: grid; gap: 10px; }
.footer__logo img { height: 74px; width: auto; margin-bottom: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__big { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); font-family: var(--ff-display); font-weight: 700; font-size: 22vw; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.05); white-space: nowrap; pointer-events: none; user-select: none; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- CTA flotante móvil ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: none; transform: translateY(120px); transition: transform .5s var(--ease); }
.fab.is-visible { transform: none; }
@media (max-width: 760px) { .fab { display: block; } .fab .btn { box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); } }

/* ---------- Banner de cookies ---------- */
.cookies { position: fixed; left: 16px; bottom: 16px; z-index: 150; max-width: 420px; background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.4); border: 1px solid var(--line); font-size: .92rem; animation: fadeUp .6s var(--ease) both; }
.cookies[hidden] { display: none; }
.cookies p { margin-bottom: 14px; }
.cookies__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookies .btn { min-height: 42px; padding: .6em 1.2em; font-size: .9rem; }
@media (max-width: 560px) { .cookies { left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* Botones del aviso de cookies: mismo peso visual para aceptar, rechazar y configurar (criterio AEPD) */
.btn--cookie { background: #fff; color: var(--navy); border-color: var(--navy); min-height: 44px; padding: .6em 1.15em; font-size: .92rem; }
.btn--cookie:hover { background: var(--navy); color: #fff; }

/* Panel de configuración de cookies */
.cookie-panel { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 16px; background: rgba(3, 26, 46, .6); backdrop-filter: blur(3px); }
.cookie-panel[hidden] { display: none; }
.cookie-panel-open { overflow: hidden; }
.cookie-panel__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); animation: fadeUp .4s var(--ease) both; }
.cookie-panel__box h2 { font-size: 1.5rem; margin-bottom: .4em; }
.cookie-panel__box > p { color: var(--muted); font-size: .95rem; }
.cookie-panel__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-alt); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--navy); }
.cookie-panel__all { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.cookie-cat { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.cookie-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie-cat__head h3 { font-family: var(--ff-body); text-transform: none; font-size: 1rem; font-weight: 700; margin: 0; }
.cookie-cat p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.cookie-cat__fixed { font-size: .82rem; font-weight: 600; color: #1d5e36; background: #e8f6ee; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #b9c6d2; transition: background .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.cookie-panel__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }

/* Páginas legales */
.tabla-scroll { overflow-x: auto; margin: 1em 0 1.5em; }
.tabla-cookies { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
.tabla-cookies th, .tabla-cookies td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tabla-cookies th { background: var(--bg-alt); font-weight: 700; color: var(--navy); }
.legal-fecha { margin-top: 2em; font-size: .9rem; color: var(--muted); }
.form-info-datos { font-size: .88rem; color: var(--muted); background: var(--bg-alt); border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px; line-height: 1.5; }

/* ---------- Animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--zoom { transform: scale(.94); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Título que se "escribe" letra a letra al entrar */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split-words.is-in .w > span { transform: none; }

@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes curtain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes zoomOut { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes scan { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.15); opacity: .6; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .split-words .w > span { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  @view-transition { navigation: none; }
}
