/* ==========================================================
   Plantilla de sitio — styles.css
   Mobile-first. Breakpoints: 768px, 1024px, 1200px y 1400px
   Los colores, fuentes, radio y ancho vienen del config.json del cliente
   (el build reemplaza la línea VARS). No escribir colores fijos aquí.
   ========================================================== */

/* ---------- 1. VARIABLES ---------- */
:root {
  --bg-primary: #FFFFFF;
  --bg-card: #FFFFFF;
  --border: #DCE8F1;
  --border-light: #BCD2E3;
  --text-primary: #0A2540;
  --text-muted: #4A6078;
  --accent-green: #0A7FB5;
  --accent-yellow: #14B8E6;
  --accent-hover: #086A98;
  --placeholder: #6B8196;
  --wa-btn: #0E7C3F;
  --white: #FFFFFF;
  --black: #000000;
  --accent-text: #086A98;
  --on-accent: #FFFFFF;
  --logo-main: #0A2540;
  --btn-dark-bg: #0A2540;
  --btn-dark-fg: #FFFFFF;
  --bg-section-a: #F2F8FC;
  --bg-section-b: #E8F2F9;
  --hero-a: #EAF6FD;
  --hero-b: #F7FBFE;
  --hero-c: #E4F1FA;
  --overlay-rgb: 10, 37, 64;
  --bg-primary-rgb: 255, 255, 255;
  --accent-green-rgb: 10, 127, 181;
  --accent-yellow-rgb: 20, 184, 230;
  --font-title: "Poppins", "Arial Black", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --radius: 12px;
  --container: 1640px;
}
:root { --nav-h: 64px; }

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-primary); color: var(--text-primary);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
::selection { background: var(--accent-green); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
section { padding: 56px 0; }
.section-title { font-size: clamp(32px, 6vw, 52px); margin-bottom: 14px; }
.section-sub { color: var(--text-muted); font-size: 17px; max-width: 520px; }
.section-head { margin-bottom: 28px; }
.bars { display: flex; gap: 5px; margin-bottom: 28px; }
.bars i { display: block; height: 4px; border-radius: 2px; background: var(--accent-green); width: 44px; }
.bars i + i { width: 16px; background: var(--accent-yellow); }

/* Enlace para saltar al contenido (solo se ve con el teclado) */
.skip { position: absolute; left: 16px; top: -60px; z-index: 400; padding: 10px 16px; border-radius: var(--radius); background: var(--accent-green); color: var(--on-accent); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- 3. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent-green); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border-light); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--text-primary); }
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.btn-dark:hover { background: var(--black); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* ---------- 4. NAVBAR ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(var(--bg-primary-rgb), .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.navbar.scrolled { background: rgba(var(--bg-primary-rgb), .94); border-bottom-color: var(--border); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.logo-word { width: auto; height: 34px; overflow: visible; }
.footer .logo-word { height: 56px; }
.logo-word.logo-brisa { height: 46px; }
.footer .logo-word.logo-brisa { height: 72px; }
.nav-links { display: none; gap: 30px; font-size: 15px; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle { width: 44px; height: 44px; background: none; border: 1px solid var(--border-light); border-radius: var(--radius); color: var(--text-primary); cursor: pointer; display: grid; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }
.nav-links.open {
  display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-primary); border-bottom: 1px solid var(--border); padding: 4px 20px 12px;
}
.nav-links.open a { min-height: 52px; display: flex; align-items: center; font-size: 18px; border-bottom: 1px solid var(--border); }
.nav-links.open a:last-child { border-bottom: 0; }

/* ---------- 5. HERO ---------- */
.hero {
  padding: calc(var(--nav-h) + 56px) 0 56px; min-height: 92vh; min-height: 92svh; display: flex; align-items: center;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(var(--accent-green-rgb), .14), transparent 70%),
    radial-gradient(40% 50% at 8% 100%, rgba(var(--accent-yellow-rgb), .06), transparent 70%),
    linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%);
}
.hero h1 { font-size: clamp(42px, 11.5vw, 104px); line-height: .98; letter-spacing: -0.035em; margin-bottom: 26px; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--accent-text); }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.tech { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); letter-spacing: .02em; }
.logo-word .lw-a { fill: var(--logo-main); }
.logo-word .lw-b { fill: var(--accent-green); }
.logo-word .lw-c { fill: var(--accent-yellow); }
.tech b { color: var(--accent-text); font-weight: 400; }

.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-visual { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / .82; margin: 8px auto 0; }
.frame { position: absolute; height: auto; border-radius: 8px; border: 1px solid var(--border-light); background: var(--white); box-shadow: 0 24px 60px rgba(0,0,0,.55); object-fit: cover; object-position: top left; }
.f1 { width: 78%; top: 0; right: 0; animation: bob 7s ease-in-out infinite; }
.f2 { width: 56%; left: 0; bottom: 4%; animation: bob 8s ease-in-out -2s infinite; }
.f3 { width: 50%; right: 4%; bottom: 0; animation: bob 9s ease-in-out -4s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border-light); font-family: var(--font-mono); font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); }
.c1 { top: 6%; left: 2%; animation: bob 6s ease-in-out -1s infinite; }
.c2 { top: 44%; left: 0; animation: bob 7s ease-in-out -3s infinite; }
.c3 { top: 30%; right: 0; animation: bob 8s ease-in-out -5s infinite; }
.c2 i { background: var(--accent-yellow); }

/* ---------- 6. SERVICIOS ---------- */
.services, .contact { background: var(--bg-primary); }
.split { display: grid; gap: 28px; }
.svc-list li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.svc-list li:last-child { border-bottom: 1px solid var(--border); }
.n { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); padding-top: 6px; }
.svc-list h3 { font-size: 22px; margin-bottom: 4px; letter-spacing: -0.02em; }
.svc-list p { color: var(--text-muted); font-size: 15px; }

/* ---------- 7. PROYECTOS ---------- */
.projects, .more { background: linear-gradient(180deg, var(--bg-section-a), var(--bg-section-b)); }
.grid-projects { display: grid; gap: 20px; }
.card-project-link { display: block; }
.card-project { height: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: border-color .2s; }
.card-project:hover { border-color: var(--accent-green); }
.proj-img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--border); margin-bottom: 14px; }
.proj-img.real { aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; background: var(--white); }
.proj-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.tag { color: var(--accent-yellow); }
.card-project h3 { font-size: 24px; margin-bottom: 6px; }
.card-project p { color: var(--text-muted); font-size: 15px; }
.proj-more { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--accent-text); }

