/* =========================================================
   LumeDigital · Estilos principales
   Paleta: blanco, marfil, beige y tonos cálidos
   ========================================================= */
:root {
  --white: #FFFFFF;
  --ivory: #FBF8F3;
  --sand: #F3ECE1;
  --beige: #E7DACA;
  --taupe: #C2A98A;
  --bronze: #9A7653;
  --bronze-dark: #7C5C3F;
  --espresso: #2A221D;
  --ink: #3B322B;
  --muted: #7A6E64;
  --line: rgba(60, 45, 30, .12);
  --shadow-sm: 0 2px 10px rgba(60, 40, 20, .06);
  --shadow: 0 18px 50px -20px rgba(60, 40, 20, .28);
  --radius: 22px;
  --radius-sm: 14px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--bar-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--espresso); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -.015em; }
h2 em { font-style: italic; font-weight: 500; color: var(--bronze-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--espresso); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--espresso); color: var(--ivory); box-shadow: 0 10px 24px -12px rgba(42, 34, 29, .6); }
.btn-dark:hover { background: var(--bronze-dark); }
.btn-outline { border-color: rgba(42, 34, 29, .25); color: var(--espresso); background: transparent; }
.btn-outline:hover { border-color: var(--espresso); background: var(--white); }
.btn-light { background: var(--ivory); color: var(--espresso); }
.btn-light:hover { background: var(--white); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .4); color: var(--ivory); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Etiquetas de ejemplo ---------- */
.badge-example {
  display: inline-block; font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: #FFF4D6; color: #8A5A00; border: 1px dashed #D9A53A; vertical-align: middle;
}
.badge-block { margin-bottom: 12px; }
.preview-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: 40px;
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 44px 0 16px;
  background: var(--espresso); color: var(--beige); font-size: .8rem; text-align: center;
}
.preview-bar button { position: absolute; right: 10px; background: none; border: 0; color: var(--beige); font-size: 1.3rem; cursor: pointer; line-height: 1; }
body.has-bar { --bar-h: 40px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: var(--bar-h); left: 0; right: 0; z-index: 100; height: var(--header-h);
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.scrolled { background: rgba(251, 248, 243, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--espresso); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F6E7CF 0%, var(--taupe) 45%, var(--bronze-dark) 100%);
  box-shadow: 0 0 0 4px rgba(194, 169, 138, .2);
}
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .93rem; font-weight: 500; }
.main-nav a:not(.btn) { position: relative; color: var(--ink); padding: 6px 0; }
.main-nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--bronze); transition: right .35s var(--ease); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { right: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--espresso); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + var(--bar-h) + 60px) 0 100px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(231, 218, 202, .9) 0%, rgba(243, 236, 225, .4) 45%, transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-title { font-size: clamp(2.7rem, 6.2vw, 5.2rem); line-height: 1.02; margin-bottom: .4em; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-family: var(--serif); font-size: 2.2rem; color: var(--espresso); line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.hero-stats .badge-example { align-self: flex-start; margin-top: 4px; }

/* Animaciones de carga del Inicio */
.hero-anim { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.loaded .hero-anim { opacity: 1; transform: none; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform 1.1s var(--ease), opacity .8s var(--ease); transition-delay: var(--d, 0ms); }
.loaded .hero-title .w > span { transform: none; opacity: 1; }
.btn-arrow span { transition: transform .4s var(--ease); }
.btn-arrow:hover span { transform: translateX(4px); }

/* ---------- Composición de dispositivos ---------- */
.hero-visual { position: relative; }
.devices { position: relative; aspect-ratio: 1 / .92; container-type: inline-size; }
.devices-arch {
  position: absolute; left: 14%; right: 4%; top: 0; bottom: 10%;
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(170deg, var(--beige) 0%, var(--sand) 55%, rgba(243, 236, 225, .3) 100%);
  opacity: 0; transform: scale(.94); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease);
}
.loaded .devices-arch { opacity: 1; transform: none; }
.devices-ground {
  position: absolute; left: 4%; right: 2%; bottom: -1%; height: 8%;
  background: radial-gradient(closest-side, rgba(60, 40, 20, .22), transparent);
  filter: blur(4px);
}
.device { position: absolute; z-index: 1; }
.tablet { z-index: 2; }
.phone { z-index: 3; }
.dv { opacity: 0; transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0ms); }
.laptop.dv { transform: translateY(5cqw) scale(.96); }
.tablet.dv { transform: translate(-5cqw, 5cqw); }
.phone.dv { transform: translate(5cqw, 6cqw); }
.loaded .dv { opacity: 1; transform: none; }
.device-float { animation: float 7s ease-in-out infinite; animation-delay: 1.8s; }
.phone .device-float { animation-duration: 6s; animation-delay: 2.4s; }

/* Pantalla común */
.screen { position: relative; overflow: hidden; background: var(--ivory); container-type: inline-size; height: 100%; }
.screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 32%, transparent 45%);
}
.screen .screenshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 2; }
.screen.has-shot .mock { visibility: hidden; }

