/* =========================================================
   HD Solar Ingeniería — Hoja de estilos
   Colores tomados del logo: azul marino + naranja sol
   ========================================================= */
:root {
  --navy: #0f2c5c;
  --navy-2: #163b78;
  --navy-dark: #0a1f42;
  --sun: #f39a1e;
  --sun-dark: #d9820b;
  --sun-soft: #fff4e3;
  --green: #1f9d55;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --text: #1d2939;
  --muted: #5b6b80;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 44, 92, .08);
  --shadow-lg: 0 20px 50px rgba(15, 44, 92, .16);
  --header-h: 72px;
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; display: inline-block; vertical-align: -0.15em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-family: var(--font-head);
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s, border-color .2s;
  border: 2px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sun); color: #fff; box-shadow: 0 8px 20px rgba(243, 154, 30, .35); }
.btn-primary:hover { background: var(--sun-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-link { color: #fff; padding-left: .4rem; padding-right: .4rem; }
.btn-link:hover { color: var(--sun); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.8); font-size: .82rem; display: none; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-links { display: flex; gap: 1.5rem; }
.topbar a:hover { color: var(--sun); }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.scrolled { box-shadow: 0 6px 20px rgba(15,44,92,.08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.brand-text small { font-size: .72rem; font-weight: 600; color: var(--sun); text-transform: uppercase; letter-spacing: 2.5px; }
.brand-light strong { color: #fff; }
.brand-light img { background: #fff; border-radius: 10px; padding: 3px; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a:not(.btn) { font-family: var(--font-head); font-weight: 500; font-size: .93rem; color: var(--text); padding: .5rem .75rem; border-radius: 8px; position: relative; transition: color .2s; }
.nav a:not(.btn):hover, .nav a.active { color: var(--sun-dark); }
.nav a.active::after { content: ''; position: absolute; left: .75rem; right: .75rem; bottom: .15rem; height: 2px; background: var(--sun); border-radius: 2px; }
.nav-cta { margin-left: .6rem; padding: .65rem 1.1rem; font-size: .88rem; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: var(--bg-alt); }
.menu-toggle span { width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(10,31,66,.95) 0%, rgba(15,44,92,.85) 45%, rgba(15,44,92,.45) 100%),
    url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1600&q=75') center/cover no-repeat;
  padding: 5.5rem 0 8.5rem;
}
.hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(243,154,30,.45), rgba(243,154,30,0) 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1200px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(243,154,30,.16); border: 1px solid rgba(243,154,30,.5); color: #ffd394; padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1.4rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; max-width: 760px; letter-spacing: -.5px; margin-bottom: 1.2rem; }
.hero h1 .hl { color: var(--sun); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 620px; color: rgba(255,255,255,.88); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .9rem; color: rgba(255,255,255,.9); }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .ico { color: var(--sun); }

/* ---------- Propuesta de valor ---------- */
.value { position: relative; z-index: 2; margin-top: -4.5rem; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.value-card { background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem; border-bottom: 4px solid var(--sun); transition: transform .3s; }
.value-card:hover { transform: translateY(-4px); }
.value-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--sun-soft); color: var(--sun-dark); display: grid; place-items: center; flex-shrink: 0; }
.value-ico svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.02rem; margin-bottom: .15rem; }
.value-card p { font-size: .88rem; color: var(--muted); line-height: 1.4; }

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(160deg, var(--navy-dark), var(--navy) 60%, var(--navy-2)); color: rgba(255,255,255,.85); }
.section-dark h2, .section-dark h3 { color: #fff; }
.kicker { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; color: var(--sun-dark); margin-bottom: .6rem; }
.section-dark .kicker { color: var(--sun); }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; letter-spacing: -.3px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.light p { color: rgba(255,255,255,.75); }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; margin-bottom: 4rem; }
.about-media { position: relative; }
.about-img { aspect-ratio: 4/3.4; border-radius: 22px; background: linear-gradient(0deg, rgba(15,44,92,.15), rgba(15,44,92,.15)), url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=900&q=70') 30% center/cover, var(--navy); box-shadow: var(--shadow-lg); }
.about-media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--sun); border-radius: 22px; z-index: -1; }
.about-badge { position: absolute; left: -10px; bottom: 28px; background: var(--navy); color: #fff; border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow-lg); max-width: 200px; }
.about-badge strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--sun); line-height: 1; }
.about-badge span { font-size: .85rem; }
.lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 1.8rem; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mv-card { background: var(--bg-alt); border-radius: var(--radius); padding: 1.3rem; border-left: 4px solid var(--sun); }
.mv-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.mv-card h3 .ico { color: var(--sun-dark); }
.mv-card p { font-size: .92rem; color: var(--muted); }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .3s, box-shadow .3s, border-color .3s; }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.why-ico { width: 50px; height: 50px; border-radius: 12px; background: var(--navy); color: var(--sun); display: grid; place-items: center; margin-bottom: 1rem; }
.why-ico svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.why-card p { font-size: .92rem; color: var(--muted); }
.why-card strong { color: var(--text); }