/* ---------- 8. MÁS INFORMACIÓN (plegable) ---------- */
.acc { border-top: 1px solid var(--border); }
.acc:last-child { border-bottom: 1px solid var(--border); }
.acc > summary { list-style: none; cursor: pointer; min-height: 64px; padding: 16px 48px 16px 0; font-family: var(--font-title); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; position: relative; display: flex; align-items: center; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 26px; font-weight: 400; color: var(--accent-text); }
.acc[open] > summary::after { content: "−"; }
.acc[open] > summary { color: var(--accent-text); }
.acc-body { padding: 4px 0 32px; }
.acc-body .grid-pricing { margin: 20px 0 28px; }

.grid-testi { display: grid; gap: 28px; }
.testi blockquote { border-left: 3px solid var(--accent-green); padding-left: 18px; font-size: 18px; line-height: 1.55; margin-bottom: 14px; }
.testi figcaption { padding-left: 21px; font-size: 14px; color: var(--text-muted); }
.testi figcaption b { display: block; color: var(--text-primary); font-weight: 600; }
.testi .ejemplo { display: inline-block; margin-top: 6px; padding: 2px 10px; border: 1px dashed var(--accent-yellow); border-radius: 999px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-yellow); }
.testi-ref { margin-top: 34px; color: var(--text-muted); }
.testi-ref a { color: var(--accent-text); font-weight: 600; }

.about-text { color: var(--text-muted); font-size: 18px; margin-bottom: 16px; max-width: 540px; }

.steps { display: grid; gap: 26px; }
.step { border-top: 2px solid var(--border-light); padding-top: 16px; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); }
.step h3 { font-size: 24px; margin: 6px 0; }
.step p { color: var(--text-muted); font-size: 16px; }

.grid-pricing { display: grid; margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.price-card { padding: 26px 22px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.price-card:last-child { border-bottom: 0; }
.price-card h3 { font-size: 22px; line-height: 1.2; }
.price-card ul { color: var(--text-muted); font-size: 16px; flex: 1; }
.price-card li { padding: 3px 0; }
.price-alt { font-family: var(--font-mono); font-size: 14px; color: var(--accent-text); }
.pay-note { color: var(--text-muted); margin-bottom: 40px; max-width: 640px; }
.guarantee { border-top: 1px solid var(--border); padding-top: 24px; }
.guarantee h3 { font-size: 26px; margin-bottom: 14px; }
.guarantee ul { display: grid; gap: 12px; }
.guarantee li { color: var(--text-muted); font-size: 16px; padding-left: 26px; position: relative; }
.guarantee li::before { content: "→"; position: absolute; left: 0; color: var(--accent-text); }
.guarantee b { color: var(--text-primary); font-weight: 600; }

.faq details { border-top: 1px solid var(--border); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; min-height: 60px; padding: 16px 44px 16px 0; font-weight: 600; font-size: 18px; position: relative; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 24px; font-weight: 400; color: var(--accent-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--text-muted); max-width: 640px; }

/* ---------- 9. CTA ---------- */
.cta { background: var(--accent-green); color: var(--on-accent); padding: 72px 0; }
.cta h2 { font-size: clamp(34px, 7vw, 68px); margin-bottom: 14px; max-width: 760px; }
.cta p { font-size: 19px; font-weight: 500; margin-bottom: 30px; max-width: 520px; }

/* ---------- 10. CONTACTO ---------- */
.contact-grid { display: grid; gap: 40px; }
.contact h2 { font-size: clamp(42px, 8vw, 76px); margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); font-size: 18px; margin-bottom: 28px; max-width: 440px; }
.contact-list { display: grid; gap: 16px; }
.contact-list small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.contact-list a { color: var(--accent-text); font-weight: 600; }
.form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
.field label { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-primary); border: 1px solid var(--border); color: var(--text-primary); font-family: var(--font-body); font-size: 16px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-green); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent-yellow); }
.form .btn { width: 100%; }
.form-note { font-size: 14px; color: var(--accent-text); min-height: 18px; }
.form-note.error { color: var(--accent-yellow); }
.form-note a { text-decoration: underline; font-weight: 600; }

/* ---------- 11. FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0 28px; }
.footer-grid { display: grid; gap: 24px; margin-bottom: 32px; }
.footer .tagline { color: var(--text-muted); font-size: 15px; margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 15px; color: var(--text-muted); }
.footer-links a { padding: 8px 0; }
.footer-links a:hover { color: var(--accent-text); }
.copy { font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 22px; }

/* ---------- 12. WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 150;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa-btn); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- 13. ENTRADA SUAVE (solo si hay JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- 14. PÁGINA DE PROYECTO ---------- */
.proj-page { padding-top: calc(var(--nav-h) + 48px); }
.back { display: inline-block; color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.back:hover { color: var(--accent-text); }
.proj-page h1 { font-size: clamp(42px, 9vw, 84px); margin: 10px 0 14px; }
.proj-page .lead { font-size: 19px; color: var(--text-muted); max-width: 620px; margin-bottom: 34px; }
.proj-page .hero-img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 40px; }
.proj-page .tag { font-family: var(--font-mono); font-size: 13px; }
.feat-list { display: grid; margin-bottom: 36px; border-top: 1px solid var(--border); }
.feat-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.feat-list li::before { content: "→ "; color: var(--accent-text); }

