/* ==========================================================
   RemicStudio · Diseño web — web pública
   Tema claro: blancos plateados y azules. Outfit + Poppins.
   El panel de admin usa styles.css.
   ========================================================== */
:root {
  --bg: #f4f6fa;
  --white: #ffffff;
  --silver: linear-gradient(145deg, #ffffff 0%, #eef2f7 55%, #dde4ee 100%);
  --silver-2: #e6ebf2;
  --text: #0b1b33;
  --ink: #0b1b33;
  --muted: #5b6b82;
  --line: rgba(11, 27, 51, .09);
  --line-2: rgba(11, 27, 51, .16);
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --blue-light: #e8f0ff;
  --blue-grad: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --accent: #2563eb;
  --accent-2: #2563eb;
  --shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 18px 40px -18px rgba(11, 27, 51, .22);
  --shadow-blue: 0 14px 34px -14px rgba(37, 99, 235, .55);
  --display: "Outfit", system-ui, sans-serif;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 24px;
  --max: 1220px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.12; letter-spacing: -.015em; }
p { margin: 0; }
::selection { background: var(--blue); color: #fff; }
.y, .azul { background: var(--blue-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Fondo plateado con brillos azules, fijo detrás de todo */
.fondo { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(760px 560px at 105% -10%, rgba(59, 130, 246, .20), transparent 70%),
  radial-gradient(680px 520px at -10% 110%, rgba(148, 163, 184, .32), transparent 70%),
  radial-gradient(520px 420px at 15% 20%, rgba(255, 255, 255, .9), transparent 70%),
  linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }

/* ---------- Títulos de sección con rótulo «fantasma» ---------- */
.titulo { position: relative; margin-bottom: 56px; }
.titulo__fantasma {
  position: absolute; left: -4px; top: -.6em; z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: clamp(64px, 9vw, 122px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px rgba(37, 99, 235, .16);
}
.titulo h2 { position: relative; z-index: 1; font-size: clamp(30px, 3.6vw, 46px); max-width: 680px; }
.titulo--fila { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end; }
.titulo--fila p { color: var(--muted); text-align: right; position: relative; z-index: 1; }
.titulo--centro { text-align: center; }
.titulo--centro .titulo__fantasma { left: 50%; transform: translateX(-50%); }
.titulo--centro h2 { margin: 0 auto; }
.titulo--centro p { color: var(--muted); max-width: 620px; margin: 16px auto 0; position: relative; z-index: 1; }
.etiqueta { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 50px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; color: var(--blue-2); margin-bottom: 18px; position: relative; z-index: 1; }
.etiqueta i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); animation: pulso 2.2s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ---------- Botones píldora ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 8px 8px 26px; min-height: 54px;
  border-radius: 50px; border: 1px solid transparent; font: 500 15.5px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn__flecha { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .35s var(--ease); }
.btn:hover .btn__flecha { transform: rotate(45deg); }
.btn__flecha svg { width: 16px; height: 16px; }
.btn--primario, .btn--amarillo { background: var(--blue-grad); color: #fff; font-weight: 600; box-shadow: var(--shadow-blue); }
.btn--primario .btn__flecha, .btn--amarillo .btn__flecha { background: #fff; color: var(--blue-2); }
.btn--primario:hover, .btn--amarillo:hover { box-shadow: 0 18px 40px -14px rgba(37, 99, 235, .7); }
.btn--negro { background: var(--ink); color: #fff; }
.btn--negro .btn__flecha { background: #fff; color: var(--ink); }
.btn--borde { border-color: var(--line-2); color: var(--ink); padding: 8px 26px; background: rgba(255, 255, 255, .6); }
.btn--borde:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn--icono { padding: 0; width: 54px; justify-content: center; background: #fff; border-color: var(--line); color: #16a34a; box-shadow: var(--shadow); }
.btn--icono svg { width: 24px; height: 24px; }

/* ---------- Cabecera ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, height .3s; }
.header.is-scrolled { background: rgba(255, 255, 255, .82); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(11, 27, 51, .25); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 28px; transition: height .3s; }
.header.is-scrolled .header__inner { height: 76px; }
.logo { display: block; flex: none; text-decoration: none; }
.marca { display: flex; align-items: center; gap: 12px; }
.marca img { height: 30px; width: auto; }
.marca i { display: none; }
.marca__texto { display: flex; flex-direction: column; line-height: 1.05; }
.marca__texto b { font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: .01em; white-space: nowrap; }
.marca__texto b span { background: var(--blue-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marca__texto small { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.marca--pie img { height: 36px; }
.marca--pie .marca__texto b { font-size: 24px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a, .nav__drop > button { white-space: nowrap; }
.nav > a:not(.btn), .nav__drop > button { text-decoration: none; font: 500 14.5px var(--font); color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; transition: color .2s; display: inline-flex; align-items: center; gap: 4px; }
.nav > a:not(.btn):hover, .nav > a.activo, .nav__drop:hover > button { color: var(--blue); }
.nav a.btn { color: #fff; min-height: 48px; font-size: 14.5px; padding: 6px 6px 6px 22px; }
.nav a.btn .btn__flecha { width: 34px; height: 34px; }
.nav__drop { position: relative; }
.nav__drop > button svg { width: 14px; height: 14px; transition: transform .25s; }
.nav__drop:hover > button svg, .nav__drop:focus-within > button svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 16px); left: 50%; min-width: 250px; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: .25s var(--ease); }
.nav__menu::before { content: ""; position: absolute; inset: -16px 0 auto 0; height: 16px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-size: 14px; color: var(--ink); transition: background .2s, color .2s; }
.nav__menu a:hover { background: var(--blue-light); color: var(--blue-2); }
.nav__menu a svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--blue-grad); color: #fff; cursor: pointer; place-items: center; box-shadow: var(--shadow-blue); }
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Portada ---------- */
.hero { padding: 160px 0 60px; position: relative; overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero__texto { position: relative; }
.garabato { position: absolute; left: -96px; top: 8px; width: 84px; height: auto; color: var(--blue); opacity: .8; }
.hero h1 { font-size: clamp(36px, 4.6vw, 62px); text-transform: uppercase; line-height: 1.06; letter-spacing: -.01em; }
.hero h1 .rotador { display: inline-block; position: relative; }
.hero h1 .rotador span { display: inline-block; animation: entrar .6s var(--ease); background: var(--blue-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes entrar { from { opacity: .45; transform: translateY(32%); } to { opacity: 1; transform: none; } }
.hero__lead { margin-top: 22px; font-size: 17px; color: var(--muted); max-width: 560px; }
.hero__lead b { color: var(--ink); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.hero__tel { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--ink); margin-left: 6px; }
.hero__tel svg { width: 20px; height: 20px; color: var(--blue); }
.hero__visual { position: relative; }
.hero__foto { position: relative; border-radius: 32px; overflow: hidden; background: var(--blue-grad); aspect-ratio: 4 / 4.6; box-shadow: 0 40px 80px -40px rgba(29, 78, 216, .6); }
.hero__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(11, 27, 51, .45)); }
.contador-flotante { position: absolute; z-index: 2; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .8); border-radius: 20px; padding: 16px 20px; box-shadow: var(--shadow); }
.contador-flotante b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; color: var(--ink); }
.contador-flotante b em { font-style: normal; color: var(--blue); }
.contador-flotante small { font-size: 12.5px; color: var(--muted); }
.contador-flotante--a { left: -34px; bottom: 54px; animation: flotar 6s ease-in-out infinite; }
.contador-flotante--b { right: -22px; top: 48px; animation: flotar 7s ease-in-out infinite reverse; }
@keyframes flotar { 50% { transform: translateY(-10px); } }
.forma { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; will-change: transform; }
.forma--cromo { width: 180px; height: 180px; right: -60px; bottom: -40px; border-radius: 46% 54% 60% 40% / 44% 42% 58% 56%;
  background: radial-gradient(circle at 30% 28%, #fff 0 12%, rgba(255, 255, 255, 0) 30%), conic-gradient(from 200deg, #cbd5e1, #ffffff, #93c5fd, #2563eb, #e2e8f0, #cbd5e1);
  box-shadow: inset -18px -24px 40px rgba(11, 27, 51, .25), 0 30px 50px -20px rgba(37, 99, 235, .45); animation: girar 14s ease-in-out infinite alternate; }
@keyframes girar { to { border-radius: 58% 42% 40% 60% / 56% 60% 40% 44%; transform: rotate(35deg); } }

/* ---------- Franja de servicios ---------- */
.marquee { margin-top: 70px; padding: 22px 0; overflow: hidden; white-space: nowrap; background: var(--ink); transform: rotate(-1.2deg); width: 104%; margin-left: -2%; box-shadow: 0 20px 40px -24px rgba(11, 27, 51, .6); }
.marquee__track { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 0 26px; display: inline-flex; align-items: center; gap: 52px; }
.marquee__track span::after { content: "✦"; color: #60a5fa; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre mí ---------- */
.sobre { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sobre__foto { position: relative; }
.sobre__foto::before { content: ""; position: absolute; inset: 34px 34px -20px -20px; border-radius: 32px; background: var(--blue-grad); z-index: 0; }
.sobre__foto img { position: relative; z-index: 1; border-radius: 32px; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 20%; box-shadow: var(--shadow); }
.sobre__foto .forma--cromo { left: -70px; right: auto; top: -50px; bottom: auto; width: 140px; height: 140px; z-index: 2; }
.sobre__texto > p { color: var(--muted); font-size: 16px; }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.cifras div { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.cifras b { display: block; font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1; color: var(--ink); }
.cifras b em { font-style: normal; color: var(--blue); }
.cifras > div > span { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: block; margin-top: 6px; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.mini div { background: var(--silver); border: 1px solid #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.mini i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--blue-grad); color: #fff; margin-bottom: 14px; font-style: normal; box-shadow: var(--shadow-blue); }
.mini i svg { width: 20px; height: 20px; }
.mini h3 { font-size: 19px; margin-bottom: 6px; }
.mini p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Servicios (carrusel) ---------- */
.carrusel { position: relative; }
.carrusel__pista { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 3); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 4px 30px; cursor: grab; scroll-behavior: smooth; }
.carrusel__pista::-webkit-scrollbar { display: none; }
.carrusel__pista.arrastrando { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.servicio { scroll-snap-align: start; position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; user-select: none; }
.servicio::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--blue-grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.servicio:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(29, 78, 216, .45); border-color: rgba(37, 99, 235, .3); }
.servicio:hover::before { transform: scaleX(1); }
.servicio__num { position: absolute; right: 26px; top: 22px; font-family: var(--display); font-size: 46px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(37, 99, 235, .25); }
.servicio__icono { width: 60px; height: 60px; border-radius: 18px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; margin-bottom: 24px; transition: background .3s, color .3s, transform .4s var(--ease); }
.servicio:hover .servicio__icono { background: var(--blue-grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.servicio__icono svg { width: 27px; height: 27px; }
.servicio h3 { font-size: 21px; margin-bottom: 10px; }
.servicio p { color: var(--muted); font-size: 14.5px; flex: 1; }
.servicio__mas { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); text-decoration: none; }
.servicio__mas svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.servicio:hover .servicio__mas svg { transform: translateX(5px); }
.carrusel__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 6px; }
.carrusel__puntos { display: flex; gap: 8px; }
.carrusel__puntos button { width: 10px; height: 10px; border-radius: 50px; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.carrusel__puntos button.activo { width: 30px; background: var(--blue); }
.carrusel__flechas { display: flex; gap: 10px; }
.carrusel__flechas button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: .25s; box-shadow: var(--shadow); }
.carrusel__flechas button:hover { background: var(--blue-grad); color: #fff; border-color: transparent; }
.carrusel__flechas svg { width: 20px; height: 20px; }

/* ---------- Portfolio (lo genera functions/index.js) ---------- */
.work-group + .work-group { margin-top: 70px; }
.work-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.work-group__head h3 { font-size: 20px; }
.work-group__head p { color: var(--muted); font-size: 14.5px; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.project { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 14px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.project:hover { transform: translateY(-8px); box-shadow: 0 34px 70px -34px rgba(29, 78, 216, .5); }
.project__img { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 11; background: var(--silver-2); container-type: size; }
.project__img img { position: absolute; inset: 0 0 auto 0; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform 6s cubic-bezier(.45, .05, .35, 1); }
.project:hover .project__img img.is-tall { transform: translateY(calc(-100% + 100cqh)); }
.project:hover .project__img img:not(.is-tall) { transform: scale(1.04); transition-duration: .8s; }
.project__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 27, 51, .55)); opacity: 0; transition: opacity .35s; }
.project:hover .project__img::after { opacity: 1; }
.project__view { position: absolute; z-index: 2; left: 50%; top: 50%; width: 96px; height: 96px; border-radius: 50%; background: var(--blue-grad); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; transform: translate(-50%, -50%) scale(0); transition: transform .45s var(--ease); box-shadow: var(--shadow-blue); }
.project:hover .project__view { transform: translate(-50%, -50%) scale(1); }
.project__meta { display: flex; align-items: center; gap: 12px; margin: 20px 8px 0; flex-wrap: wrap; }
.project__index { display: none; }
.project__meta h4 { font-size: 22px; flex: 1; }
.project__meta > span:last-child { font-size: 12.5px; font-weight: 500; color: var(--blue-2); background: var(--blue-light); padding: 6px 12px; border-radius: 50px; }
.project > p { margin: 10px 8px 8px; color: var(--muted); font-size: 14.5px; }
.link-arrow, .project__cta { display: none; }

.clientes { margin-top: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: 24px; background: var(--silver); border: 1px solid #fff; box-shadow: var(--shadow); }
.clientes h3 { font-size: 20px; }
.clientes p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* ---------- Banda de cifras ---------- */
.banda { background: var(--blue-grad); color: #fff; border-radius: 34px; padding: 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(29, 78, 216, .65); }
.banda::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -220px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.banda div { position: relative; text-align: center; }
.banda div + div::before { content: ""; position: absolute; left: -10px; top: 15%; bottom: 15%; width: 1px; background: rgba(255, 255, 255, .25); }
.banda b { display: block; font-family: var(--display); font-size: clamp(38px, 4vw, 56px); font-weight: 800; line-height: 1; color: #fff; }
.banda > div > span { font-size: 14px; color: rgba(255, 255, 255, .85); }

/* ---------- Proceso ---------- */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; position: relative; }
.pasos__linea { position: absolute; left: 6%; right: 6%; top: 46px; height: 3px; border-radius: 3px; background: var(--silver-2); overflow: hidden; }
.pasos__linea i { position: absolute; inset: 0; background: var(--blue-grad); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.pasos.is-visible .pasos__linea i { transform: scaleX(1); }
.paso { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.paso:hover { transform: translateY(-6px); }
.paso__cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.paso__icono { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-grad); color: #fff; box-shadow: var(--shadow-blue); }
.paso__icono svg { width: 26px; height: 26px; }
.paso__num { font-family: var(--display); font-size: 44px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(37, 99, 235, .35); }
.paso h3 { font-size: 19px; margin-bottom: 8px; }
.paso p { color: var(--muted); font-size: 14.5px; }
.promesa { margin-top: 50px; border-radius: 26px; padding: 30px 36px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.promesa h3 { font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; }
.promesa p { color: var(--muted); margin-top: 6px; }

/* ---------- Zaragoza (SEO local) ---------- */
.zona { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.zona__foto { margin: 0; position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.zona__foto img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.zona__foto figcaption { position: absolute; left: 18px; bottom: 18px; padding: 9px 16px; border-radius: 50px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; color: var(--ink); }
.zona__texto > p { color: var(--muted); }
.zona__texto > p + p { margin-top: 12px; }
.zona__sub { font-size: 15px; font-weight: 600; margin: 26px 0 12px; color: var(--ink); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 7px 13px; border-radius: 50px; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 27, 51, .04); }
.zona__enlaces { display: grid; gap: 10px; margin-top: 30px; }
.zona__enlaces a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; font-weight: 600; color: var(--ink); transition: transform .3s var(--ease), border-color .3s, color .3s; }
.zona__enlaces a:hover { transform: translateX(6px); border-color: rgba(37, 99, 235, .4); color: var(--blue-2); }
.zona__enlaces svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* ---------- Preguntas ---------- */
.faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.faq__img { position: relative; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.faq__img img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center 20%; }
.faq__img div { position: absolute; left: 18px; right: 18px; bottom: 18px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 20px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq__img b { display: block; font-family: var(--display); font-size: 19px; color: var(--ink); }
.faq__img small { color: var(--muted); font-size: 13px; }
.faq__lista { display: grid; gap: 14px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; box-shadow: var(--shadow); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: rgba(37, 99, 235, .4); background: linear-gradient(180deg, #fff, #f4f8ff); }
.faq summary { list-style: none; cursor: pointer; padding: 21px 0; display: flex; justify-content: space-between; gap: 18px; align-items: center; font-family: var(--display); font-size: 17.5px; font-weight: 600; color: var(--ink); }
.faq details[open] summary { color: var(--blue-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font-size: 22px; font-weight: 400; transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue-grad); color: #fff; }
.faq__resp { overflow: hidden; transition: height .35s var(--ease); }
.faq__resp p { padding: 0 6px 22px 0; color: var(--muted); font-size: 15px; }

/* ---------- Llamada final + contacto ---------- */
.cta { position: relative; overflow: hidden; border-radius: 36px; background: var(--ink); color: #fff; padding: 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; box-shadow: 0 40px 80px -40px rgba(11, 27, 51, .7); }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; left: -180px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .55), transparent 70%); }
.cta::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(148, 163, 184, .35), transparent 70%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(32px, 4.2vw, 54px); text-transform: uppercase; line-height: 1.05; }
.cta h2 .azul { background: linear-gradient(135deg, #93c5fd, #60a5fa); -webkit-background-clip: text; background-clip: text; }
.cta > div > p { margin-top: 18px; font-size: 16.5px; color: #c7d2e3; max-width: 460px; }
.cta .botones { margin-top: 28px; }
.cta .btn--borde { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.cta .btn--borde:hover { border-color: #fff; color: #fff; }
.cta__datos { display: grid; gap: 10px; margin-top: 30px; }
.cta__datos a { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; text-decoration: none; font-size: 15.5px; color: #e2e8f0; }
.cta__datos svg { width: 20px; height: 20px; color: #60a5fa; }
.form { background: #fff; color: var(--ink); border-radius: 28px; padding: 30px; display: grid; gap: 14px; align-content: start; }
.form h3 { font-size: 22px; }
.form > p { color: var(--muted); font-size: 13.5px; margin-top: -6px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.form input, .form textarea, .form select {
  font: 400 15.5px var(--font); padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: #f7f9fc; color: var(--ink); width: 100%; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.form__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; justify-content: space-between; }

/* ---------- Pie ---------- */
.footer { margin-top: 110px; padding: 70px 0 30px; background: #fff; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__logo { display: inline-block; text-decoration: none; }
.footer__grid > div > p { margin-top: 18px; max-width: 320px; }
.redes { display: flex; gap: 10px; margin-top: 22px; }
.redes a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); transition: .25s; }
.redes a:hover { background: var(--blue-grad); color: #fff; transform: translateY(-3px); }
.redes svg { width: 20px; height: 20px; }
.footer h3 { font-size: 16px; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--blue); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* ---------- Widgets flotantes ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: flex-end; gap: 12px; }
.wa__burbuja { background: #fff; color: var(--ink); border-radius: 18px 18px 4px 18px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 14px; max-width: 230px; opacity: 0; transform: translateY(10px) scale(.95); transform-origin: bottom right; transition: .4s var(--ease); pointer-events: none; position: relative; }
.wa__burbuja b { display: block; font-family: var(--display); font-size: 15px; }
.wa__burbuja button { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.wa.mostrar .wa__burbuja { opacity: 1; transform: none; pointer-events: auto; }
.wa-float { width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .25s var(--ease); flex: none; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.arriba { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); }
.arriba.visible { opacity: 1; visibility: visible; transform: none; }
.arriba svg.anillo { position: absolute; inset: 0; transform: rotate(-90deg); }
.arriba svg.anillo circle { fill: none; stroke-width: 3; }
.arriba svg.flecha { width: 18px; height: 18px; color: var(--blue); }

/* ---------- Animaciones de entrada (con escalonado) ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--retardo, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .forma--cromo, .contador-flotante { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: 84px 16px auto 16px; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 10px 22px 22px; box-shadow: var(--shadow);
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .3s var(--ease); max-height: calc(100vh - 110px); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a:not(.btn), .nav__drop > button { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; width: 100%; justify-content: space-between; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 10px; min-width: 0; display: none; }
  .nav__drop.abierto .nav__menu { display: block; }
  .nav a.btn { margin-top: 16px; border-bottom: 0; justify-content: space-between; min-height: 54px; }
  .carrusel__pista { grid-auto-columns: calc((100% - 22px) / 2); }
  .garabato { display: none; }
}
@media (max-width: 960px) {
  .hero__grid, .sobre, .faq, .cta, .titulo--fila, .zona { grid-template-columns: 1fr; }
  .zona__foto { max-width: 520px; }
  .titulo--fila p { text-align: left; }
  .hero__visual { max-width: 460px; }
  .sobre__foto { max-width: 460px; order: -1; }
  .pasos { grid-template-columns: 1fr 1fr; }
  .pasos__linea { display: none; }
  .projects { grid-template-columns: 1fr; }
  .promesa { grid-template-columns: 1fr; }
  .banda { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .banda div:nth-child(3)::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .section { padding: 84px 0; }
  .hero { padding-top: 124px; }
  .hero__ctas .btn--primario { flex: 1 1 auto; justify-content: space-between; }
  .contador-flotante { padding: 12px 14px; }
  .contador-flotante b { font-size: 26px; }
  .contador-flotante--a { left: -8px; }
  .contador-flotante--b { right: -8px; top: 22px; }
  .marquee__track span { font-size: 15px; }
  .marca__texto small { display: none; }
  .marca__texto b { font-size: 18px; }
  .marca img { height: 26px; }
  .cifras { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cifras div { padding: 14px 10px; }
  .cifras b { font-size: 24px; }
  .mini, .pasos, .form__fila, .footer__grid { grid-template-columns: 1fr; }
  .carrusel__pista { grid-auto-columns: 86%; }
  .banda { padding: 34px 22px; border-radius: 26px; }
  .cta { padding: 30px 22px; border-radius: 28px; }
  .form { padding: 22px; }
  .promesa { padding: 26px; }
  .sobre__foto .forma--cromo { left: -20px; width: 100px; height: 100px; }
  .wa__burbuja { display: none; }
}

/* ==========================================================
   Páginas de servicio locales (/diseno-web-zaragoza/, etc.)
   ========================================================== */
.pag-hero { padding: 150px 0 40px; }
.migas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 13.5px; color: var(--muted); }
.migas li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.migas a { text-decoration: none; color: var(--blue-2); }
.pag-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.pag-hero h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; }
.pag-hero__lead { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 580px; }
.pag-hero__foto { margin: 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.pag-hero__foto img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: top; }
.pag-hero__foto figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 50px; background: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 600; }
.bloque { padding: 60px 0; }
.bloque__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.bloque h2 { font-size: clamp(26px, 3vw, 36px); }
.bloque__intro { color: var(--muted); margin-top: 14px; }
.texto p { color: var(--muted); }
.texto p + p { margin-top: 14px; }
.texto strong { color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14.5px; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat, var(--blue-grad); }
.checks li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.checks li span { color: var(--muted); }
.tarjetas3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tarjeta { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.tarjeta i { font-style: normal; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-light); color: var(--blue); font-family: var(--display); font-weight: 800; margin-bottom: 16px; }
.tarjeta h3 { font-size: 18px; margin-bottom: 8px; }
.tarjeta p { color: var(--muted); font-size: 14.5px; }
.muestra { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--silver); border: 1px solid #fff; border-radius: 30px; padding: 30px; box-shadow: var(--shadow); }
.muestra img { border-radius: 18px; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top; box-shadow: var(--shadow); }
.muestra h2 { font-size: clamp(24px, 2.6vw, 32px); }
.muestra p { color: var(--muted); margin: 12px 0 22px; }
@media (max-width: 960px) {
  .pag-hero__grid, .bloque__grid, .muestra { grid-template-columns: 1fr; }
  .pag-hero__foto { max-width: 560px; }
  .tarjetas3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pag-hero { padding-top: 120px; }
  .checks { grid-template-columns: 1fr; }
  .bloque { padding: 44px 0; }
  .muestra { padding: 20px; }
}

/* Páginas legales */
.legal h1 { font-size: clamp(30px, 3.6vw, 44px); }
.legal__texto { max-width: 780px; margin-top: 34px; padding-bottom: 40px; color: var(--ink); line-height: 1.7; }
.legal__texto h2 { font-size: clamp(20px, 2.2vw, 24px); margin: 38px 0 12px; }
.legal__texto p, .legal__texto ul { margin: 0 0 14px; }
.legal__texto ul { padding-left: 20px; }
.legal__texto li { margin-bottom: 8px; }
.legal__texto a { color: var(--blue-2); }
.legal__texto code { font-size: .92em; background: var(--line); padding: 1px 6px; border-radius: 6px; }
.legal__tabla { overflow-x: auto; margin: 0 0 16px; }
.legal__tabla table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: 14px; overflow: hidden; }
.legal__tabla th, .legal__tabla td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__tabla th { font-weight: 600; background: rgba(37, 99, 235, .06); }