/* Ordenador */
.laptop { left: 5%; width: 84%; top: 13%; }
.laptop-lid {
  aspect-ratio: 16 / 10.4; padding: 1.25cqw 1.25cqw 1.6cqw; border-radius: 2.2cqw 2.2cqw .7cqw .7cqw;
  background: linear-gradient(160deg, #3A312B, #1B1714 60%);
  box-shadow: 0 0 0 .25cqw #4A3F37 inset, 0 4cqw 7cqw -3cqw rgba(50, 32, 18, .5);
}
.laptop-lid .screen { border-radius: .5cqw; }
.laptop-base {
  position: relative; height: 2.1cqw; margin: 0 -6.5%; border-radius: .3cqw .3cqw 3cqw 3cqw;
  background: linear-gradient(180deg, #EFE8DE 0%, #D9CEC0 55%, #B9AC9C 100%);
  box-shadow: 0 2.4cqw 3.4cqw -1.8cqw rgba(50, 32, 18, .45);
}
.laptop-base::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 15%; height: 45%; transform: translateX(-50%);
  border-radius: 0 0 1cqw 1cqw; background: linear-gradient(180deg, #C9BCAB, #DDD3C6);
}

/* Tablet */
.tablet { left: 0; width: 31%; bottom: 3%; }
.tablet-body {
  aspect-ratio: 3 / 4.1; padding: 1.3cqw; border-radius: 3cqw;
  background: linear-gradient(150deg, #3A312B, #1B1714 65%);
  box-shadow: 0 0 0 .22cqw #4A3F37 inset, 0 4cqw 6cqw -2.5cqw rgba(50, 32, 18, .55);
}
.tablet-body .screen { border-radius: 1.6cqw; }

/* Móvil */
.phone { right: 1%; width: 19%; bottom: 1%; }
.phone-body {
  aspect-ratio: 9 / 18.6; padding: .85cqw; border-radius: 3.6cqw;
  background: linear-gradient(150deg, #3A312B, #1B1714 65%);
  box-shadow: 0 0 0 .2cqw #5A4D43 inset, 0 4cqw 6cqw -2.5cqw rgba(50, 32, 18, .55);
}
.phone-body .screen { border-radius: 2.8cqw; }
.island { position: absolute; z-index: 4; top: 3.5cqw; left: 50%; width: 30cqw; height: 8cqw; transform: translateX(-50%); background: #14110F; border-radius: 99px; }

/* Diseños conceptuales dentro de las pantallas */
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--espresso); font-family: var(--sans); line-height: 1.25; }
.mock span { display: block; }
.mock .m-btn { display: inline-block; background: var(--espresso); color: var(--ivory); border-radius: 99px; font-weight: 600; white-space: nowrap; }
.mock .m-btn.ghost { background: transparent; color: var(--espresso); box-shadow: inset 0 0 0 1px rgba(42, 34, 29, .35); }
.mock .m-logo { font-family: var(--serif); font-weight: 600; }
.mock .m-title { font-family: var(--serif); font-weight: 600; line-height: 1.02; }
.mock img.mock-img { width: 100%; height: 100%; object-fit: cover; background: var(--beige); }

/* Restaurante (ordenador) */
.mock-rest { font-size: 1.55cqw; background: linear-gradient(180deg, #FBF8F3, #F5EEE4); }
.mock-rest .m-nav { display: flex; align-items: center; gap: 2.4em; padding: 1.6em 3.4em; }
.mock-rest .m-logo { font-size: 1.55em; }
.mock-rest .m-logo i { color: var(--bronze); font-style: italic; }
.mock-rest .m-links { display: flex; gap: 2em; margin-left: auto; font-size: .78em; color: var(--muted); }
.mock-rest .m-nav .m-btn { font-size: .72em; padding: .8em 1.6em; }
.mock-rest .m-hero { flex: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 3em; padding: .6em 3.4em 3.2em; align-items: stretch; }
.mock-rest .m-copy { align-self: center; }
.mock-rest .m-eyebrow { font-size: .62em; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); font-weight: 700; margin-bottom: 1em; }
.mock-rest .m-title { font-size: 3.3em; margin-bottom: .35em; }
.mock-rest .m-text { font-size: .8em; color: var(--muted); max-width: 26em; margin-bottom: 1.6em; line-height: 1.5; }
.mock-rest .m-actions { display: flex; gap: .8em; }
.mock-rest .m-actions .m-btn { font-size: .74em; padding: .95em 1.8em; }
.mock-rest .m-media { position: relative; border-radius: 1.4em 7em 1.4em 1.4em; overflow: hidden; }
.mock-rest .m-chip {
  position: absolute; left: 1.2em; bottom: 1.2em; display: flex; align-items: center; gap: .6em;
  background: rgba(255, 255, 255, .92); padding: .7em 1.1em; border-radius: 99px; font-size: .7em; font-weight: 700;
}
.mock-rest .m-chip b { width: .7em; height: .7em; border-radius: 50%; background: #6BAA75; }

/* Estética (tablet) */
.mock-spa { font-size: 4.2cqw; background: var(--ivory); }
.mock-spa .m-cover { position: relative; height: 50%; flex: none; }
.mock-spa .m-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 34, 29, .25), rgba(42, 34, 29, .05) 40%, rgba(42, 34, 29, .55)); }
.mock-spa .m-cover .m-logo { position: absolute; z-index: 1; top: 1.1em; left: 1.3em; color: #fff; font-size: 1.15em; }
.mock-spa .m-cover .m-title { position: absolute; z-index: 1; left: 1.1em; right: 1.1em; bottom: .9em; color: #fff; font-size: 2.2em; }
.mock-spa .m-body { padding: 1.2em 1.3em; display: flex; flex-direction: column; gap: .15em; flex: 1; }
.mock-spa .m-h { font-family: var(--serif); font-weight: 600; font-size: 1.35em; margin-bottom: .3em; }
.mock-spa .m-row { display: flex !important; justify-content: space-between; font-size: .78em; padding: .65em 0; border-bottom: 1px solid var(--line); }
.mock-spa .m-row em { font-style: normal; color: var(--bronze); font-weight: 600; }
.mock-spa .m-body .m-btn { margin-top: auto; text-align: center; padding: .85em; font-size: .8em; background: var(--bronze-dark); }

/* Tienda (móvil) */
.mock-shop { font-size: 6.6cqw; background: #FFFDF9; }
.mock-shop .m-scroll { padding: 0 1.1em 4em; animation: shopScroll 14s ease-in-out infinite alternate; animation-delay: 3s; }
@keyframes shopScroll { 0%, 15% { transform: translateY(0); } 85%, 100% { transform: translateY(-30%); } }
.mock-shop .m-status { display: flex !important; justify-content: space-between; align-items: center; font-size: .62em; font-weight: 700; padding: 1.2em .4em .6em; }
.mock-shop .m-sig { width: 2.4em; height: .8em; border-radius: 3px; background: linear-gradient(90deg, var(--espresso) 70%, transparent 70%); opacity: .8; }
.mock-shop .m-nav { display: flex !important; align-items: center; justify-content: space-between; padding: .6em 0 .8em; }
.mock-shop .m-logo { font-family: var(--sans); font-weight: 700; letter-spacing: .18em; font-size: .72em; }
.mock-shop .m-burger { width: 1.1em; height: .7em; border-top: 2px solid var(--espresso); border-bottom: 2px solid var(--espresso); }
.mock-shop .m-bag { width: .95em; height: 1em; border: 2px solid var(--espresso); border-radius: 2px 2px 4px 4px; }
.mock-shop .m-cover { position: relative; height: 9em; border-radius: 1em; overflow: hidden; margin-bottom: 1em; }
.mock-shop .m-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(42, 34, 29, .6)); }
.mock-shop .m-cover .m-title { position: absolute; z-index: 1; left: .7em; bottom: .6em; color: #fff; font-size: 1.45em; }
.mock-shop .m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8em .6em; }
.mock-shop .m-ph {
  aspect-ratio: 3 / 4; border-radius: .7em; margin-bottom: .45em;
  background-color: var(--beige); background-image: var(--shop-img); background-size: 340% auto;
}
.mock-shop .p1 { background-position: 12% 40%; }
.mock-shop .p2 { background-position: 45% 55%; background-color: #E2D3C0; }
.mock-shop .p3 { background-position: 78% 35%; background-color: #D9C8B2; }
.mock-shop .p4 { background-position: 95% 60%; }
.mock-shop .m-name { font-size: .62em; font-weight: 600; }
.mock-shop .m-price { font-size: .62em; color: var(--bronze); font-weight: 700; }
.mock-shop .m-cart {
  position: absolute; left: .9em; right: .9em; bottom: 1em; z-index: 1; text-align: center;
  background: var(--espresso); color: var(--ivory); border-radius: 99px; padding: .8em; font-size: .66em; font-weight: 700;
  box-shadow: 0 .6em 1.4em -.6em rgba(42, 34, 29, .6);
}

.devices-caption { margin: 18px 0 0; text-align: center; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.devices-caption .badge-example { margin-left: 6px; }
.caption-link { margin-left: 10px; color: var(--espresso); font-weight: 700; border-bottom: 1px solid var(--taupe); padding-bottom: 1px; white-space: nowrap; transition: color .3s, border-color .3s; }
.caption-link:hover { color: var(--bronze-dark); border-color: var(--bronze-dark); }

/* Franja de sectores (desplazamiento continuo) */
.sectors { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.sectors-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.sectors:hover .sectors-track { animation-play-state: paused; }
.sectors ul { display: flex; list-style: none; margin: 0; padding: 0; }
.sectors li { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-style: italic; color: var(--espresso); white-space: nowrap; }
.sectors li::after { content: '✦'; font-style: normal; font-size: .7em; color: var(--taupe); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Servicios: más solicitadas */
.svc-featured { margin: 0 auto 64px; }
.svc-featured-label, .svc-all-label { text-align: center; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin: 0 0 18px; }
.svc-featured-row { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--espresso); border-radius: var(--radius); padding: 8px; gap: 4px; box-shadow: var(--shadow); }
.feat-item {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left;
  padding: 22px 20px; border: 0; border-radius: 16px; background: transparent; color: var(--beige); cursor: pointer;
  transition: background .5s var(--ease);
}
.feat-item:hover, .feat-item:focus-visible { background: rgba(255, 255, 255, .07); }
.feat-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(194, 169, 138, .16); color: var(--taupe); transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease); }
.feat-icon svg { width: 22px; height: 22px; }
.feat-item:hover .feat-icon { background: var(--taupe); color: var(--espresso); transform: rotate(-6deg); }
.feat-text strong { display: block; font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--ivory); line-height: 1.15; margin-bottom: 4px; }
.feat-text small { font-size: .82rem; color: var(--taupe); }
.feat-arrow { position: absolute; top: 24px; right: 20px; color: var(--taupe); opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .4s var(--ease); }
.feat-item:hover .feat-arrow { opacity: 1; transform: none; }
.feat-item + .feat-item::before { content: ''; position: absolute; left: -2px; top: 22%; bottom: 22%; width: 1px; background: rgba(255, 255, 255, .08); }
.svc-all-label { margin-bottom: 16px; }

.floating-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow); font-size: .85rem;
  animation: float 6s ease-in-out infinite;
}
.floating-card strong { display: block; color: var(--espresso); }
.floating-card small { color: var(--muted); }
.card-b { right: -10px; top: 2%; animation-delay: -3s; z-index: 5; }
.card-b svg { width: 22px; height: 22px; fill: var(--bronze); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section-sand { background: var(--sand); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lead { margin-inline: auto; }

/* Servicios: pestañas por categoría */
.svc-tabs {
  display: flex; justify-content: center; gap: 6px; padding: 6px; margin: 0 auto 18px; width: max-content; max-width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.svc-tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink); white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.svc-tab:hover { background: var(--sand); }
.svc-tab.active { background: var(--espresso); color: var(--ivory); }
.svc-tab-num { font-family: var(--serif); font-size: 1rem; color: var(--taupe); font-weight: 600; }
.svc-tab-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font-size: .72rem; background: var(--sand); color: var(--bronze-dark); transition: background .4s, color .4s;
}
.svc-tab.active .svc-tab-count { background: rgba(255, 255, 255, .12); color: var(--beige); }
.svc-cat-desc { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 40px; font-size: 1rem; min-height: 1.6em; }

/* Servicios: tarjetas */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.service-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px 28px; transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.service-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--taupe), var(--bronze), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.service-card::after {
  content: ''; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 218, 202, .7), transparent 70%);
  opacity: 0; transition: opacity .6s var(--ease); pointer-events: none;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }
.service-num { position: absolute; top: 24px; right: 26px; font-family: var(--serif); font-size: 1.1rem; color: var(--beige); font-weight: 600; transition: color .4s; }
.service-card:hover .service-num { color: var(--taupe); }
.service-icon {
  position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px;
  background: linear-gradient(145deg, var(--ivory), var(--sand)); color: var(--bronze-dark);
  box-shadow: inset 0 0 0 1px rgba(154, 118, 83, .18), 0 8px 20px -12px rgba(124, 92, 63, .5);
  transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease);
}
.service-card:hover .service-icon { background: var(--espresso); color: var(--beige); transform: rotate(-6deg) scale(1.05); }
.service-icon svg { width: 26px; height: 26px; }
.service-icon.lg { width: 72px; height: 72px; margin: 0; flex: none; }
.service-icon.lg svg { width: 32px; height: 32px; }
.service-card h3 { position: relative; font-size: 1.55rem; }
.service-card p { position: relative; color: var(--muted); font-size: .94rem; margin: 0 0 24px; flex: 1; }
.service-more {
  position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 0 4px; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--espresso);
}
.service-more::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--taupe); transform-origin: right; transition: transform .5s var(--ease); }
.service-more span { transition: transform .4s var(--ease); }
.service-more:hover span, .service-card:hover .service-more span { transform: translateX(5px); }
.service-more:hover::after { transform: scaleX(.4); }
.service-card .badge-example { position: absolute; top: 60px; right: 22px; }