.gallery { display: grid; gap: 22px; margin-bottom: 40px; }
.gallery figure { margin: 0; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.shot img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.gallery figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-light); background: var(--bg-card); color: var(--text-primary); font-size: 26px; line-height: 1; cursor: pointer; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 380px) {
  .nav-right .btn-sm { padding: 8px 12px; font-size: 14px; }
  .logo-word { height: 30px; }
  .logo-word.logo-brisa { height: 38px; }
}
@media (min-width: 768px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .container { padding: 0 32px; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .hero-cta { flex-direction: row; }
  .hero-sub { font-size: 20px; }
  .chip { padding: 7px 14px; font-size: 13px; }
  .c2 { left: -2%; }
  .c3 { right: -2%; }
  .grid-projects { grid-template-columns: repeat(3, 1fr); }
  .grid-testi { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .grid-pricing { grid-template-columns: repeat(3, 1fr); }
  .price-card { border-bottom: 0; border-right: 1px solid var(--border); }
  .price-card:last-child { border-right: 0; }
  .guarantee ul { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-links { justify-content: flex-end; }
  .cta { padding: 96px 0; }
  .acc > summary { font-size: 26px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .hero { min-height: 92svh; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
  .hero-visual { margin: 0; max-width: none; }
  .hero h1 { font-size: clamp(52px, 5.4vw, 72px); }
}
@media (max-width: 1023px) { .hero { min-height: 0; } }
@media (min-width: 1200px) {
  .container { padding: 0 clamp(40px, 4vw, 80px); }
  .split { grid-template-columns: 340px 1fr; gap: 72px; }
  .split .section-head { position: sticky; top: 100px; align-self: start; }
  .grid-projects { gap: 24px; }
}
@media (min-width: 1400px) { .hero h1 { font-size: clamp(72px, 5vw, 116px); } }

/* ==========================================================
   VARIANTES (config: portada.estilo, servicios.estilo, tema.modo → clases en <body>)
   ========================================================== */

/* Logo con emblema: el cuadro y el copo */
.logo-word .lw-s { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; }

/* Portada "foto-lateral": texto a la izquierda y foto grande con marco, chips flotantes y borde ondulado */
.v-portada-foto-lateral .hero { position: relative; overflow: hidden; display: block; padding-bottom: 100px;
  background: radial-gradient(700px 420px at 88% 18%, rgba(var(--accent-green-rgb), .16), transparent 62%), radial-gradient(500px 360px at 0% 100%, rgba(var(--accent-yellow-rgb), .1), transparent 60%), linear-gradient(180deg, var(--hero-a), var(--hero-b)); }
.v-portada-foto-lateral .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 58px; background: var(--bg-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 58' preserveAspectRatio='none'%3E%3Cpath d='M0 58V30C220 0 440 4 720 26s520 28 720 4V58z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 58' preserveAspectRatio='none'%3E%3Cpath d='M0 58V30C220 0 440 4 720 26s520 28 720 4V58z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.hero-foto-grid { display: grid; gap: 46px; align-items: center; }
.hero-foto .hero-copy { max-width: 620px; }
.v-portada-foto-lateral .hero h1 { font-size: clamp(31px, 8.2vw, 56px); overflow-wrap: break-word; line-height: 1.08; letter-spacing: -0.02em; }
.v-portada-foto-lateral .hero h1 .accent { color: var(--accent-text); }
.hero-foto-visual { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 0 14px 22px 0; }
.hero-foto-visual::before { content: ""; position: absolute; inset: 26px 0 0 26px; border-radius: 30px; background: var(--accent-green); opacity: .16; }
.foto-marco { position: relative; z-index: 1; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgba(var(--overlay-rgb), .22); border: 6px solid var(--bg-card); }
.foto-marco img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip-foto { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; background: var(--bg-card); color: var(--text-primary); font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(var(--overlay-rgb), .2); border: 1px solid var(--border); }
.chip-foto svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent-green); stroke: var(--on-accent); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chip-foto.fc0 { left: -8px; top: 9%; }
.chip-foto.fc1 { right: -6px; top: 42%; }
.chip-foto.fc2 { left: 6%; bottom: 0; }
@media (min-width: 1024px) {
  .hero-foto-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 60px; }
  .v-portada-foto-lateral .hero h1 { font-size: clamp(44px, 4.4vw, 64px); }
  .chip-foto.fc0 { left: -34px; } .chip-foto.fc1 { right: -26px; }
}
@media (prefers-reduced-motion: no-preference) {
  .mov-vivo .chip-foto { animation: bob 6s ease-in-out infinite; }
  .mov-vivo .chip-foto.fc1 { animation-delay: -2s; } .mov-vivo .chip-foto.fc2 { animation-delay: -4s; }
  .mov-vivo .foto-marco img { animation: zoomLento 24s ease-in-out infinite alternate; }
  .mov-vivo .hero-foto-visual { animation: entraHero 1s .35s cubic-bezier(.2, .7, .2, 1) both; }
}

/* Servicios "tarjetas-foto": tarjeta con foto arriba, insignia con el ícono y texto */
.v-servicios-tarjetas-foto .split { grid-template-columns: 1fr; gap: 28px; }
.v-servicios-tarjetas-foto .split .section-head { position: static; }
.v-servicios-tarjetas-foto .svc-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.v-servicios-tarjetas-foto .svc-list li, .v-servicios-tarjetas-foto .svc-list li:last-child { flex: 0 0 100%; min-width: 0; }
@media (min-width: 700px) { .v-servicios-tarjetas-foto .svc-list li, .v-servicios-tarjetas-foto .svc-list li:last-child { flex-basis: calc((100% - 24px) / 2); } }
@media (min-width: 1100px) { .v-servicios-tarjetas-foto .svc-list li, .v-servicios-tarjetas-foto .svc-list li:last-child { flex-basis: calc((100% - 48px) / 3); } }
@media (min-width: 1560px) { .v-servicios-tarjetas-foto .svc-list li, .v-servicios-tarjetas-foto .svc-list li:last-child { flex-basis: calc((100% - 96px) / 5); } }
.v-servicios-tarjetas-foto .svc-list li, .v-servicios-tarjetas-foto .svc-list li:last-child { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); box-shadow: 0 12px 30px rgba(var(--overlay-rgb), .08); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .3s; }
.v-servicios-tarjetas-foto .svc-list li:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(var(--overlay-rgb), .16); border-color: var(--accent-green); }
.v-servicios-tarjetas-foto .svc-foto { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); }
.v-servicios-tarjetas-foto .svc-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.v-servicios-tarjetas-foto .svc-list li:hover .svc-foto img { transform: scale(1.08); }
.v-servicios-tarjetas-foto .svc-icon { display: grid; place-items: center; position: relative; z-index: 2; width: 56px; height: 56px; margin: -28px 0 0 22px; border-radius: 16px; background: var(--accent-green); color: var(--on-accent); box-shadow: 0 10px 22px rgba(var(--accent-green-rgb), .4); }
.v-servicios-tarjetas-foto .svc-icon svg { width: 30px; height: 30px; }
.v-servicios-tarjetas-foto .n { display: none; }
.v-servicios-tarjetas-foto .svc-list li > div { padding: 14px 24px 26px; }
.v-servicios-tarjetas-foto .svc-list li:not(:has(.svc-foto)) { padding-top: 26px; }
.v-servicios-tarjetas-foto .svc-list li:not(:has(.svc-foto)) .svc-icon { margin-top: 0; }
.v-servicios-tarjetas-foto .svc-list h3 { font-size: 22px; margin-bottom: 8px; }

/* "Quiénes somos" como sección propia */
.about { background: linear-gradient(180deg, var(--bg-section-a), var(--bg-section-b)); }
.about-body { max-width: 760px; }
.about-body .about-text { max-width: none; font-size: 19px; line-height: 1.7; }
@media (min-width: 768px) { .about-body .about-text { font-size: 20px; } }

/* Servicios con página de fotos: toda la tarjeta es el enlace */
.svc-list li { position: relative; }
.svc-link::after { content: ""; position: absolute; inset: 0; }
.svc-ver { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--accent-text); }

