/* =========================================================
   Villanea Construcciones — Plan Profesional
   Estilo oscuro con acentos azul / rojo / dorado (logo y portada de Facebook)
   ---------------------------------------------------------
   1. Tokens          8. Cinta            15. Contacto
   2. Base            9. Secciones        16. FAQ
   3. Botones        10. Compromisos      17. Pie de página
   4. Encabezado     11. Obras / redes    18. Flotantes
   5. Menú móvil     12. Servicios        19. Animaciones
   6. Hero           13. Banda / proceso  20. Movimiento reducido
   7. Órbita         14. Solicitud
   ========================================================= */

/* 1. TOKENS ------------------------------------------------ */
:root {
  --navy-950: #06122b;
  --navy-900: #0b1b3f;
  --navy-800: #10295e;
  --navy-700: #16377f;
  --blue: #0a46b8;
  --blue-500: #2a68d8;
  --blue-300: #7aa6ee;
  --blue-100: #e6eefc;
  --red: #d52b32;
  --red-700: #a81f26;
  --red-100: #fde9ea;
  --gold: #ffb62e;
  --gold-600: #f2a900;

  --ink: #0b1b3f;
  --text: #41506b;
  --muted: #66748c;
  --line: #e3e8f1;
  --bg: #f3f5fa;

  --wa: #25d366;
  --wa-ink: #06301b;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 40px);
  --max: 1180px;
  --header-h: 76px;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(11, 27, 63, .06);
  --shadow-md: 0 18px 40px -20px rgba(11, 27, 63, .35);
  --shadow-lg: 0 32px 70px -28px rgba(6, 18, 43, .6);
  --ease: cubic-bezier(.22, .8, .24, 1);

  --g-red: linear-gradient(150deg, #e23a3f 0%, #a81f26 100%);
  --g-blue: linear-gradient(150deg, #2e6fe0 0%, #0a46b8 100%);
  --g-navy: linear-gradient(150deg, #1d3f8f 0%, #0b1b3f 100%);
  --g-gold: linear-gradient(150deg, #ffc247 0%, #e8890b 100%);

  --dia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 3 53 28 28 53 3 28z' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
}

/* 2. BASE -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip; /* clip no crea contenedor de scroll: el encabezado fijo y el sticky siguen funcionando */
}

html.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}

::selection { background: var(--gold); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100; padding: .8rem 1.2rem;
  background: var(--gold); color: var(--navy-900); border-radius: 12px; font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem; margin: 0;
  font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; flex: none; }

/* 3. BOTONES ----------------------------------------------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: var(--h); padding: 0 1.5rem; border: 2px solid transparent; border-radius: 999px;
  font: 800 .95rem/1 var(--font); letter-spacing: .005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .icon { width: 1.35em; height: 1.35em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { --h: 42px; padding: 0 1.15rem; font-size: .88rem; }
.btn--lg { --h: 58px; padding: 0 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .55), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.btn--wa:hover { background: #34e277; box-shadow: 0 20px 36px -12px rgba(37, 211, 102, .6), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* Botón de dos líneas (título + detalle), como en las constructoras grandes */
.btn--cta { --h: 60px; padding: 0 1.6rem 0 1.25rem; gap: .85em; text-align: left; }
.btn--ghost.btn--cta { padding: 0 1.6rem; }
.btn--cta .icon { width: 1.9em; height: 1.9em; }
.btn--ghost.btn--cta .icon { width: 1.2em; height: 1.2em; }
.btn-t { display: grid; gap: 3px; line-height: 1.15; }
.btn-t strong { font-size: 1rem; font-weight: 800; }
.btn-t small { font-size: .74rem; font-weight: 600; opacity: .78; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); text-decoration: none;
  transition: transform .3s var(--ease), background .25s, color .25s;
}
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn--fb:hover { background: #1877f2; }
.icon-btn--ig:hover { background: linear-gradient(135deg, #7a2fa8, #d3257a 60%, #f0782a); }
.icon-btn--wa:hover { background: var(--wa); color: var(--wa-ink); }

/* 4. ENCABEZADO -------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.is-scrolled {
  background: rgba(8, 20, 48, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07), 0 18px 36px -28px rgba(0, 0, 0, .7);
}
.header-inner { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; flex: none; }
.brand img { width: auto; height: 50px; }
.brand-text { display: grid; line-height: 1; gap: 5px; }
.brand-text strong { font-size: 1.22rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.brand-text small { font-size: .56rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--blue-300); }

.nav { display: none; margin-left: auto; gap: .15rem; }
.nav a { padding: .6rem .95rem; border-radius: 999px; color: rgba(255, 255, 255, .9); font-weight: 600; font-size: .9rem; white-space: nowrap; text-decoration: none; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.is-active { background: rgba(255, 255, 255, .14); color: #fff; }

.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.header-actions .btn--wa span { display: none; }
.header-actions .btn--wa { padding: 0; width: 42px; }

.menu-toggle {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); transition: background .25s, color .25s;
}
.menu-toggle .icon { width: 22px; height: 22px; grid-area: 1 / 1; transition: transform .35s var(--ease), opacity .25s; }
.menu-toggle .icon--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.menu-toggle[aria-expanded="true"] { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.menu-toggle[aria-expanded="true"] .icon--menu { opacity: 0; transform: rotate(90deg) scale(.6); }
.menu-toggle[aria-expanded="true"] .icon--close { opacity: 1; transform: none; }

@media (max-width: 479px) { .brand img { height: 44px; } .brand-text strong { font-size: 1.05rem; } .brand-text small { font-size: .5rem; letter-spacing: .24em; } }
@media (min-width: 480px) { .header-actions .btn--wa { width: auto; padding: 0 1.15rem; } .header-actions .btn--wa span { display: inline; } }
@media (min-width: 1100px) { .nav { display: flex; } .header-actions { margin-left: 0; } .menu-toggle { display: none; } }

/* 5. MENÚ MÓVIL -------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--menu-top, 90px) + 18px) var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto; color: #fff;
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(213, 43, 50, .35), transparent 70%),
    radial-gradient(80% 50% at 0% 100%, rgba(42, 104, 216, .35), transparent 70%),
    var(--navy-900);
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mobile-nav { display: grid; }
.mobile-nav a {
  padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: clamp(1.5rem, 6.5vw, 2rem); font-weight: 800; letter-spacing: -.02em;
  color: #fff; text-decoration: none; opacity: 0; transform: translateX(-16px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s;
}
.mobile-menu.is-open .mobile-nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-nav a:nth-child(5) { transition-delay: .2s; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-menu-foot { display: grid; gap: 16px; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-pill {
  flex: 1; min-width: 140px; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 1.1rem;
  border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 700; text-decoration: none;
}
.social-pill:hover { background: rgba(255, 255, 255, .16); }
.mobile-menu-note { display: flex; align-items: center; gap: .5em; color: rgba(255, 255, 255, .7); font-size: .92rem; justify-content: center; }
@media (min-width: 1100px) { .mobile-menu { display: none; } }

/* 6. HERO -------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: calc(var(--header-h) + clamp(44px, 6vw, 96px)) 0 clamp(120px, 13vw, 190px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(48% 62% at 102% 18%, rgba(213, 43, 50, .62), transparent 62%),
    radial-gradient(46% 60% at -4% 46%, rgba(42, 104, 216, .5), transparent 62%),
    radial-gradient(40% 40% at 55% 100%, rgba(255, 182, 46, .16), transparent 70%),
    linear-gradient(165deg, #0c2050 0%, #0b1b3f 52%, #08122d 100%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: var(--dia); background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); }

.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero .eyebrow { color: var(--gold); }

.hero h1 { margin: 22px 0 22px; color: #fff; font-size: clamp(2.7rem, 1.4rem + 4.7vw, 4.7rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { max-width: 33em; font-size: clamp(1.02rem, .96rem + .35vw, 1.18rem); font-weight: 500; line-height: 1.7; color: rgba(255, 255, 255, .86); }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

.trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: .6em; font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.trust .icon { width: 1.15em; height: 1.15em; color: var(--gold); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(54px, 7.5vw, 110px); }

@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
@media (max-width: 560px) { .hero-cta .btn { flex: 1 1 100%; } }

/* 7. ÓRBITA DE SERVICIOS ----------------------------------- */
.orbit { position: relative; width: min(100%, 540px); aspect-ratio: 1; margin-inline: auto; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.o-ring { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: .3; stroke-dasharray: 1 1.6; transform-origin: 50% 50%; }
.o-ring--1 { animation: spin 90s linear infinite; }
.o-ring--2 { animation: spin 60s linear infinite reverse; }

.core {
  position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 clamp(8px, 2vw, 16px) rgba(255, 255, 255, .07), 0 0 0 clamp(16px, 4vw, 32px) rgba(255, 255, 255, .04), 0 0 90px 10px rgba(42, 104, 216, .5);
}
.core img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 9px; text-decoration: none; color: #fff; animation: floaty 6s ease-in-out infinite; animation-delay: var(--nd, 0s); }
.node-ic {
  display: grid; place-items: center; width: clamp(56px, 15.5%, 88px); width: clamp(56px, 15.5vw, 88px); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); transition: transform .35s var(--ease);
}
.node:hover .node-ic { transform: scale(1.1); }
.node-ic .icon { width: 42%; height: 42%; }
.node-label {
  padding: .35rem .8rem; border-radius: 999px; background: rgba(8, 20, 48, .78); border: 1px solid rgba(255, 255, 255, .22);
  font-size: .72rem; font-weight: 700; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.n1 { left: 50%; top: 11%; }
.n2 { left: 88%; top: 38%; --nd: -1s; }
.n3 { left: 74%; top: 82%; --nd: -2s; }
.n4 { left: 26%; top: 82%; --nd: -3s; }
.n5 { left: 12%; top: 38%; --nd: -4s; }
.g-red { background: var(--g-red); }
.g-blue { background: var(--g-blue); }
.g-navy { background: var(--g-navy); }
.g-gold { background: var(--g-gold); }
.g-wa { background: linear-gradient(150deg, #34e277, #128c4a); }
.g-ig { background: linear-gradient(135deg, #7a2fa8, #d3257a 60%, #f0782a); }
.g-fb { background: linear-gradient(150deg, #1877f2, #0b4aae); }
@media (max-width: 560px) {
  .node-ic { width: 54px; border-width: 2px; }
  .node-label { font-size: .62rem; padding: .28rem .6rem; }
  .n2 { left: 85%; } .n5 { left: 15%; }
}

/* 8. CINTA ------------------------------------------------- */
.marquee-wrap { position: relative; z-index: 2; overflow: hidden; padding-block: 34px; margin-top: -40px; }
.marquee { width: 104%; margin-left: -2%; background: var(--gold); color: var(--navy-900); transform: rotate(-1.4deg); box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .55); }
.marquee-track { display: flex; width: max-content; align-items: center; padding-block: 1.05rem; white-space: nowrap; font-size: clamp(.85rem, .8rem + .3vw, 1rem); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; animation: marquee 50s linear infinite; }
.marquee-track > * { margin-right: 1.9rem; }
.marquee-track i { width: .7em; height: .7em; background: var(--red); transform: rotate(45deg); flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* 9. SECCIONES --------------------------------------------- */
.sec { position: relative; padding-block: clamp(76px, 9vw, 130px); overflow: hidden; overflow: clip; }
.sec--light { background: var(--bg); }
.sec--dark { background: var(--navy-900); color: rgba(255, 255, 255, .82); }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark .eyebrow { color: var(--gold); }
.sec-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 100% 0%, rgba(42, 104, 216, .22), transparent 70%), radial-gradient(45% 55% at 0% 100%, rgba(213, 43, 50, .2), transparent 70%); }
.sec-bg::after { content: ""; position: absolute; inset: 0; background-image: var(--dia); background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.sec > .container { position: relative; }

.section-head { display: grid; justify-items: start; gap: 16px; max-width: 760px; margin: 0 0 clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2rem, 1.25rem + 2.9vw, 3.3rem); }
.section-sub { max-width: 40em; font-size: 1.06rem; }
.section-head .btn { margin-top: 8px; }
.inline-link { color: var(--gold); font-weight: 700; }

/* 10. COMPROMISOS ------------------------------------------ */
.cards4 { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 620px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.pcard { padding: 30px 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pcard-ic { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 16px; color: #fff; box-shadow: 0 14px 24px -12px rgba(11, 27, 63, .6); }
.pcard-ic .icon { width: 30px; height: 30px; }
.pcard h3 { margin-bottom: 10px; font-size: 1.15rem; }
.pcard p { font-size: .95rem; line-height: 1.65; }

/* 11. OBRAS / REDES ---------------------------------------- */
.social-layout { display: grid; gap: clamp(22px, 3vw, 36px); align-items: start; }
@media (min-width: 980px) { .social-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.social-cards { display: grid; gap: 14px; }
.social-card {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; overflow: hidden; border-radius: var(--r-md);
  color: #fff; text-decoration: none; box-shadow: var(--shadow-md); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.social-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; top: -70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); pointer-events: none; }
.social-card--wa { background: linear-gradient(135deg, #0d7f3f, #075f2e); }
.social-card--fb { background: linear-gradient(135deg, #1668d8, #0b4aae); }
.social-card--ig { background: linear-gradient(135deg, #7a2fa8 0%, #d3257a 58%, #e8692b 100%); }
.social-card-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .2); }
.social-card-icon .icon { width: 28px; height: 28px; }
.social-card-text { display: grid; min-width: 0; line-height: 1.3; }
.social-card-text small { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.social-card-text strong { font-size: 1.08rem; font-weight: 800; overflow-wrap: anywhere; }
.social-card-text em { font-style: normal; font-size: .86rem; opacity: .92; }
.social-card-go { margin-left: auto; width: 1.3em; height: 1.3em; opacity: .85; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.4rem; border: 1.5px dashed rgba(255, 255, 255, .35);
  border-radius: 999px; background: transparent; color: #fff; font: 700 .95rem var(--font); cursor: pointer; transition: background .25s, border-color .25s;
}
.share-btn:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.feed { overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.feed-tabs { display: flex; gap: 6px; padding: 10px; background: #eef2fa; border-bottom: 1px solid var(--line); }
.feed-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .75rem 1rem; border: 0; border-radius: 14px;
  background: transparent; color: var(--muted); font: 700 .95rem var(--font); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s;
}
.feed-tab:hover { color: var(--ink); }
.feed-tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.feed-tab[data-tab="ig"].is-active .icon { color: #d3257a; }
.feed-panel { position: relative; height: 640px; background: #f0f4fb; text-align: center; }
.feed-panel iframe { position: relative; z-index: 1; display: block; width: 100%; max-width: 100%; height: 100%; margin-inline: auto; border: 0; background: transparent; }
.feed-skeleton { position: absolute; inset: 0; display: grid; align-content: start; gap: 16px; padding: 22px; transition: opacity .4s; }
.feed-skeleton i { display: block; border-radius: 16px; background: linear-gradient(90deg, #e4ecf8 25%, #f4f8fe 50%, #e4ecf8 75%); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }
.feed-skeleton i:nth-child(1) { height: 62px; }
.feed-skeleton i:nth-child(2) { height: 230px; }
.feed-skeleton i:nth-child(3) { height: 150px; }
.feed-panel.is-loaded .feed-skeleton { opacity: 0; pointer-events: none; }
.feed-note { margin: 0; padding: .85rem 1.2rem; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .78rem; text-align: center; }
.feed-fallback { position: absolute; inset: auto 16px 16px; z-index: 2; padding: .8rem 1rem; border-radius: 14px; background: #fff; box-shadow: var(--shadow-md); font-size: .9rem; color: var(--text); }
.feed-fallback a { color: var(--red); font-weight: 700; }
@media (max-width: 560px) { .feed-panel { height: 580px; } }
@media (max-width: 480px) { .social-card-go { display: none; } .social-card-text strong { font-size: 1rem; } }

/* 12. SERVICIOS (bento) ------------------------------------ */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .bento { grid-template-columns: repeat(2, 1fr); } .svc--big { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .svc--big { grid-column: 1 / span 2; grid-row: 1 / span 2; min-height: 0; }
  .svc--wide { grid-column: span 2; min-height: 230px; }
}

.svc {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 28px; overflow: hidden;
  border-radius: 26px; color: #fff; text-decoration: none; box-shadow: var(--shadow-md); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--dia); background-size: 56px 56px; opacity: .9; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-ic { position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease), stroke .3s; }
.svc:hover .svc-ic { transform: scale(1.12) rotate(-5deg); stroke: #fff; }
.svc-body { display: grid; gap: 8px; }
.svc h3 { color: #fff; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); line-height: 1.12; }
.svc p { font-size: .93rem; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.svc-link { display: inline-flex; align-items: center; gap: .5em; margin-top: 6px; font-size: .85rem; font-weight: 800; letter-spacing: .02em; }
.svc-link .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.svc:hover .svc-link .icon { transform: translateX(6px); }

.svc.g-blue { background: linear-gradient(155deg, #2e6fe0 0%, #153f94 55%, #0b1b3f 100%); }
.svc.g-red { background: linear-gradient(155deg, #e23a3f 0%, #8d1f3c 55%, #1c1650 100%); }
.svc.g-gold { background: linear-gradient(160deg, #ffbf3d 0%, #e5702a 48%, #a81f26 100%); }
.svc.g-navy { background: linear-gradient(155deg, #26509f 0%, #11295d 60%, #0b1b3f 100%); }
.svc.g-red2 { background: linear-gradient(120deg, #1c1650 0%, #8d1f3c 55%, #e23a3f 100%); }
.svc.g-blue2 { background: linear-gradient(120deg, #0b1b3f 0%, #153f94 55%, #2e6fe0 100%); }

.svc--big { background: linear-gradient(170deg, #0f2a63 0%, #0b1b3f 70%); min-height: 480px; }
.svc--big::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 18, 43, 0) 38%, rgba(6, 18, 43, .94) 100%); }
.svc-tag { position: absolute; top: 22px; left: 22px; padding: .45rem .9rem; border-radius: 999px; background: var(--gold); color: var(--navy-900); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.svc--big .svc-ic { display: none; }
.svc--big .svc-body { max-width: 30em; }
.svc--big h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }

/* 13. BANDA + PROCESO -------------------------------------- */
.band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(70px, 8vw, 110px); color: #fff; background: linear-gradient(115deg, #0e2a63 0%, #3a2060 55%, #8d1f3c 100%); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--dia); background-size: 56px 56px; opacity: 1; }
.band .eyebrow { color: var(--gold); }
.band h2 { margin: 18px 0 14px; color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); }
.band .section-sub { color: rgba(255, 255, 255, .85); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.pills li { display: inline-flex; align-items: center; gap: .6em; padding: .6rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-size: .85rem; font-weight: 700; }
.pills .icon { width: 1.1em; height: 1.1em; color: var(--gold); }

.build { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .build { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; } .build-card { top: 104px; } }
.build-card {
  position: sticky; top: 84px; z-index: 2; overflow: hidden; border-radius: var(--r-lg); background: radial-gradient(70% 70% at 40% 30%, rgba(213, 43, 50, .22), transparent 70%), #14224a;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-lg);
}
.build-stage { padding: 10px 14px 0; }
.build-stage .iso { width: 100%; height: auto; }
.build-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 22px; background: rgba(255, 255, 255, .08); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.build-foot b { color: var(--gold); font-weight: 800; }

.js .iso .st { opacity: 0; transition: opacity .7s var(--ease); }
.js .iso .st.on { opacity: 1; }
.js .iso .wall { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.02); transition: transform 1s var(--ease); }
.js .iso .st.on .wall { transform: scaleY(1); }
.iso .flag { transform-box: fill-box; transform-origin: 0 50%; animation: wave 2.4s ease-in-out infinite; }

.pst { display: grid; margin: 0; padding: 0; list-style: none; }
.pstep { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; min-height: 42vh; padding: 20px 0 20px 28px; border-left: 2px solid rgba(255, 255, 255, .16); opacity: .45; transition: opacity .5s var(--ease), border-color .5s; }
.pstep.is-active { opacity: 1; border-color: var(--gold); }
.pstep-n { font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pstep h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.pstep p { max-width: 28em; font-size: 1.02rem; }
.pstep .btn { margin-top: 12px; }
.pstep .btn--cta { --h: 56px; }
@media (max-width: 899px) { .pstep { min-height: 32vh; padding-left: 20px; } .build-card { top: 78px; } .build-stage { padding: 4px 10px 0; } .build-stage .iso { max-height: 240px; } }

.stats {
  display: grid; grid-template-columns: 1fr; gap: 24px; margin: clamp(48px, 6vw, 84px) 0 0; padding: clamp(26px, 3.4vw, 40px); list-style: none;
  border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.stats li { display: grid; gap: 6px; }
.stats strong { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--gold); }
.stats li > span:last-child { font-size: .9rem; color: rgba(255, 255, 255, .78); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } .stats li + li { padding-left: 28px; border-left: 1px dashed rgba(255, 255, 255, .22); } }

/* 14. SOLICITUD + TELÉFONO --------------------------------- */
.order { display: grid; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (min-width: 980px) { .order { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } .order-phone { position: sticky; top: 110px; } }
.order-form { display: grid; gap: 22px; padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; font-size: .92rem; font-weight: 700; color: var(--ink); }
.req { color: var(--red); }
.opt { font-weight: 500; color: var(--muted); }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

input[type="text"], input[type="date"], textarea {
  width: 100%; min-height: 52px; padding: .85rem 1rem; font: inherit; font-weight: 500; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 116px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa8bf; }
input:hover, textarea:hover { border-color: #c5d1e6; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 70, 184, .15); }
.field.is-invalid input { border-color: #d62d5e; box-shadow: 0 0 0 4px rgba(214, 45, 94, .12); }
.field-error { margin: 0; color: #b4123f; font-size: .86rem; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; padding: .62rem 1.05rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; font-weight: 600; color: var(--ink); transition: all .25s var(--ease); }
.chip:hover span { border-color: var(--blue-300); background: var(--blue-100); }
.chip input:checked + span { transform: translateY(-1px); border-color: transparent; background: var(--g-blue); color: #fff; box-shadow: 0 10px 20px -8px rgba(10, 70, 184, .7); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.field.is-invalid .chip span { border-color: #e8a3b8; }

.form-note { display: flex; align-items: flex-start; gap: .55em; margin: -4px 0 0; font-size: .84rem; color: var(--muted); }
.form-note .icon { width: 1.25em; height: 1.25em; margin-top: 2px; color: var(--blue); }

.order-phone { justify-self: center; width: 100%; max-width: 350px; }
.phone { position: relative; padding: 12px; border-radius: 46px; background: #071a37; box-shadow: var(--shadow-lg), inset 0 0 0 2px #173562; transform: rotate(2deg); transition: transform .5s var(--ease); }
.phone:hover { transform: rotate(0); }
.phone-notch { position: absolute; top: 20px; left: 50%; z-index: 3; width: 92px; height: 22px; border-radius: 14px; background: #071a37; transform: translateX(-50%); }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 48px 14px 12px; border-radius: 34px 34px 0 0; background: #075e54; color: #fff; }
.wa-back { font-size: 1.7rem; line-height: 1; opacity: .9; }
.wa-avatar { display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: transparent; }
.wa-avatar img { width: 100%; height: 100%; object-fit: contain; }
.wa-who { display: grid; line-height: 1.2; font-size: .92rem; }
.wa-who small { font-size: .74rem; opacity: .85; }
.wa-chat { display: flex; flex-direction: column; gap: 10px; min-height: 360px; padding: 14px 12px 18px; background-color: #efe7dd; background-image: radial-gradient(rgba(0, 0, 0, .035) 1.2px, transparent 1.4px); background-size: 16px 16px; }
.wa-day { align-self: center; margin: 0; padding: .25rem .7rem; border-radius: 8px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); color: #6b7b8a; font-size: .72rem; font-weight: 600; }
.wa-bubble { position: relative; align-self: flex-end; max-width: 94%; padding: 9px 12px 22px; border-radius: 12px 0 12px 12px; background: #d9fdd3; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); color: #111b21; font-size: .84rem; font-weight: 500; line-height: 1.45; white-space: pre-wrap; word-break: break-word; animation: popIn .4s var(--ease); }
.wa-bubble::after { content: "ahora ✓✓"; position: absolute; right: 9px; bottom: 4px; font-size: .66rem; color: #667781; }
.wa-compose { display: flex; align-items: center; gap: 10px; padding: 10px 12px 16px; border-radius: 0 0 34px 34px; background: #f0f2f5; }
.wa-compose span { flex: 1; padding: .6rem 1rem; border-radius: 999px; background: #fff; color: #8696a0; font-size: .85rem; }
.wa-compose i { width: 38px; height: 38px; border-radius: 50%; background: #00a884; }
.phone-caption { margin-top: 20px; text-align: center; font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }

/* 15. CONTACTO --------------------------------------------- */
.ccards { display: grid; gap: 14px; }
@media (min-width: 620px) { .ccards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ccards { grid-template-columns: repeat(4, 1fr); } }
.ccard {
  display: flex; align-items: center; gap: 14px; padding: 20px 18px; border-radius: var(--r-md); color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); transition: transform .35s var(--ease), background .3s, border-color .3s;
}
.ccard:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.ccard-ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; color: #fff; }
.ccard-ic .icon { width: 24px; height: 24px; }
.ccard-t { display: grid; min-width: 0; line-height: 1.3; }
.ccard-t small { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.ccard-t strong { font-size: .88rem; font-weight: 700; overflow-wrap: break-word; }

.zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; margin-top: 22px; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-lg); background: linear-gradient(115deg, rgba(213, 43, 50, .3), rgba(42, 104, 216, .28)); border: 1px solid rgba(255, 255, 255, .16); }
.zone-t { display: flex; align-items: center; gap: 18px; max-width: 40em; }
.zone-ic { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .14); color: var(--gold); }
.zone-ic .icon { width: 26px; height: 26px; }
.zone-k { font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.zone h3 { margin: 4px 0 4px; font-size: 1.35rem; }
.zone p:last-child { font-size: .95rem; }

/* 16. FAQ -------------------------------------------------- */
.faq { display: grid; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (min-width: 980px) {
  .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .faq .section-head { position: sticky; top: 110px; margin-bottom: 0; }
}
.faq-list { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; }
.faq details:hover { border-color: #c5d1e6; }
.faq details[open] { border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; list-style: none; cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-100); color: var(--blue); transition: transform .35s var(--ease), background .3s, color .3s; }
.faq-icon .icon { width: 18px; height: 18px; }
.faq details[open] .faq-icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq details p { padding: 0 22px 22px; animation: fadeDown .4s var(--ease); }

/* 17. PIE DE PÁGINA ---------------------------------------- */
.site-footer { padding-top: clamp(52px, 6vw, 84px); background: var(--navy-950); color: rgba(255, 255, 255, .75); }
.footer-grid { display: grid; gap: 38px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; gap: 56px; } }
.footer-brand { display: grid; align-content: start; justify-items: start; gap: 18px; }
.footer-brand p { max-width: 26em; font-size: .95rem; }
.footer-col { display: grid; align-content: start; gap: 12px; }
.footer-col h3 { margin-bottom: 4px; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.footer-col a, .footer-col span { display: inline-flex; align-items: center; gap: .65em; width: fit-content; color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col .icon { width: 1.15em; height: 1.15em; color: var(--blue-300); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 46px; padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); font-size: .86rem; }
.to-top-link { display: inline-flex; align-items: center; gap: .5em; color: var(--gold); font-weight: 700; text-decoration: none; }
.to-top-link .icon { width: 1.1em; height: 1.1em; }

/* 18. FLOTANTES -------------------------------------------- */
.fab-wrap { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fab { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--wa); color: var(--wa-ink); box-shadow: 0 16px 32px -10px rgba(18, 140, 74, .75); transition: transform .35s var(--ease); }
.fab .icon { width: 34px; height: 34px; }
.fab::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--wa); animation: ping 2.8s var(--ease) infinite; }
.fab:hover { transform: scale(1.09) rotate(-6deg); }
.fab-bubble {
  position: relative; max-width: 250px; padding: 14px 40px 14px 16px; border-radius: 18px 18px 4px 18px; background: #fff; box-shadow: var(--shadow-lg);
  font-size: .9rem; line-height: 1.4; color: var(--text); opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right; transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.fab-bubble.is-in { opacity: 1; transform: none; }
.fab-bubble strong { color: var(--ink); }
.fab-bubble-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--blue-100); color: var(--muted); cursor: pointer; }
.fab-bubble-close:hover { background: var(--red-100); color: var(--red); }
.fab-bubble-close .icon { width: 14px; height: 14px; }

.to-top {
  position: fixed; left: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 39; display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(8, 20, 48, .85); color: #fff; box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .25s, color .25s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--navy-900); }

.toast { position: fixed; left: 50%; bottom: 96px; z-index: 70; max-width: min(92vw, 420px); padding: .85rem 1.3rem; border-radius: 999px; background: var(--navy-900); color: #fff; font-weight: 600; font-size: .92rem; text-align: center; box-shadow: var(--shadow-lg); transform: translateX(-50%); animation: toastIn .4s var(--ease); }
.confetti { position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%; pointer-events: none; }

/* 18b. FOTOS: CARRUSEL, MODELOS Y VISOR ---------------------- */
.svc-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc--big:hover .svc-photo { transform: scale(1.05); }
.svc--big::before { opacity: .5; }

.sec--tight { padding-top: clamp(24px, 3vw, 44px); }

/* Carrusel 3D (Obras) */
.cv { position: relative; padding-top: 56px; }
.cv-hint {
  position: absolute; top: 0; left: 50%; z-index: 5; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .55em; padding: .55rem 1.1rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; white-space: nowrap;
}
.cv-hint .icon { width: 1.2em; height: 1.2em; color: var(--gold); }
.cv-pause, .cv-btn {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.cv-pause:hover, .cv-btn:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.cv-pause { position: absolute; top: 0; right: 0; z-index: 5; }
.cv-pause .icon { width: 18px; height: 18px; grid-area: 1 / 1; }
.cv-pause .icon--play { display: none; }
.cv-pause[aria-pressed="true"] .icon--pause { display: none; }
.cv-pause[aria-pressed="true"] .icon--play { display: block; }
.cv-prev .icon { transform: rotate(180deg); }
.cv-stage { position: relative; height: clamp(330px, 44vw, 470px); perspective: 1500px; perspective-origin: 50% 35%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline-offset: 6px; }
.cv-stage.is-drag { cursor: grabbing; }
.cv-stage::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: min(70%, 520px); height: 60px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(213, 43, 50, .55), transparent); filter: blur(10px); pointer-events: none; }
.cv-slide {
  --x: 0px; --z: 0px; --ry: 0deg; --s: 1; --o: 0; --zi: 0;
  position: absolute; left: 50%; top: 0; width: clamp(200px, 25vw, 290px); height: clamp(300px, 40vw, 410px); padding: 0; overflow: hidden; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .2);
  background: #14224a; cursor: pointer; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .8); color: #fff; text-align: left;
  transform: translateX(calc(-50% + var(--x))) translateZ(var(--z)) rotateY(var(--ry)) scale(var(--s)); opacity: var(--o); z-index: var(--zi);
  transition: transform .75s var(--ease), opacity .6s var(--ease); will-change: transform;
}
.cv-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cv-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 18, 43, 0) 55%, rgba(6, 18, 43, .92) 100%); pointer-events: none; }
.cv-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: grid; gap: 2px; line-height: 1.2; }
.cv-cap small { font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.cv-cap strong { font-size: .95rem; font-weight: 800; }
.cv-slide.is-hidden { pointer-events: none; visibility: hidden; }
.cv-foot { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 44px); margin-top: 30px; }
.cv-info { display: grid; gap: 4px; min-width: 0; text-align: center; }
.cv-info strong { font-size: 1.15rem; font-weight: 800; color: #fff; }
.cv-info small { font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.more-label { display: flex; align-items: center; gap: 18px; margin: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 36px); font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.more-label::before, .more-label::after { content: ""; height: 1px; flex: 1; background: rgba(255, 255, 255, .18); }
@media (max-width: 640px) { .cv-hint { font-size: .62rem; padding: .5rem .85rem; } .cv-stage { perspective: 1000px; } }

/* Etiquetas Obra / Diseño 3D */
.tag { display: inline-block; padding: .38rem .8rem; border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.tag--obra { background: var(--gold); color: var(--navy-900); }
.tag--3d { background: rgba(8, 20, 48, .84); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }

/* Modelos */
.mgrid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mgrid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.mcard { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.mcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mcard-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; background: #dfe6f2; cursor: zoom-in; }
.mcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.mcard:hover .mcard-photo img { transform: scale(1.06); }
.mcard-photo .tag { position: absolute; top: 14px; left: 14px; }
.mcard-count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .45em; padding: .38rem .75rem; border-radius: 999px; background: rgba(8, 20, 48, .8); color: #fff; font-size: .78rem; font-weight: 700; }
.mcard-count .icon { width: 1.1em; height: 1.1em; }
.mcard-body { display: grid; align-content: start; gap: 14px; flex: 1; padding: 20px 22px 22px; }
.mcard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mcard h3 { font-size: 1.45rem; }
.mcard-m2 { display: inline-flex; align-items: center; gap: .4em; flex: none; font-size: .95rem; font-weight: 800; color: var(--blue); }
.mcard-m2 .icon { width: 1.1em; height: 1.1em; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; font-size: .86rem; color: var(--text); }
.specs li { display: inline-flex; align-items: center; gap: .45em; }
.specs .icon { width: 1.1em; height: 1.1em; color: var(--blue); }
.mcard-actions { display: flex; gap: 10px; margin-top: 4px; }
.mbtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 800 .85rem var(--font); text-decoration: none; cursor: pointer; transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease); }
.mbtn:hover { border-color: var(--blue); background: var(--blue-100); color: var(--blue); transform: translateY(-1px); }
.mbtn .icon { width: 1.25em; height: 1.25em; }
.mbtn--wa { background: var(--wa); border-color: transparent; color: var(--wa-ink); }
.mbtn--wa:hover { background: #34e277; border-color: transparent; color: var(--wa-ink); }
.mcard--cta { position: relative; isolation: isolate; justify-content: center; border-color: transparent; background: linear-gradient(155deg, #1d3f8f 0%, #0b1b3f 70%); color: #fff; }
.mcard--cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--dia); background-size: 56px 56px; }
.mcard--cta:hover { transform: none; }
.mcard-cta-in { display: grid; justify-items: start; gap: 14px; padding: 34px 28px; }
.mcard-cta-ic { width: 48px; height: 48px; color: var(--gold); }
.mcard--cta h3 { color: #fff; font-size: 1.7rem; }
.mcard--cta p { color: rgba(255, 255, 255, .86); }

.mcard-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35em .6em; margin: -4px 0 0; padding: .7rem .9rem; border-radius: 14px; background: var(--blue-100); }
.mcard-price small { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mcard-price strong { font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; color: var(--blue); }
.mcard-price span { font-size: .78rem; font-weight: 700; color: var(--text); }
.price-note { max-width: 46em; margin-top: 22px; font-size: .84rem; color: var(--muted); }
.lb-price { font-size: 1.05rem; font-weight: 800; color: var(--gold); }
.lb-price[hidden] { display: none; }
/* Visor de fotos */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 14px; }
.lb[hidden] { display: none !important; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(4, 10, 26, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb-panel { position: relative; display: grid; gap: 14px; width: min(1080px, 100%); max-height: 100%; padding: 14px; overflow: hidden auto; border-radius: var(--r-lg); background: #0f2250; border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-lg); }
.lb-panel > * { min-width: 0; }
.lb-stage { position: relative; height: min(60vh, 620px); overflow: hidden; border-radius: 18px; background: #08122d; }
.lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: fadeDown .35s var(--ease); }
.lb-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(8, 20, 48, .72); color: #fff; cursor: pointer; transform: translateY(-50%); transition: background .25s, color .25s; }
.lb-nav:hover { background: var(--gold); color: var(--navy-900); }
.lb-prev { left: 12px; } .lb-prev .icon { transform: rotate(180deg); } .lb-next { right: 12px; }
.lb-close { position: absolute; top: 22px; right: 22px; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(8, 20, 48, .78); color: #fff; cursor: pointer; }
.lb-close:hover { background: var(--red); border-color: var(--red); }
.lb-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; color: #fff; }
.lb-text { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.lb-text h3 { margin-top: 6px; color: #fff; font-size: 1.5rem; }
.lb-text p { font-size: .92rem; color: rgba(255, 255, 255, .84); }
.lb-text small { font-weight: 700; color: var(--gold); }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.lb-thumbs:empty { display: none; }
.lb-thumbs button { flex: none; width: 76px; height: 56px; padding: 0; overflow: hidden; border-radius: 10px; border: 2px solid transparent; background: #08122d; opacity: .6; cursor: pointer; transition: opacity .2s, border-color .2s; }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button.is-on, .lb-thumbs button:hover { opacity: 1; }
.lb-thumbs button.is-on { border-color: var(--gold); }
@media (max-width: 640px) { .lb { padding: 8px; } .lb-stage { height: 44vh; } .lb-text h3 { font-size: 1.25rem; } .lb-nav { width: 40px; height: 40px; } .lb-info .btn { width: 100%; } }

/* Galería de proyectos */
.gal { margin-top: clamp(48px, 6vw, 80px); }
.gal .more-label { margin-top: 0; }
.gal-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(22px, 3vw, 34px); }
.gal-chip { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; padding: 0 1.15rem; border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font: 700 .88rem var(--font); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.gal-chip b { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .4em; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .74rem; font-weight: 800; }
.gal-chip:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.gal-chip.is-on { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.gal-chip.is-on b { background: rgba(11, 27, 63, .16); }

.gal-grid { columns: 2; column-gap: 12px; }
@media (min-width: 700px) { .gal-grid { columns: 3; column-gap: 16px; } }
@media (min-width: 1020px) { .gal-grid { columns: 4; column-gap: 16px; } }
.gal-item { position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; break-inside: avoid; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: #14224a; cursor: zoom-in; box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .8); }
@media (min-width: 700px) { .gal-item { margin-bottom: 16px; } }
.gal-item[hidden] { display: none; }
.gal-item img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 18, 43, 0) 55%, rgba(6, 18, 43, .85) 100%); opacity: .9; pointer-events: none; transition: opacity .3s; }
.gal-item .tag { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: .58rem; padding: .32rem .65rem; }
.gal-cap { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-size: .78rem; font-weight: 700; color: #fff; text-align: left; line-height: 1.25; }
.gal-item--plano { background: #fff; }
.gal-item--plano::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(11, 27, 63, .55) 100%); }
.tag--plano { background: var(--red); color: #fff; }
.gal-more { display: flex; justify-content: center; margin-top: clamp(22px, 3vw, 34px); }
.gal-more[hidden] { display: none; }

/* Plano dentro del visor */
.lb-stage.is-plan { background: #fff; height: min(70vh, 760px); }
@media (max-width: 640px) { .lb-stage.is-plan { height: 56vh; } .gal-cap { font-size: .7rem; left: 10px; bottom: 8px; } }

/* 19. ANIMACIONES ------------------------------------------ */
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wave { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-5deg) scaleX(.9); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 20. MOVIMIENTO REDUCIDO ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