/* Entrada escalonada al cambiar de categoría */
.services-grid.in .service-card { animation: svcIn .8s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes svcIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Ventana de detalle */
body.modal-open { overflow: hidden; }
.svc-modal {
  width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 28px;
  background: var(--ivory); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(42, 34, 29, .55); overflow: auto;
}
.svc-modal[open] { animation: modalIn .5s var(--ease); }
.svc-modal.closing { animation: modalOut .22s ease-in forwards; }
.svc-modal::backdrop { background: rgba(42, 34, 29, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.svc-modal[open]::backdrop { animation: fadeIn .4s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
.svc-modal-inner { position: relative; padding: 48px 48px 40px; }
.svc-close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--espresso); transition: transform .4s var(--ease), background .3s;
}
.svc-close:hover { transform: rotate(90deg); background: var(--sand); }
.svc-modal-head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; padding-right: 40px; }
.svc-modal-head .eyebrow { margin-bottom: .4rem; }
.svc-modal-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.svc-intro { font-size: 1.08rem; color: var(--ink); margin-bottom: 30px; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc-cols section { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.svc-cols h3 { font-size: 1.35rem; margin-bottom: 14px; }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: .93rem; }
.svc-list li { display: flex; gap: 10px; align-items: flex-start; }
.svc-check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); color: var(--bronze-dark); display: grid; place-items: center; margin-top: 1px; }
.svc-check svg { width: 13px; height: 13px; stroke-width: 2.4; }
.svc-ideal { margin-top: 20px; padding: 20px 24px; border-radius: 18px; background: var(--sand); border-left: 3px solid var(--taupe); }
.svc-ideal strong { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); margin-bottom: 4px; }
.svc-ideal p { margin: 0; color: var(--espresso); }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Precios */
.pricing-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.pricing-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; max-width: 1080px; margin: 44px auto 0; padding: 0; }
.pricing-trust li { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--espresso); }
.pricing-excluded { max-width: 1080px; margin: 16px auto 0; text-align: center; font-size: .82rem; letter-spacing: .02em; color: var(--muted, #8a7f74); font-style: italic; }
.pricing-excluded::before { content: "· "; color: var(--bronze); }
.pricing-excluded::after { content: " ·"; color: var(--bronze); }
.price-inc { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin: 0 0 14px; }

.addon-card {
  position: relative; max-width: 1080px; margin: 28px auto 0; display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 32px; align-items: center;
  background: var(--white); border: 1px dashed rgba(154, 118, 83, .45); border-radius: var(--radius); padding: 28px 32px;
}
.addon-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.addon-head h3 { font-size: 1.6rem; margin: 4px 0 4px; }
.addon-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.addon-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: .9rem; }
.addon-list li { position: relative; padding-left: 20px; }
.addon-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 5px; border-left: 1.6px solid var(--bronze); border-bottom: 1.6px solid var(--bronze); transform: rotate(-45deg); }
.addon-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.addon-price strong { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--espresso); }
.addon-price span { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.addon-card .badge-example { position: absolute; top: -10px; right: 24px; }

/* Comparativa */
.compare { max-width: 1080px; margin: 40px auto 0; }
.compare-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-box summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 20px 24px; font-weight: 700; color: var(--espresso); transition: background .3s;
}
.compare-box summary::-webkit-details-marker { display: none; }
.compare-box summary:hover { background: var(--ivory); }
.cmp-toggle { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); transition: transform .5s var(--ease), background .3s; }
.cmp-toggle::before, .cmp-toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--espresso); transform: translate(-50%, -50%); }
.cmp-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.compare-box[open] .cmp-toggle { background: var(--sand); }
.compare-box[open] .cmp-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.compare-box[open] .compare-scroll { animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.compare-scroll { overflow-x: auto; border-top: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
.compare-table th, .compare-table td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { padding-top: 22px; padding-bottom: 18px; }
.compare-table thead strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--espresso); }
.compare-table thead small { color: var(--muted); font-size: .8rem; }
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--ink); position: sticky; left: 0; background: var(--white); min-width: 190px; }
.compare-table .is-featured { background: rgba(243, 236, 225, .6); }
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th { background-color: var(--ivory); }
.cmp-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--espresso); color: var(--beige); }
.cmp-yes svg { width: 13px; height: 13px; stroke-width: 2.4; }
.cmp-no { color: #C7BBAE; }
.cmp-text { font-weight: 600; color: var(--espresso); font-size: .85rem; }
.compare-note { margin: 0; padding: 14px 24px 20px; text-align: center; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
/* Tarjetas de precio: Esencial (claro) · Profesional (Más popular, borde bronce) · Premium (oscura y dorada) */
.price-card {
  --gold: #C9A46A; --gold-soft: #E4CB9C;
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: 26px; padding: 38px 30px 32px; border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-level { margin: 0 0 10px; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.price-card h3 { font-size: 2rem; margin: 0 0 .25em; }
.price-tagline { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.35; color: var(--bronze-dark); margin: 0 0 22px; min-height: 2.7em; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.price strong { font-family: var(--serif); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--espresso); letter-spacing: -.01em; }
.price span { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.price-desc { color: var(--muted); font-size: .9rem; margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); min-height: 6.4em; }
.price-inc { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin: 0 0 14px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 11px; font-size: .92rem; flex: 1; align-content: start; }
.price-card li { position: relative; padding-left: 24px; line-height: 1.45; }
.price-card li::before {
  content: ''; position: absolute; left: 1px; top: .5em; width: 10px; height: 6px;
  border-left: 1.6px solid var(--bronze); border-bottom: 1.6px solid var(--bronze); transform: rotate(-45deg);
  background: none !important;
}
/* «Todo lo incluido en el plan …»: se ve como base, no como una función más */
.price-card li.inherit {
  padding: 9px 14px; margin-bottom: 4px; border-radius: 12px; background: var(--sand);
  font-weight: 700; font-size: .84rem; color: var(--bronze-dark);
}
.price-card li.inherit::before { display: none; }
.price-flag {
  position: absolute; top: -13px; left: 30px; background: var(--taupe); color: var(--espresso);
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px;
}
.price-card .badge-example { position: absolute; top: 16px; right: 16px; }

/* Frase destacada bajo el precio */
.price-highlight {
  display: flex; align-items: flex-start; gap: 9px; margin: 0 0 18px; padding: 10px 14px; border-radius: 12px;
  font-size: .84rem; font-weight: 600; line-height: 1.45; color: var(--bronze-dark);
  background: var(--ivory); border: 1px solid rgba(154, 118, 83, .18); min-height: 3.95em;
}
.price-highlight::before { content: '✓'; flex: none; font-weight: 700; color: var(--bronze); }
.price-card.popular .price-highlight { background: var(--sand); border-color: rgba(154, 118, 83, .35); }
.price-card.popular .price-highlight::before { content: '★'; }
.price-card.spotlight .price-highlight {
  background: linear-gradient(120deg, rgba(228, 203, 156, .16), rgba(201, 164, 106, .06));
  border-color: rgba(201, 164, 106, .45); color: var(--gold-soft);
}
.price-card.spotlight .price-highlight::before { content: '↗'; color: var(--gold); }
.price-highlight strong { font-weight: 800; }
.price-card.spotlight .price-highlight strong { color: #F1DDB4; }

/* Microinteracciones: la tarjeta responde al cursor (y al teclado) sin retardos */
.price-card.reveal.visible { transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease); transition-delay: 0s; }
.price-card:hover, .price-card:focus-within { transform: translateY(-8px); box-shadow: 0 34px 70px -38px rgba(60, 40, 20, .5); border-color: rgba(154, 118, 83, .4); }
.price-card .price strong { display: inline-block; transform-origin: left bottom; transition: transform .6s var(--ease); }
.price-card:hover .price strong, .price-card:focus-within .price strong { transform: scale(1.04); }
.price-card li::before { transition: transform .45s var(--ease); }
.price-card:hover li::before { transform: rotate(-45deg) scale(1.15); }
.price-card.spotlight:hover li::before { transform: scale(1.2) rotate(15deg); }
.price-card .price-highlight { transition: border-color .5s var(--ease), background-color .5s var(--ease); }
.price-card:hover .price-highlight { border-color: rgba(154, 118, 83, .5); }
.price-card .btn { transition: transform .45s var(--ease), box-shadow .45s var(--ease), filter .3s; }
.price-card:hover .btn { box-shadow: 0 14px 30px -14px rgba(42, 34, 29, .55); }

/* Profesional · Más popular */
.price-card.popular { border-color: rgba(154, 118, 83, .45); box-shadow: 0 20px 50px -34px rgba(60, 40, 20, .4); }

/* Premium · la que más destaca */
.price-card.spotlight {
  color: var(--beige); border: 1px solid transparent;
  background:
    radial-gradient(120% 60% at 85% 0%, rgba(201, 164, 106, .22), transparent 60%) padding-box,
    linear-gradient(165deg, #2F2620, #1B1612 70%) padding-box,
    linear-gradient(150deg, var(--gold-soft), rgba(201, 164, 106, .15) 40%, var(--gold) 100%) border-box;
  box-shadow: 0 40px 80px -40px rgba(40, 26, 14, .75), 0 0 0 1px rgba(201, 164, 106, .08);
}
.price-card.spotlight:hover, .price-card.spotlight:focus-within { box-shadow: 0 50px 90px -40px rgba(40, 26, 14, .85), 0 0 44px -10px rgba(201, 164, 106, .3); border-color: transparent; }
/* Reflejo dorado que cruza la tarjeta Premium al pasar el cursor */
.price-card.spotlight::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(228, 203, 156, .09) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0; transition: background-position 1.3s var(--ease);
}
.price-card.spotlight:hover::after { background-position: -40% 0; }
.price-card.spotlight .price-flag {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold)); color: #1B1612;
  box-shadow: 0 6px 18px -6px rgba(201, 164, 106, .7);
}
.price-card.spotlight .price-level { color: var(--gold); }
.price-card.spotlight h3, .price-card.spotlight .price strong { color: var(--ivory); }
.price-card.spotlight .price-tagline { color: var(--gold-soft); }
.price-card.spotlight .price span, .price-card.spotlight .price-desc { color: rgba(231, 218, 202, .72); }
.price-card.spotlight .price-desc { border-color: rgba(255, 255, 255, .1); }
.price-card.spotlight .price-inc { color: var(--gold); }
.price-card.spotlight li { color: var(--sand); }
.price-card.spotlight li::before {
  content: '✦'; width: auto; height: auto; border: 0; transform: none; top: .05em; left: 0;
  font-size: .8rem; color: var(--gold);
}
.price-card.spotlight li.inherit { background: rgba(255, 255, 255, .07); color: var(--gold-soft); }
.btn-gold {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold)); color: #1B1612; border: 0;
  box-shadow: 0 12px 28px -12px rgba(201, 164, 106, .8);
}
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 16px 34px -12px rgba(201, 164, 106, .95); }