/* Fotos que sube el cliente desde el panel: caja uniforme */
.foto-panel { aspect-ratio: 4 / 3; object-fit: cover; }

/* Íconos de servicios: solo se ven en el estilo "cuadricula" */
.svc-icon { display: none; }

/* Portada "hero-imagen": foto a todo el ancho (config: portada.fondo, puesta en línea por el build) con capa oscura y el título encima */
.v-portada-hero-imagen .hero {
  min-height: 88vh; min-height: 88svh;
  background-color: var(--bg-primary);
  background-image: linear-gradient(90deg, rgba(var(--overlay-rgb), .9) 0%, rgba(var(--overlay-rgb), .7) 50%, rgba(var(--overlay-rgb), .45) 100%), linear-gradient(135deg, var(--hero-a), var(--hero-b));
  background-size: cover; background-position: center;
}
.v-portada-hero-imagen .hero-grid { grid-template-columns: 1fr; }
.v-portada-hero-imagen .hero-copy { max-width: 820px; }
.v-portada-hero-imagen .hero-visual { display: none; }
.v-portada-hero-imagen .hero h1 span:not(.accent) { color: var(--white); }
.v-portada-hero-imagen .hero h1 .accent { color: var(--accent-green); }
.v-portada-hero-imagen .hero-sub { color: rgba(255, 255, 255, .88); }
.v-portada-hero-imagen .tech { color: rgba(255, 255, 255, .75); }
.v-portada-hero-imagen .hero .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.v-portada-hero-imagen .hero .btn-ghost:hover { border-color: var(--white); }

/* Servicios "cuadricula": tarjetas con ícono grande, título y texto (sin numeración) */
.v-servicios-cuadricula .split { grid-template-columns: 1fr; gap: 28px; }
.v-servicios-cuadricula .split .section-head { position: static; }
.v-servicios-cuadricula .svc-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.v-servicios-cuadricula .svc-list li, .v-servicios-cuadricula .svc-list li:last-child { display: block; padding: 28px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.v-servicios-cuadricula .svc-list li:hover { border-color: var(--accent-green); transform: translateY(-2px); }
.v-servicios-cuadricula .n { display: none; }
.v-servicios-cuadricula .svc-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 18px; border-radius: var(--radius); background: rgba(var(--accent-green-rgb), .14); color: var(--accent-text); }
.v-servicios-cuadricula .svc-icon svg { width: 38px; height: 38px; }
.v-servicios-cuadricula .svc-list h3 { font-size: 24px; margin-bottom: 8px; }

/* ==========================================================
   GALERÍA PRO (páginas de servicio): foto destacada, filas, animaciones y visor con flechas
   ========================================================== */
.galeria-pro { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 44px; }
.galeria-pro figure {
  position: relative; overflow: hidden; margin: 0; grid-column: span 6; aspect-ratio: 4 / 3;
  border-radius: var(--radius); background: var(--bg-card); box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.galeria-pro .shot { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; cursor: zoom-in; }
.galeria-pro .shot img, .galeria-pro .foto-panel {
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border: 0; border-radius: 0; display: block;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1), filter .6s;
}
/* sombra de fondo y número de la foto */
.galeria-pro figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(var(--overlay-rgb), .78) 0%, rgba(var(--overlay-rgb), 0) 55%); opacity: .55; transition: opacity .45s; }
.galeria-pro figure::before { content: attr(data-n); position: absolute; left: 16px; bottom: 12px; z-index: 2; font-family: var(--font-mono); font-size: 15px; letter-spacing: .08em; color: var(--white); transform: translateY(0); transition: transform .45s; }
.galeria-pro figcaption { position: absolute; left: 16px; right: 64px; bottom: 36px; z-index: 2; color: var(--white); font-family: var(--font-body); font-size: 14px; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s; }
/* ícono + que gira al pasar el mouse */
.galeria-pro .shot::after {
  content: "+"; position: absolute; right: 14px; top: 14px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-green); color: var(--on-accent); font-size: 26px; font-weight: 600; line-height: 1;
  opacity: 0; transform: scale(.5) rotate(-90deg); transition: opacity .4s, transform .5s cubic-bezier(.2, .9, .3, 1.3);
}
.galeria-pro figure:hover, .galeria-pro figure:focus-within { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(0, 0, 0, .28); transition-delay: 0s; }
.galeria-pro figure:hover .shot img, .galeria-pro figure:focus-within .shot img { transform: scale(1.09); }
.galeria-pro figure:hover::after, .galeria-pro figure:focus-within::after { opacity: 1; }
.galeria-pro figure:hover::before { transform: translateY(-14px); }
.galeria-pro figure:hover figcaption, .galeria-pro figure:focus-within figcaption { opacity: 1; transform: none; }
.galeria-pro figure:hover .shot::after, .galeria-pro figure:focus-within .shot::after { opacity: 1; transform: none; }
@media (hover: none) { .galeria-pro .shot::after { opacity: 1; transform: none; width: 36px; height: 36px; } .galeria-pro figure::after { opacity: 1; } }
@media (min-width: 768px) {
  .galeria-pro figure { grid-column: span 3; }
  .galeria-pro figure.s2 { grid-column: span 2; }
  .galeria-pro figure.s3 { grid-column: span 3; }
  .galeria-pro figure.s6, .galeria-pro figure.destacada { grid-column: span 6; }
}
/* Galería compacta: ancho contenido y foto grande que se ajusta al dispositivo (baja en celular, tope en pantallas grandes) */
.galeria-pro { max-width: 1000px; }
.galeria-pro figure.destacada, .galeria-pro figure.s6 { aspect-ratio: auto; height: clamp(190px, 38vw, 340px); }