/* ---------- Cifras ---------- */
.stats { background: var(--sun); color: #fff; padding: 2.8rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; color: var(--navy-dark); }
.stat span { font-size: .92rem; font-weight: 500; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card { position: relative; text-align: left; background: #fff; border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; align-items: flex-start; }
.service-card::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--sun), var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-num { position: absolute; right: 1.4rem; top: 1rem; font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--bg-alt); line-height: 1; }
.service-ico { width: 58px; height: 58px; border-radius: 16px; background: var(--sun-soft); color: var(--sun-dark); display: grid; place-items: center; margin-bottom: 1.2rem; transition: background .3s, color .3s; }
.service-card:hover .service-ico { background: var(--navy); color: var(--sun); }
.service-ico svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.service-card p { font-size: .95rem; color: var(--muted); flex-grow: 1; }
.more { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--sun-dark); font-weight: 600; font-size: .9rem; font-family: var(--font-head); }
.service-card:hover .more .ico { transform: translateX(4px); }
.more .ico { transition: transform .2s; }

/* ---------- Sistemas ---------- */
.systems-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: stretch; }
.system-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.system-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.system-card.featured { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.85); box-shadow: var(--shadow-lg); }
.system-card.featured h3 { color: #fff; }
.ribbon { position: absolute; top: -12px; right: 1.2rem; background: var(--sun); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; font-family: var(--font-head); }
.system-top { margin-bottom: 1rem; }
.system-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--sun-soft); color: var(--sun-dark); display: grid; place-items: center; margin-bottom: 1rem; }
.featured .system-ico { background: rgba(243,154,30,.18); color: var(--sun); }
.system-ico svg { width: 28px; height: 28px; }
.system-card h3 { font-size: 1.35rem; }
.tag { display: inline-block; margin-top: .4rem; font-size: .78rem; font-weight: 600; color: var(--green); background: #e6f6ed; padding: .2rem .65rem; border-radius: 999px; }
.featured .tag { background: rgba(255,255,255,.12); color: #8ff0b6; }
.system-card > p { font-size: .93rem; color: var(--muted); margin-bottom: 1rem; }
.featured > p { color: rgba(255,255,255,.8); }
.checks { margin-bottom: 1.5rem; flex-grow: 1; }
.checks li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; margin-bottom: .5rem; }
.checks .ico { color: var(--green); margin-top: .2rem; }
.featured .checks .ico { color: var(--sun); }

/* ---------- Equipos ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.product { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.8rem 1rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .3s, transform .3s, border-color .3s; }
.product svg { width: 42px; height: 42px; color: var(--sun); }
.product span { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 1rem; }
.product small { font-size: .8rem; color: rgba(255,255,255,.6); display: inline-flex; gap: .3rem; }
.product:hover { background: rgba(255,255,255,.12); border-color: var(--sun); transform: translateY(-4px); }
.product:hover small { color: var(--sun); }

/* ---------- Calculadora ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: start; }
.calc-intro > p { color: var(--muted); font-size: 1.05rem; }
.calc-steps { margin: 1.8rem 0; display: grid; gap: .9rem; }
.calc-steps li { display: flex; align-items: center; gap: .9rem; font-weight: 500; }
.calc-steps span { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--sun); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.note { font-size: .8rem; color: var(--muted); }
.calc-card { background: #fff; border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); border-top: 5px solid var(--sun); }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .4rem; }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 16px; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2c5c' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(243,154,30,.15); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { color: #d63b3b; font-size: .88rem; font-weight: 500; min-height: 0; margin-bottom: .6rem; }
.form-error:empty { display: none; }

.result { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--line); animation: fadeUp .45s ease; }
.result h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: .4rem 0 .8rem; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.result-grid > div { background: var(--bg-alt); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.result-grid .wide { grid-column: 1 / -1; }
.result-grid small { display: block; font-size: .78rem; color: var(--muted); }
.result-grid strong { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.result-grid .money { background: #e6f6ed; }
.result-grid .money strong { color: var(--green); }
.result .note { margin-bottom: 1rem; }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; position: relative; }
.process::before { content: ''; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--sun) 0 10px, transparent 10px 18px); }
.process li { position: relative; text-align: center; padding: 0 .5rem; }
.step { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; margin: 0 auto 1.1rem; position: relative; box-shadow: 0 0 0 8px #fff; }
.process h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.process p { font-size: .92rem; color: var(--muted); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--navy); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .9rem; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(10,31,66,.9)); }

/* ---------- Cobertura ---------- */
.coverage-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
.coverage-grid > div > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.regions { display: flex; flex-wrap: wrap; gap: .7rem; }
.regions li { display: inline-flex; align-items: center; gap: .45rem; background: var(--sun-soft); color: var(--navy); font-weight: 600; padding: .6rem 1.1rem; border-radius: 999px; }
.regions .ico { color: var(--sun-dark); }
.map { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/11; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.contact-grid > div > p { font-size: 1.05rem; margin-bottom: 1.8rem; }
.contact-list { display: grid; gap: .9rem; }
.contact-list > * { display: flex; align-items: center; gap: 1rem; color: #fff; font-weight: 500; word-break: break-word; }
.contact-list small { display: block; font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 400; }
.c-ico { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--sun); display: grid; place-items: center; flex-shrink: 0; transition: background .2s; }
.c-ico svg { width: 22px; height: 22px; }
.c-ico.wa { background: var(--wa); color: #fff; }
.contact-list a:hover .c-ico:not(.wa) { background: var(--sun); color: #fff; }
.contact-form { background: #fff; border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); color: var(--text); }
.contact-form h3 { color: var(--navy) !important; font-size: 1.35rem; margin-bottom: 1.2rem; }

/* ---------- Footer ---------- */
.footer { background: #071630; color: rgba(255,255,255,.7); padding-top: 4rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand p { margin-top: 1rem; max-width: 300px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer li { margin-bottom: .55rem; word-break: break-word; }
.footer a:hover { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0 1.3rem; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: var(--sun); font-weight: 600; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(7,22,48,.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn .25s ease; }
.modal-box { position: relative; background: #fff; width: 100%; max-width: 580px; max-height: 88vh; overflow-y: auto; border-radius: 20px; padding: 2.2rem 2rem 1.8rem; border-top: 5px solid var(--sun); animation: fadeUp .3s ease; }
.modal-close { position: absolute; top: .8rem; right: .9rem; width: 40px; height: 40px; border-radius: 50%; font-size: 1.6rem; line-height: 1; color: var(--muted); background: var(--bg-alt); }
.modal-close:hover { background: var(--sun); color: #fff; }
.modal-box h3 { font-size: 1.45rem; margin-bottom: 1rem; padding-right: 2.5rem; }
.modal-body { color: var(--muted); margin-bottom: 1.5rem; }
.modal-body ul { margin-top: .8rem; display: grid; gap: .6rem; }
.modal-body li { position: relative; padding-left: 1.6rem; }
.modal-body li::before { content: ''; position: absolute; left: 0; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.modal-body strong { color: var(--text); }
body.no-scroll { overflow: hidden; }

/* ---------- Flotantes ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); animation: pulse 2s infinite; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; }
.to-top { position: fixed; right: 27px; bottom: 92px; z-index: 999; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Animaciones ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 1100px) { .topbar { display: block; } }

@media (max-width: 1100px) {
  .nav a:not(.btn) { padding: .5rem .5rem; font-size: .88rem; }
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 1rem 20px 2rem; overflow-y: auto;
    opacity: 0; transform: translateY(-12px); pointer-events: none; visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav a:not(.btn) { padding: 1rem .25rem; font-size: 1.08rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.active::after { display: none; }
  .nav-cta { margin: 1.4rem 0 0; padding: 1rem; font-size: 1rem; }

  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .calc-grid, .coverage-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media { max-width: 560px; margin: 0 auto; width: calc(100% - 18px); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.2rem; }
  .process::before { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .brand img { height: 40px; }
  .brand-text strong { font-size: 1.15rem; }
  .brand-text small { font-size: .65rem; letter-spacing: 2px; }

  .hero { padding: 3.2rem 0 6.5rem; background-position: 65% center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: .5rem; }

  .value { margin-top: -3.5rem; }
  .value-grid { grid-template-columns: 1fr; gap: .8rem; }
  .value-card { padding: 1.1rem; }

  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.2rem; }
  .about-grid { margin-bottom: 3rem; }
  .about-badge { left: -6px; bottom: 16px; padding: .8rem 1rem; max-width: 170px; }
  .about-badge strong { font-size: 1.6rem; }
  .mv-grid, .why-grid, .services-grid, .systems-grid { grid-template-columns: 1fr; }
  .systems-grid { gap: 1.6rem; }
  .products-grid { gap: .7rem; }
  .product { padding: 1.3rem .6rem; }
  .product svg { width: 34px; height: 34px; }
  .product span { font-size: .9rem; }

  .stats { padding: 2.2rem 0; }
  .stat span { font-size: .82rem; display: block; }

  .calc-card, .contact-form { padding: 1.5rem 1.2rem; border-radius: 16px; }
  .result-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .result-grid > div { padding: .7rem .8rem; }
  .result-grid strong { font-size: .95rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .process { grid-template-columns: 1fr; text-align: left; gap: 1.5rem; }
  .process li { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; text-align: left; padding: 0; }
  .process .step { grid-row: span 2; margin: 0; box-shadow: none; }
  .process h3 { align-self: end; margin-bottom: .15rem; }
  .gallery { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4/3.6; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer { padding-bottom: 70px; }

  .modal { align-items: flex-end; padding: 0; }
  .modal-box { border-radius: 20px 20px 0 0; max-height: 90vh; padding: 2rem 1.3rem 1.5rem; }

  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .to-top { right: 21px; bottom: 84px; width: 44px; height: 44px; }
}