/* Portafolio */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  border: 1px solid var(--line); background: transparent; padding: 9px 18px; border-radius: 999px;
  font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .3s;
}
.filter:hover { border-color: var(--espresso); }
.filter.active { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.project-card {
  background: var(--white); border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* Escenario con ordenador y móvil */
.project-stage {
  position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; container-type: inline-size;
  background: radial-gradient(circle at 72% 18%, #FFFFFF 0%, var(--sand) 62%, var(--beige) 100%);
}
.project-stage::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: 3%; height: 7%; background: radial-gradient(closest-side, rgba(60, 40, 20, .2), transparent); }
.pd-laptop { position: absolute; z-index: 1; left: 7%; top: 13%; width: 72%; transition: transform .9s var(--ease); }
.pd-lid { background: linear-gradient(160deg, #3A312B, #1B1714 60%); padding: .9cqw .9cqw 1.2cqw; border-radius: 1.6cqw 1.6cqw .5cqw .5cqw; box-shadow: 0 3cqw 5cqw -2.5cqw rgba(50, 32, 18, .55); }
.pd-bar { display: flex; align-items: center; gap: .55cqw; height: 2.4cqw; padding: 0 1.1cqw; background: #F1EBE2; border-radius: .5cqw .5cqw 0 0; }
.pd-bar i { width: .8cqw; height: .8cqw; border-radius: 50%; background: #D3C4B2; }
.pd-laptop .pd-screen { position: relative; aspect-ratio: 16 / 9.2; overflow: hidden; background: var(--ivory); container-type: inline-size; border-radius: 0 0 .4cqw .4cqw; }
.pd-base { height: 1.6cqw; margin: 0 -6%; border-radius: .2cqw .2cqw 2cqw 2cqw; background: linear-gradient(180deg, #EFE8DE, #D3C8BA 60%, #B3A696); box-shadow: 0 1.6cqw 2.4cqw -1.4cqw rgba(50, 32, 18, .45); }
.pd-phone {
  position: absolute; z-index: 2; right: 7%; bottom: 8%; width: 19%; padding: .7cqw; border-radius: 3cqw;
  background: linear-gradient(150deg, #3A312B, #1B1714 65%); box-shadow: 0 3cqw 5cqw -2cqw rgba(50, 32, 18, .6);
  transition: transform .9s var(--ease);
}
.pd-phone .pd-screen { position: relative; aspect-ratio: 9 / 19; overflow: hidden; background: var(--ivory); border-radius: 2.3cqw; container-type: inline-size; }
.pd-screen::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .14), transparent 40%); }
.project-card:hover .pd-laptop { transform: translateY(-1.4cqw); }
.project-card:hover .pd-phone { transform: translateY(-2.6cqw) rotate(-2deg); }

/* Captura real: al pasar el ratón se recorre de arriba abajo */
.pd-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: object-position 5s ease-in-out; }
.project-card:hover .pd-shot { object-position: 50% 100%; }

/* Diseño conceptual dentro de las pantallas */
.pm { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--espresso); line-height: 1.15; }
.pm span { display: block; }
.pm img { width: 100%; height: 100%; object-fit: cover; background: var(--beige); transition: transform 1.4s var(--ease); }
.project-card:hover .pm img { transform: scale(1.05); }
.pm .pm-logo { font-family: var(--serif); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm .pm-btn { display: inline-block; align-self: flex-start; background: var(--espresso); color: var(--ivory); border-radius: 99px; font-weight: 700; white-space: nowrap; }
.pm-desk { font-size: 2.1cqw; }
.pm-desk .pm-nav { display: flex; align-items: center; gap: 1.6em; padding: .9em 1.6em; }
.pm-desk .pm-logo { font-size: 1.2em; max-width: 40%; }
.pm-desk .pm-links { display: flex !important; gap: .9em; margin-left: auto; }
.pm-desk .pm-links i { width: 2.4em; height: .35em; border-radius: 99px; background: #D9CEC1; }
.pm-desk .pm-nav .pm-btn { font-size: .6em; padding: .7em 1.4em; }
.pm-desk .pm-hero { position: relative; flex: 1; margin: 0 1.6em; border-radius: .9em; overflow: hidden; }
.pm-desk .pm-hero img { position: absolute; inset: 0; }
.pm-desk .pm-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 22, 17, .72), rgba(30, 22, 17, .15) 65%); }
.pm-desk .pm-copy { position: absolute; z-index: 1; left: 1.8em; bottom: 1.6em; right: 40%; color: #fff; }
.pm-desk .pm-kicker { font-size: .55em; letter-spacing: .2em; text-transform: uppercase; color: var(--beige); margin-bottom: .6em; font-weight: 700; }
.pm-desk .pm-title { font-family: var(--serif); font-size: 2.3em; font-weight: 600; line-height: 1; margin-bottom: .45em; }
.pm-desk .pm-btn.light { background: var(--ivory); color: var(--espresso); font-size: .62em; padding: .8em 1.6em; }
.pm-desk .pm-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; padding: .9em 1.6em 1em; }
.pm-desk .pm-strip i { height: 1.7em; border-radius: .4em; background: #EFE7DC; }
.pm-mob { font-size: 7.5cqw; padding-bottom: 1em; }
.pm-mob .pm-island { position: absolute; z-index: 2; top: .5em; left: 50%; width: 32%; height: .9em; transform: translateX(-50%); background: #14110F; border-radius: 99px; }
.pm-mob .pm-cover { position: relative; height: 54%; flex: none; overflow: hidden; }
.pm-mob .pm-logo { font-size: 1.25em; margin: .7em .8em .5em; }
.pm-mob .pm-line { height: .35em; margin: 0 .9em .4em; border-radius: 99px; background: #E3D9CC; }
.pm-mob .pm-line.short { width: 55%; }
.pm-mob .pm-btn { margin: auto .9em 0; align-self: stretch; text-align: center; font-size: .7em; padding: .8em; }

.project-cat {
  position: absolute; z-index: 4; left: 18px; top: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--espresso);
}
.project-stage .badge-example { position: absolute; z-index: 4; top: 20px; right: 18px; }
.project-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.8rem; margin-bottom: .3em; }
.project-body p { color: var(--muted); font-size: .94rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
.tags span { font-size: .75rem; padding: 4px 11px; border-radius: 999px; background: var(--sand); color: var(--bronze-dark); font-weight: 600; }
.project-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.link-more { font-weight: 700; font-size: .88rem; color: var(--espresso); border-bottom: 1px solid var(--taupe); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.link-more:hover { color: var(--bronze-dark); border-color: var(--bronze-dark); }
.demo-soon { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.demo-soon i { width: 7px; height: 7px; border-radius: 50%; background: var(--taupe); animation: pulse 2.4s ease-in-out infinite; }
/* ---------- Nuestros proyectos (webs reales con demo en directo) ---------- */
.section-work { background: var(--white); border-top: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
.work-card {
  position: relative; display: flex; flex-direction: column; border-radius: 28px; background: var(--ivory);
  border: 1px solid var(--line); overflow: hidden; transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .7s var(--ease);
}
.work-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px -34px rgba(60, 40, 20, .45); border-color: rgba(154, 118, 83, .35); }
.work-stage {
  position: relative; display: block; aspect-ratio: 16 / 10.5; overflow: hidden; container-type: inline-size;
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 255, 255, .95) 0%, transparent 46%),
    linear-gradient(150deg, var(--sand) 0%, var(--beige) 100%);
}
.work-stage::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: 3%; height: 7%; background: radial-gradient(closest-side, rgba(60, 40, 20, .22), transparent); }
.work-stage .pd-laptop { top: 15%; }
.work-card .pd-shot { object-position: 50% 0; transform: scale(1.001); transition: transform 1.6s var(--ease); }
.work-card:hover .pd-laptop { transform: translateY(-1.4cqw); }
.work-card:hover .pd-phone { transform: translateY(-2.6cqw) rotate(-2deg); }
.work-card:hover .pd-laptop .pd-shot { transform: scale(1.04); }
.work-num {
  position: absolute; z-index: 4; left: 4.2cqw; top: 3.6cqw; font-family: var(--serif); font-style: italic;
  font-size: max(1.4rem, 4.4cqw); line-height: 1; color: var(--bronze); opacity: .75;
}
.work-live {
  position: absolute; z-index: 4; right: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--espresso);
  transition: background .4s, color .4s;
}
.work-live i { width: 7px; height: 7px; border-radius: 50%; background: #4E9B6B; box-shadow: 0 0 0 0 rgba(78, 155, 107, .5); animation: livePulse 2.2s ease-in-out infinite; }
.work-card:hover .work-live { background: var(--espresso); color: var(--ivory); }
.work-live.is-real i { background: var(--bronze); animation-name: livePulseGold; }
@keyframes livePulseGold { 0%, 100% { box-shadow: 0 0 0 0 rgba(154, 118, 83, .5); } 50% { box-shadow: 0 0 0 6px rgba(154, 118, 83, 0); } }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(78, 155, 107, .5); } 50% { box-shadow: 0 0 0 6px rgba(78, 155, 107, 0); } }
.work-body { display: flex; flex-direction: column; flex: 1; padding: 30px 34px 34px; }
.work-cat { margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); }
.work-body h3 { font-size: 2rem; margin: 0 0 .35em; }
.work-desc { color: var(--muted); font-size: .95rem; margin: 0 0 20px; }
.work-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 28px; }
.work-tags li { font-size: .76rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(154, 118, 83, .3); color: var(--bronze-dark); background: var(--white); }
.work-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.work-note:empty { display: none; }
.work-filters { margin-bottom: 48px; }
.work-filters .filter { display: inline-flex; align-items: center; gap: 8px; }
.filter-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; background: var(--sand); color: var(--bronze-dark); transition: background .3s, color .3s;
}
.filter.active .filter-count { background: rgba(255, 255, 255, .16); color: var(--ivory); }
#showcaseGrid > * { animation: workIn .7s var(--ease) both; }
#showcaseGrid > :nth-child(2) { animation-delay: .08s; }
#showcaseGrid > :nth-child(3) { animation-delay: .16s; }
#showcaseGrid > :nth-child(4) { animation-delay: .24s; }
@keyframes workIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.work-empty {
  grid-column: 1 / -1; max-width: 640px; margin: 0 auto; text-align: center; padding: 56px 40px;
  border: 1px dashed rgba(154, 118, 83, .45); border-radius: 28px; background: linear-gradient(160deg, var(--ivory), var(--sand));
}
.work-empty-mark { display: block; font-size: 1.4rem; color: var(--bronze); margin-bottom: 14px; }
.work-empty h3 { font-size: 2rem; margin: 0 0 .4em; }
.work-empty p:not(.work-cat) { color: var(--muted); margin: 0 auto 28px; max-width: 44ch; }
/* Móvil: accesos por sector bajo el proyecto de ejemplo */
.work-more {
  grid-column: 1 / -1; text-align: center; padding: 40px 24px 28px; border-radius: 22px;
  border: 1px solid var(--line); background: linear-gradient(160deg, var(--ivory), var(--sand));
}
.work-more h3 { font-size: 1.9rem; margin: 0 0 .3em; }
.work-more h3 em { font-style: italic; font-weight: 500; color: var(--bronze-dark); }
.work-more > p:not(.work-cat) { color: var(--muted); font-size: .94rem; margin: 0 auto 24px; max-width: 34ch; }
.work-more-list { display: grid; gap: 10px; text-align: left; }
.work-more-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 18px; cursor: pointer;
  border: 1px solid rgba(154, 118, 83, .25); border-radius: 16px; background: var(--white); color: var(--espresso);
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.work-more-btn span { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.work-more-btn small { margin-left: auto; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--bronze); }
.work-more-btn i { font-style: normal; color: var(--bronze-dark); transition: transform .35s var(--ease); }
.work-more-btn:hover, .work-more-btn:focus-visible { border-color: var(--bronze); box-shadow: var(--shadow-sm); }
.work-more-btn:hover i { transform: translateX(4px); }
.work-note { margin: 44px auto 0; max-width: 640px; text-align: center; font-size: .82rem; font-style: italic; color: var(--muted); }
@media (min-width: 981px) {
  .work-grid > .work-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 18px); }
}
@media (max-width: 980px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .work-grid { gap: 28px; }
  .work-card { border-radius: 22px; }
  .work-body { padding: 24px 22px 26px; }
  .work-body h3 { font-size: 1.7rem; }
  .work-live { right: 12px; top: 12px; font-size: .68rem; padding: 5px 10px; }
  .work-actions .btn { flex: 1 1 100%; justify-content: center; }
  .work-actions .link-more { margin: 0 auto; }
  /* Pestañas en una sola fila deslizable con el dedo */
  .work-filters {
    position: relative; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px;
    margin: 0 -16px 32px; padding: 2px 16px 6px; scrollbar-width: none;
  }
  .work-filters::-webkit-scrollbar { display: none; }
  .work-filters .filter { flex: none; scroll-snap-align: start; }
  .work-empty { padding: 40px 22px; }
  .work-empty h3 { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .price-card:hover, .price-card:focus-within, .price-card:hover .price strong, .price-card:hover li::before { transform: none; }
  .price-card.spotlight::after { display: none; }
  .work-live i, #showcaseGrid > * { animation: none; }
}

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(194, 169, 138, .6); } 50% { box-shadow: 0 0 0 6px rgba(194, 169, 138, 0); } }