/* Con JavaScript: brillo mientras llega la foto, y cada tarjeta aparece subiendo, una tras otra */
.js .galeria-pro figure:not(.lista) { background: linear-gradient(110deg, var(--bg-card) 30%, var(--border) 50%, var(--bg-card) 70%); background-size: 220% 100%; animation: brillo 1.5s linear infinite; }
.js .galeria-pro .shot img { opacity: 0; transform: scale(1.12); }
.js .galeria-pro figure.lista .shot img { opacity: 1; transform: none; }
.js .galeria-pro figure.lista:hover .shot img, .js .galeria-pro figure.lista:focus-within .shot img { transform: scale(1.09); }
.js .galeria-pro figure { opacity: 0; transform: translateY(36px) scale(.96); }
.js .galeria-pro figure.visible { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; transition-delay: calc(var(--i, 0) * 110ms); }
.js .galeria-pro figure.visible:hover, .js .galeria-pro figure.visible:focus-within { transform: translateY(-5px); transition-delay: 0s; }
@keyframes brillo { to { background-position: -220% 0; } }

/* Encabezado de la página de servicio: entra con movimiento y barra de acento que se dibuja */
.js .pagina-servicio .back, .js .pagina-servicio h1, .js .pagina-servicio .lead, .js .pagina-servicio .section-title, .js .pagina-servicio .btn { animation: sube .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .pagina-servicio h1 { animation-delay: .08s; } .js .pagina-servicio .lead { animation-delay: .18s; } .js .pagina-servicio .section-title { animation-delay: .28s; }
/* Títulos largos (p. ej. "Instalación de aires acondicionados") no deben salirse en celulares */
.pagina-servicio h1 { font-size: clamp(30px, 8.4vw, 84px); overflow-wrap: break-word; }
.pagina-servicio h1::after { content: ""; display: block; height: 6px; width: 0; margin-top: 16px; border-radius: 3px; background: var(--accent-green); animation: barra 1s .45s cubic-bezier(.2, .7, .2, 1) forwards; }
.pagina-servicio .btn { transition: transform .25s, background .2s; } .pagina-servicio .btn:hover { transform: translateY(-3px); }
@keyframes sube { from { opacity: 0; transform: translateY(22px); } }
@keyframes barra { to { width: 96px; } }
.sin-fotos { margin-top: 8px; }

/* Visor ampliado (versión pro): aparece con fundido, flechas, contador y cambio suave entre fotos */
.lightbox.pro { background: rgba(var(--overlay-rgb), .95); opacity: 0; transition: opacity .28s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox.pro.abierto { opacity: 1; }
.lightbox.pro img { max-height: 80vh; max-width: min(100%, 1400px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.94); opacity: 0; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.lightbox.pro.abierto img { transform: none; opacity: 1; }
.lightbox.pro.cambiando img { opacity: 0; transform: scale(.97); }
.lb-nav { position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); color: var(--white); font-size: 34px; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.lb-nav:hover { background: var(--accent-green); color: var(--on-accent); transform: scale(1.08); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-info { position: absolute; bottom: 18px; left: 0; right: 0; padding: 0 16px; text-align: center; color: var(--white); font-family: var(--font-mono); font-size: 14px; letter-spacing: .04em; }
.visor-abierto { overflow: hidden; }
@media (max-width: 767px) { .lb-nav { width: 44px; height: 44px; margin-top: -22px; font-size: 28px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ==========================================================
   MOVIMIENTO "VIVO" (config: tema.movimiento = "vivo"): animaciones suaves, sin saturar.
   Todo va dentro de "no-preference": con "reducir movimiento" no se anima nada.
   ========================================================== */
.progreso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; background: var(--accent-green); transform: scaleX(0); transform-origin: left; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  /* Portada: la foto vive en su capa (zoom lento) y el texto entra escalonado */
  .hero.con-bg { position: relative; overflow: hidden; }
  .v-portada-hero-imagen .hero.con-bg { background-image: none; background-color: var(--bg-primary); }
  .hero-bg { position: absolute; inset: -4%; z-index: 0; background-size: cover; background-position: center; animation: zoomLento 26s ease-in-out infinite alternate; will-change: transform; }
  .hero.con-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--overlay-rgb), .9) 0%, rgba(var(--overlay-rgb), .7) 50%, rgba(var(--overlay-rgb), .45) 100%); }
  .hero.con-bg .hero-grid { position: relative; z-index: 2; }
  .mov-vivo .hero .bars i { transform-origin: left; animation: crece .9s .1s cubic-bezier(.2, .7, .2, 1) both; }
  .mov-vivo .hero h1 span { animation: entraHero .9s cubic-bezier(.2, .7, .2, 1) both; }
  .mov-vivo .hero h1 span:nth-child(1) { animation-delay: .2s; }
  .mov-vivo .hero h1 span:nth-child(2) { animation-delay: .38s; }
  .mov-vivo .hero-sub { animation: entraHero .9s .55s cubic-bezier(.2, .7, .2, 1) both; }
  .mov-vivo .hero-cta { animation: entraHero .9s .72s cubic-bezier(.2, .7, .2, 1) both; }
  .mov-vivo .hero .tech { animation: entraHero .9s .88s cubic-bezier(.2, .7, .2, 1) both; }
  @media (min-width: 768px) {
    .hero.con-bg::after { content: ""; position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 18px; height: 18px; margin-left: -9px; border-right: 3px solid rgba(255, 255, 255, .75); border-bottom: 3px solid rgba(255, 255, 255, .75); transform: rotate(45deg); animation: rebota 2.2s ease-in-out infinite; }
  }

  /* Menú: subrayado que se desliza */
  @media (min-width: 768px) {
    .mov-vivo .nav-links a { position: relative; padding: 6px 0; }
    .mov-vivo .nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-green); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
    .mov-vivo .nav-links a:hover::after, .mov-vivo .nav-links a.active::after { transform: scaleX(1); }
  }
  .mov-vivo .navbar { transition: box-shadow .3s, border-color .3s, background .3s; }
  .mov-vivo .navbar.scrolled { box-shadow: 0 6px 22px rgba(0, 0, 0, .12); }

  /* Títulos: la barra de acento se dibuja al aparecer */
  .mov-vivo .section-head.reveal .section-title::after { content: ""; display: block; height: 5px; width: 0; margin-top: 12px; border-radius: 3px; background: var(--accent-green); transition: width .9s .25s cubic-bezier(.2, .7, .2, 1); }
  .mov-vivo .section-head.reveal.visible .section-title::after { width: 72px; }

  /* Tarjetas de servicio: entran una tras otra; el ícono reacciona al pasar el mouse */
  .js.mov-vivo .svc-list li.reveal:nth-child(2) { transition-delay: .08s; }
  .js.mov-vivo .svc-list li.reveal:nth-child(3) { transition-delay: .16s; }
  .js.mov-vivo .svc-list li.reveal:nth-child(4) { transition-delay: .24s; }
  .js.mov-vivo .svc-list li.reveal:nth-child(5) { transition-delay: .32s; }
  .js.mov-vivo .svc-list li.reveal:nth-child(6) { transition-delay: .4s; }
  .mov-vivo .svc-icon { transition: transform .45s cubic-bezier(.2, .9, .3, 1.3), background .3s; }
  .mov-vivo .svc-list li:hover .svc-icon { transform: translateY(-3px) rotate(-7deg) scale(1.1); background: var(--accent-green); color: var(--on-accent); }
  .mov-vivo .svc-ver { transition: letter-spacing .3s, transform .3s; }
  .mov-vivo .svc-list li:hover .svc-ver { transform: translateX(5px); }

  /* Botones: brillo que cruza al pasar el mouse */
  .mov-vivo .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
  .mov-vivo .btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s ease; }
  .mov-vivo .btn-primary:hover::after { left: 130%; }
  .mov-vivo .btn { transition: background .2s, color .2s, border-color .2s, transform .25s, box-shadow .25s; }
  .mov-vivo .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(var(--accent-green-rgb), .35); }

  /* Llamado final: franjas que se desplazan muy despacio */
  .mov-vivo .cta { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 16px, transparent 16px 32px); background-size: 45px 45px; animation: franjas 16s linear infinite; }

  /* Botón de WhatsApp: pulso suave */
  .mov-vivo .wa-float.show::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--wa-btn); animation: pulso 3.2s ease-out infinite; }
  .mov-vivo .wa-float { transition: opacity .25s, transform .25s; }
  .mov-vivo .wa-float.show:hover { transform: scale(1.08); }

  /* Formulario y enlaces del pie */
  .mov-vivo .form { transition: box-shadow .3s; }
  .mov-vivo .form:focus-within { box-shadow: 0 14px 40px rgba(0, 0, 0, .12); }
  .mov-vivo .footer-links a { transition: color .2s, transform .25s; }
  .mov-vivo .footer-links a:hover { transform: translateY(-2px); }

  @keyframes zoomLento { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.2%, -1%, 0); } }
  @keyframes entraHero { from { opacity: 0; transform: translateY(26px); } }
  @keyframes crece { from { transform: scaleX(0); } }
  @keyframes rebota { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .5; } 50% { transform: translateY(8px) rotate(45deg); opacity: 1; } }
  @keyframes franjas { to { background-position: 90px 0; } }
  @keyframes pulso { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .js .galeria-pro figure, .js .galeria-pro .shot img { opacity: 1; transform: none; transition: none; animation: none; }
  .js .pagina-servicio .back, .js .pagina-servicio h1, .js .pagina-servicio .lead, .js .pagina-servicio .section-title, .js .pagina-servicio .btn { animation: none; }
  .pagina-servicio h1::after { animation: none; width: 96px; }
  .lightbox.pro, .lightbox.pro img { transition: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .frame, .chip { animation: none; }
}

/* Pantallas anchas: la portada con foto lateral crece con el ancho en vez de quedarse angosta en el centro */
@media (min-width: 1400px) {
  .v-portada-foto-lateral .hero-foto-visual { max-width: 720px; }
  .hero-foto .hero-copy { max-width: 760px; }
  .v-portada-foto-lateral .hero-sub { max-width: 640px; font-size: 20px; }
}

/* ==========================================================
   Extras opcionales: franja de puntos fuertes, "Cómo trabajamos" visible, calculadora de BTU y brisa de portada
   ========================================================== */
.franja { padding: 6px 0 4px; }
.franja-lista { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -10px 0 0; padding: 0; position: relative; z-index: 2; }
.franja-lista li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; font-size: 15px; color: var(--text-primary); box-shadow: 0 10px 30px rgba(var(--overlay-rgb), .08); }
.franja-lista svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-green); stroke: var(--on-accent); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .franja-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } .franja-lista li { font-size: 16px; padding: 18px 20px; } }

.proceso-sec { padding: 90px 0; background: var(--bg-section-a); }
.proceso-pasos { list-style: none; display: grid; gap: 22px; margin: 36px 0 0; padding: 0; }
.proceso-paso { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; transition: transform .3s, box-shadow .3s; }
.proceso-paso .step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-green); color: var(--on-accent); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.proceso-paso h3 { font-size: 22px; margin-bottom: 6px; }
.proceso-paso p { color: var(--text-muted); font-size: 16px; }
@media (min-width: 700px) { .proceso-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .proceso-pasos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
  .proceso-paso:not(:last-child)::after { content: ""; position: absolute; top: 47px; right: -26px; width: 26px; height: 2px; background: linear-gradient(90deg, var(--accent-green), transparent); }
  .proceso-paso:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(var(--overlay-rgb), .12); }
}

.calc { padding: 90px 0; }
.calc-grid { display: grid; gap: 36px; align-items: start; }
.calc-info .section-sub { max-width: 520px; margin-top: 14px; }
.calc-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(var(--overlay-rgb), .1); }
.calc-form select, .calc-form .field input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-primary); border: 1px solid var(--border); color: var(--text-primary); font-family: var(--font-body); font-size: 16px; }
.calc-form input:focus, .calc-form select:focus { outline: 2px solid var(--accent-green); outline-offset: 1px; border-color: transparent; }
.calc-form input[aria-invalid="true"] { border-color: var(--accent-yellow); }
.calc-ayuda { display: block; margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.calc-form .btn { width: 100%; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; } .calc-form { padding: 34px; } }