/* Imagen de respaldo si una foto no carga */
.img-fallback {
  background: linear-gradient(135deg, var(--beige), var(--sand) 50%, var(--taupe)) !important;
  min-height: 100%; width: 100%;
}

/* Sobre nosotros */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.about-visual { position: relative; }
.about-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius) var(--radius) var(--radius) 160px; box-shadow: var(--shadow); }
.about-quote {
  position: absolute; right: -24px; bottom: 40px; max-width: 260px; background: var(--espresso); color: var(--beige);
  padding: 22px 24px 18px; border-radius: 18px; box-shadow: var(--shadow);
}
.about-quote span { font-family: var(--serif); font-size: 3rem; line-height: .5; color: var(--taupe); display: block; margin-top: 10px; }
.about-quote p { font-family: var(--serif); font-size: 1.2rem; font-style: italic; margin: 0; color: var(--ivory); }
.subhead { font-size: 1.6rem; margin-top: 30px; }
.reasons { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.reasons li { display: flex; gap: 14px; }
.check-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--white); color: var(--bronze); display: grid; place-items: center; }
.check-icon svg { width: 18px; height: 18px; }
.reasons strong { color: var(--espresso); display: block; margin-bottom: 2px; }
.reasons p { font-size: .9rem; color: var(--muted); margin: 0; }
.process-head { margin-top: 110px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 32px 26px; background: var(--ivory); border-radius: var(--radius); border: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-size: 2.6rem; color: var(--taupe); line-height: 1; display: block; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* CTA */
.cta-band { background: var(--espresso); color: var(--beige); padding: 96px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 169, 138, .28), transparent 65%);
}
.cta-inner { position: relative; text-align: center; }
.cta-inner h2 { color: var(--ivory); }
.cta-inner p { color: var(--taupe); font-size: 1.1rem; }
.cta-inner .hero-actions { justify-content: center; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.whatsapp-card {
  display: flex; align-items: center; gap: 16px; margin: 30px 0 24px; padding: 18px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.whatsapp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.wa-icon { width: 46px; height: 46px; border-radius: 50%; background: #25D366; display: grid; place-items: center; flex: none; }
.wa-icon svg { width: 24px; height: 24px; fill: #fff; }
.whatsapp-card strong { display: block; color: var(--espresso); }
.whatsapp-card small { color: var(--muted); }
.whatsapp-card .arrow { margin-left: auto; font-size: 1.3rem; color: var(--bronze); }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; flex-wrap: wrap; font-size: .95rem; }
.contact-list span { min-width: 90px; color: var(--muted); }
.contact-list a, .contact-list b { color: var(--espresso); font-weight: 600; }
.socials { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--espresso); transition: all .3s;
}
.socials a:hover { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.socials svg { width: 19px; height: 19px; }

.contact-form {
  background: var(--white); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-size: .84rem; font-weight: 600; color: var(--espresso); }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory);
  font-weight: 400; font-size: 1rem; transition: border-color .3s, background .3s, box-shadow .3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--taupe); background: var(--white); box-shadow: 0 0 0 4px rgba(194, 169, 138, .18);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .84rem; }