.hero-brisa { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero-brisa svg { position: absolute; left: -5%; bottom: 8%; width: 110%; height: 62%; opacity: .55; }
.hero-brisa path { fill: none; stroke: var(--accent-green); stroke-linecap: round; stroke-width: 2.4; opacity: .35; }
.hero-brisa path:nth-child(2) { stroke: var(--accent-yellow); opacity: .5; stroke-width: 1.8; }
.hero-brisa path:nth-child(3) { opacity: .22; stroke-width: 3.2; }
.hero-foto-grid { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .mov-vivo .hero-brisa path { stroke-dasharray: 260 220; animation: brisa 9s linear infinite; }
  .mov-vivo .hero-brisa path:nth-child(2) { animation-duration: 12s; animation-direction: reverse; }
  .mov-vivo .hero-brisa path:nth-child(3) { animation-duration: 15s; }
  @keyframes brisa { to { stroke-dashoffset: -960; } }
}

/* ==========================================================
   MOVIMIENTO "PRO" (config: tema.movimiento = "pro"; incluye todo lo de "vivo").
   Solo transform/opacity/clip-path (compositor). Con "reducir movimiento" no se anima nada.
   ========================================================== */
.wa-burbuja { display: none; }
@media (prefers-reduced-motion: no-preference) {
  /* Entrada al hacer scroll: más recorrido, desenfoque leve y curva tipo "expo" */
  .js.mov-pro .reveal { transform: translate3d(0, 34px, 0) scale(.985); filter: blur(6px);
    transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), filter .9s cubic-bezier(.16, 1, .3, 1), box-shadow .35s, border-color .3s; }
  .js.mov-pro .reveal.visible { transform: none; filter: none; }

  /* Menú: vidrio esmerilado, logo que se compacta y se esconde al bajar */
  .mov-pro .navbar { transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, border-color .3s, background .3s; }
  .mov-pro .navbar.scrolled { background: rgba(var(--bg-primary-rgb), .8); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
  .mov-pro .navbar.escondido { transform: translate3d(0, -100%, 0); box-shadow: none; }
  .mov-pro .brand .logo-word { transition: transform .45s cubic-bezier(.16, 1, .3, 1); transform-origin: left center; }
  .mov-pro .navbar.scrolled .brand .logo-word { transform: scale(.9); }

  /* Portada: líneas del título que se revelan, foto que se abre y chips que "rebotan" al llegar */
  .mov-pro .hero h1 span { animation-name: revelaLinea; animation-duration: 1.1s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  .mov-pro .hero-copy, .mov-pro .foto-marco, .mov-pro .chip-foto { will-change: translate; }
  .mov-pro .foto-marco { animation: marcoEntra 1.4s .2s cubic-bezier(.16, 1, .3, 1) both; }
  .mov-pro .hero-foto-visual::before { animation: deriva 12s ease-in-out infinite alternate; }
  .mov-pro .chip-foto.fc0 { animation: chipEntra .8s 1s cubic-bezier(.34, 1.56, .64, 1) both, bob 6s 1.8s ease-in-out infinite; }
  .mov-pro .chip-foto.fc1 { animation: chipEntra .8s 1.15s cubic-bezier(.34, 1.56, .64, 1) both, bob 7s 1.95s ease-in-out infinite; }
  .mov-pro .chip-foto.fc2 { animation: chipEntra .8s 1.3s cubic-bezier(.34, 1.56, .64, 1) both, bob 8s 2.1s ease-in-out infinite; }

  /* Portada: auras de color que se desplazan y partículas de aire que cruzan */
  .mov-pro .hero-brisa::before, .mov-pro .hero-brisa::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
  .mov-pro .hero-brisa::before { width: 70vmax; height: 70vmax; right: -28vmax; top: -34vmax; background: radial-gradient(circle, rgba(var(--accent-yellow-rgb), .2), transparent 62%); animation: deriva 16s ease-in-out infinite alternate; }
  .mov-pro .hero-brisa::after { width: 55vmax; height: 55vmax; left: -24vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(var(--accent-green-rgb), .14), transparent 62%); animation: deriva 20s -6s ease-in-out infinite alternate-reverse; }
  .mov-pro .particula { position: absolute; left: 0; top: var(--top); width: var(--s); height: var(--s); border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-yellow-rgb), .95), rgba(var(--accent-yellow-rgb), 0) 70%);
    animation: sopla var(--t) var(--d) linear infinite; will-change: transform, opacity; }
  .mov-pro .particula.linea { width: calc(var(--s) * 9); height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(var(--accent-yellow-rgb), 0), rgba(var(--accent-yellow-rgb), .7), rgba(var(--accent-green-rgb), 0)); }

  /* Franja: marquesina infinita con bordes que se desvanecen (se pausa al pasar el mouse) */
  .mov-pro .franja.marquesina { padding: 0; }
  .mov-pro .franja.marquesina .container { max-width: none; padding: 16px 0 20px; margin-top: -26px; position: relative; z-index: 2; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--text-primary) 7%, var(--text-primary) 93%, transparent); mask-image: linear-gradient(90deg, transparent, var(--text-primary) 7%, var(--text-primary) 93%, transparent); }
  .mov-pro .franja.marquesina .franja-lista { display: flex; width: max-content; gap: 0; margin: 0; animation: marquesina 46s linear infinite, aparece 1s .9s ease both; }
  .mov-pro .franja.marquesina .franja-lista li { flex: none; margin-right: 14px; white-space: nowrap; }
  .mov-pro .franja.marquesina:hover .franja-lista { animation-play-state: paused; }

  /* Servicios: inclinación 3D que sigue al mouse, brillo de luz y foto que se acomoda al entrar */
  .js.mov-pro .svc-list li.reveal.visible.listo { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--ty, 0px), 0);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .4s, border-color .3s; }
  .js.mov-pro .svc-list li.reveal.visible.listo:hover { --ty: -8px; }
  .mov-pro .svc-list li::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .24), transparent 45%); opacity: 0; transition: opacity .4s; }
  .mov-pro .svc-list li:hover::before { opacity: 1; }
  .js.mov-pro .svc-list li.reveal .svc-foto img { transform: scale(1.16); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
  .js.mov-pro .svc-list li.reveal.visible .svc-foto img { transform: none; }
  .js.mov-pro .svc-list li.reveal.visible:hover .svc-foto img { transform: scale(1.08); }
  .js.mov-pro .svc-list li.reveal.visible .svc-icon { animation: pop .7s .35s cubic-bezier(.34, 1.56, .64, 1) both; }

  /* "Así trabajamos": número que aparece con un anillo; en celular, línea de tiempo que se llena con el scroll */
  .mov-pro .proceso-paso .step-num { position: relative; }
  .js.mov-pro .proceso-paso.visible .step-num { animation: pop .7s .25s cubic-bezier(.34, 1.56, .64, 1) both; }
  .js.mov-pro .proceso-paso.visible .step-num::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent-green); animation: anillo 1.3s .55s ease-out both; }
  @media (max-width: 699px) {
    .mov-pro .proceso-pasos { position: relative; padding-left: 30px; }
    .mov-pro .proceso-pasos::before, .mov-pro .proceso-pasos::after { content: ""; position: absolute; left: 9px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: var(--border); }
    .mov-pro .proceso-pasos::after { background: linear-gradient(180deg, var(--accent-yellow), var(--accent-green)); transform-origin: top; transform: scaleY(var(--p, 0)); }
    .mov-pro .proceso-paso::before { content: ""; position: absolute; left: -28px; top: 36px; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: var(--bg-section-a); border: 3px solid var(--border-light); transition: background .4s, border-color .4s, box-shadow .4s; }
    .mov-pro .proceso-paso.visible::before { background: var(--accent-green); border-color: var(--bg-card); box-shadow: 0 0 0 4px rgba(var(--accent-green-rgb), .2); }
  }
  @media (min-width: 1100px) {
    .js.mov-pro .proceso-paso:not(:last-child)::after { transform: scaleX(0); transform-origin: left; transition: transform .9s .45s cubic-bezier(.16, 1, .3, 1); }
    .js.mov-pro .proceso-paso.visible:not(:last-child)::after { transform: scaleX(1); }
  }

  /* Formularios: borde con degradado en movimiento y anillo de foco suave */
  .mov-pro .calc-form, .mov-pro .form { border-color: transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, linear-gradient(120deg, rgba(var(--accent-green-rgb), .75), rgba(var(--accent-yellow-rgb), .75), var(--border), rgba(var(--accent-green-rgb), .75)) border-box;
    background-size: 100% 100%, 100% 100%; }
  .mov-pro .field input, .mov-pro .field textarea, .mov-pro .calc-form select { transition: border-color .25s, box-shadow .25s; }
  .mov-pro .field input:focus, .mov-pro .field textarea:focus, .mov-pro .calc-form select:focus { box-shadow: 0 0 0 5px rgba(var(--accent-green-rgb), .14); }

  /* Llamado final: degradado de marca que fluye y aura de luz */
  .mov-pro .cta { position: relative; overflow: hidden; isolation: isolate; background-color: var(--accent-hover); background-image: none; animation: none; }
  .mov-pro .cta::after { content: ""; position: absolute; z-index: -2; top: 0; bottom: 0; left: 0; width: 260%;
    background: linear-gradient(120deg, var(--text-primary) 0%, var(--accent-hover) 30%, var(--accent-green) 50%, var(--accent-hover) 70%, var(--text-primary) 100%);
    animation: auroraMueve 22s ease-in-out infinite alternate; will-change: transform; }
  .mov-pro .cta::before { content: ""; position: absolute; z-index: -1; width: 60vmax; height: 60vmax; right: -22vmax; top: -30vmax; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-yellow-rgb), .35), transparent 60%); animation: deriva 14s ease-in-out infinite alternate; }
  .mov-pro .cta .btn-dark { background: var(--white); color: var(--text-primary); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
  .mov-pro .cta .btn-dark:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0, 0, 0, .28); }

  /* Botones: onda donde se toca y "hundido" al presionar */
  .mov-pro .btn { position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent; }
  .mov-pro .btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
  .mov-pro .btn-ghost:hover { transform: translateY(-2px); background: rgba(var(--accent-green-rgb), .06); }
  .mov-pro .onda { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .3; transform: scale(0); animation: onda .65s cubic-bezier(.16, 1, .3, 1) forwards; }

  /* WhatsApp: llega desde abajo con rebote y saluda con una burbuja */
  .mov-pro .wa-float { transform: translate3d(0, 90px, 0) scale(.5); transition: opacity .4s, transform .8s cubic-bezier(.34, 1.56, .64, 1); }
  .mov-pro .wa-float.show { transform: none; }
  .mov-pro .wa-float.show:hover { transform: scale(1.08); }
  .mov-pro .wa-burbuja { display: block; position: absolute; right: calc(100% + 12px); top: 50%; padding: 9px 14px; border-radius: 999px;
    background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(var(--overlay-rgb), .18);
    font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none;
    opacity: 0; transform: translate3d(12px, -50%, 0) scale(.92); transform-origin: right center; transition: opacity .35s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
  .mov-pro .wa-float.con-burbuja .wa-burbuja { opacity: 1; transform: translate3d(0, -50%, 0); }

  /* Aire también en las páginas de servicio */
  .mov-pro .pagina-servicio { position: relative; overflow: hidden; }
  .mov-pro .pagina-servicio > .container { position: relative; z-index: 1; }
  .mov-pro .aire-pagina { bottom: auto; height: 640px; z-index: 0;
    -webkit-mask-image: linear-gradient(180deg, var(--text-primary) 55%, transparent); mask-image: linear-gradient(180deg, var(--text-primary) 55%, transparent); }

  /* Fuera de pantalla: todo en pausa */
  .mov-pro .fuera .particula, .mov-pro .fuera path, .mov-pro .hero-brisa.fuera *, .mov-pro .hero-brisa.fuera::before, .mov-pro .hero-brisa.fuera::after,
  .mov-pro .hero-foto.fuera .chip-foto, .mov-pro .hero-foto.fuera .foto-marco img, .mov-pro .hero-foto.fuera .hero-brisa::before, .mov-pro .hero-foto.fuera .hero-brisa::after,
  .mov-pro .franja.fuera .franja-lista, .mov-pro .cta.fuera::before, .mov-pro .cta.fuera::after { animation-play-state: paused; }

  @keyframes revelaLinea { from { opacity: 0; transform: translate3d(0, .55em, 0); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-12% -4% -18% -4%); } }
  @keyframes marcoEntra { from { opacity: 0; transform: scale(1.05); clip-path: inset(16% 10% 16% 10% round 28px); } to { opacity: 1; transform: none; clip-path: inset(0 round 28px); } }
  @keyframes chipEntra { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.6); } to { opacity: 1; transform: none; } }
  @keyframes deriva { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-5vmax, 4vmax, 0) scale(1.12); } }
  @keyframes sopla { 0% { transform: translate3d(-8vw, 0, 0); opacity: 0; } 12% { opacity: .9; } 50% { transform: translate3d(50vw, var(--y), 0); } 88% { opacity: .75; } 100% { transform: translate3d(108vw, 0, 0); opacity: 0; } }
  @keyframes marquesina { to { transform: translate3d(-50%, 0, 0); } }
  @keyframes aparece { from { opacity: 0; } }
  @keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.14); } 100% { transform: scale(1); } }
  @keyframes anillo { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
  @keyframes auroraMueve { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-61.5%, 0, 0); } }
  @keyframes onda { to { transform: scale(2.6); opacity: 0; } }
}