.check input { margin-top: 4px; accent-color: var(--bronze); width: 16px; height: 16px; flex: none; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: #3D7A4A; }
.form-status.error { color: #A4472E; }
.form-status:empty { display: none; }
.form-status.ok, .form-status.error { padding: 12px 16px; border-radius: 12px; }
.form-status.ok { background: #EEF5EF; }
.form-status.error { background: #FBEDE8; }

/* Formulario por pasos */
.contact-form { gap: 22px; grid-template-columns: minmax(0, 1fr); }
.contact-grid > *, .form-row > *, .contact-form label, .contact-form select, .contact-form input { min-width: 0; }
.form-head { text-align: left; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-head h3 { font-size: 1.9rem; margin: 0 0 2px; }
.form-head p { margin: 0; font-size: .85rem; color: var(--muted); }
.form-step { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.form-step legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0; margin-bottom: 14px; font-weight: 700; color: var(--espresso); font-size: .98rem; }
.form-step legend small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.step-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--espresso); color: var(--ivory); font-size: .78rem; font-family: var(--sans); }
.optional { font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex !important; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--ivory); font-size: .86rem; font-weight: 500; color: var(--ink); transition: all .3s var(--ease);
}
.pill:hover span { border-color: var(--taupe); }
.pill input:checked + span { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.pill input:checked + span::before { content: '✓'; font-size: .78em; }
.pill input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: -6px; }
.form-hint.error { color: #A4472E; font-weight: 600; }
.pref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pref > span { font-size: .84rem; color: var(--muted); margin-right: 4px; }
.pref .pill span { padding: 7px 13px; font-size: .82rem; }
.btn-lg { padding: 17px 28px; font-size: 1rem; }
.form-alt { margin: -6px 0 0; text-align: center; font-size: .86rem; color: var(--muted); }
.form-alt a { color: var(--espresso); font-weight: 700; border-bottom: 1px solid var(--taupe); }
.trust-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--espresso); font-size: .95rem; }
.trust-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--sand); position: relative; flex: none; }
.trust-icon::after { content: ''; position: absolute; left: 7px; top: 6px; width: 7px; height: 4px; border-left: 1.6px solid var(--bronze-dark); border-bottom: 1.6px solid var(--bronze-dark); transform: rotate(-45deg); }

/* Barra fija de contacto en móviles */
.mobile-cta { display: none; }

/* Footer */
.site-footer { background: var(--sand); padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer-tag { color: var(--muted); margin: 10px 0 0; font-size: .92rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: .92rem; }
.site-footer nav a:hover { color: var(--bronze); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--espresso); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .4s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal:where(.visible) { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-featured-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .svc-featured-row::-webkit-scrollbar { display: none; }
  .feat-item { scroll-snap-align: start; }
  .addon-card { grid-template-columns: 1fr 1fr; }
  .addon-price { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; text-align: left; }
  .addon-price span { margin: 0 auto 0 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 22px; }
}
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 540px; }
  .pricing-grid { gap: 30px; }
  .price-tagline, .price-desc, .price-highlight { min-height: 0; }
  .pricing-trust { flex-direction: column; align-items: center; gap: 10px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 22px; }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--ivory); font-family: var(--serif); font-size: 1.9rem;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .main-nav .nav-cta { font-family: var(--sans); font-size: 1rem; margin-top: 10px; }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-bottom: 80px; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .section { padding: 84px 0; }
  .process-head { margin-top: 84px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .preview-bar { font-size: .72rem; line-height: 1.3; }
  .services-grid, .pricing-grid, .portfolio-grid, .steps, .reasons, .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 18px 28px; }
  .hero-stats strong { font-size: 1.8rem; }
  .card-a { left: 10px; bottom: 20px; }
  .card-b { right: 10px; top: 20px; }
  .floating-card { padding: 10px 14px; font-size: .78rem; }
  .about-quote { right: 10px; bottom: 16px; max-width: 220px; padding: 18px; }
  .contact-form { padding: 24px 20px; }
  .price-desc { min-height: 0; }
  .section-head { margin-bottom: 40px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .svc-tabs { width: auto; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; border-radius: 0; border-inline: 0; scroll-snap-type: x mandatory; }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tab { scroll-snap-align: start; padding: 10px 16px; }
  .svc-cat-desc { margin-bottom: 28px; }
  .service-card { padding: 28px 24px 24px; }
  .svc-modal { width: 100%; max-height: calc(100vh - 24px); border-radius: 24px 24px 0 0; margin-bottom: 0; }
  .svc-modal-inner { padding: 30px 20px 26px; }
  .svc-modal-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .service-icon.lg { width: 60px; height: 60px; }
  .svc-cols { grid-template-columns: 1fr; }
  .svc-actions .btn { flex: 1 1 100%; }

  /* Ajustes móviles de las mejoras premium */
  .sectors { padding: 16px 0; }
  .sectors li { gap: 26px; padding-right: 26px; }
  .svc-featured { margin-bottom: 48px; margin-inline: -16px; }
  .svc-featured-row { border-radius: 0; padding: 6px 10px; grid-auto-columns: 74%; }
  .feat-item { padding: 18px 16px; }
  .addon-card { grid-template-columns: 1fr; padding: 24px 22px; gap: 18px; }
  .addon-list { grid-template-columns: 1fr; }
  .compare-box summary { padding: 18px; }
  .compare-table { font-size: .82rem; min-width: 560px; }
  .compare-table th, .compare-table td { padding: 12px 12px; }
  .compare-table tbody th { min-width: 150px; box-shadow: 1px 0 0 var(--line); }
  .project-card { border-radius: 22px; }
  .project-body { padding: 22px 20px 24px; }
  .project-body h3 { font-size: 1.6rem; }
  .project-actions .btn { flex: 1 1 100%; }
  .form-head h3 { font-size: 1.6rem; }
  .pref > span { width: 100%; }
  .chips { gap: 6px; }
  .chips .pill span { padding: 8px 12px; font-size: .8rem; }
  .caption-link { display: inline-block; margin: 6px 0 0; }
}

/* Barra de contacto fija (solo tablets y móviles) */
@media (max-width: 920px) {
  .wa-float { display: none; }
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; z-index: 95; left: 12px; right: 12px; bottom: 12px;
    padding: 8px; border-radius: 999px; background: rgba(251, 248, 243, .92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 40px -12px rgba(42, 34, 29, .45);
    border: 1px solid var(--line);
    transform: translateY(140%); transition: transform .6s var(--ease);
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; padding: 13px 18px; }
  .mobile-cta-wa { width: 48px; height: 48px; border-radius: 50%; background: #25D366; display: grid; place-items: center; flex: none; }
  .mobile-cta-wa svg { width: 25px; height: 25px; fill: #fff; }
  body.cta-visible .site-footer { padding-bottom: 96px; }
}
