/* ==========================================================
   EzStech Solutions — Landing page
   Colores de marca: edita las variables de :root
   ========================================================== */

/* Fuentes alojadas en el propio sitio (licencia SIL Open Font License), subconjunto latino */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800-latin.woff2") format("woff2"); }

:root {
  --bg: #070f1f;
  --bg-alt: #0b1730;
  --surface: #0f1e3d;
  --surface-2: #142850;
  --border: rgba(120, 170, 255, 0.14);
  --text: #e8eefc;
  --muted: #9aabc9;
  --primary: #1f6fe0;      /* azul de marca (logo: #035CC6), aclarado para fondo oscuro */
  --primary-2: #4ea8ff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --header-h: 72px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  box-shadow: 0 10px 25px -10px rgba(31, 111, 224, .7);
}
.btn-outline { border-color: var(--border); background: rgba(255,255,255,.03); }
.btn-outline:hover { border-color: var(--primary); }
.btn-whatsapp { background: var(--whatsapp); color: #062b14; box-shadow: 0 10px 25px -10px rgba(37,211,102,.7); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(7, 15, 31, .85); backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; }
.logo img { height: 52px; width: auto; }
.footer-brand .logo img { height: 64px; }

.nav-menu { display: flex; align-items: center; gap: 1.8rem; }
.nav-menu a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-menu a:not(.btn):hover, .nav-menu a.active { color: var(--text); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.glow-1 { width: 520px; height: 520px; background: var(--primary); top: -160px; right: -120px; }
.glow-2 { width: 420px; height: 420px; background: #1a3cff; bottom: -200px; left: -160px; opacity: .3; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,170,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
  background: rgba(31,111,224,.12); border: 1px solid var(--border); color: #bcd4ff; font-size: .85rem; font-weight: 500;
  margin-bottom: 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(37,211,102,.2); }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; }
.hero-tagline { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--primary-2); margin: 0 0 .6rem; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 2.4rem; }
.hero-stats { display: flex; gap: 2.2rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-visual { position: relative; }
.hero-img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 50%;
  border-radius: 24px; box-shadow: var(--shadow), 0 0 80px -20px rgba(31,111,224,.45); border: 1px solid var(--border);
  background: var(--surface);
}
.floating-card {
  position: absolute; display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.1rem; border-radius: 14px; background: rgba(15,30,61,.9); backdrop-filter: blur(10px);
  border: 1px solid var(--border); box-shadow: var(--shadow); animation: float 5s ease-in-out infinite;
}
.floating-card .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(31,111,224,.18); color: var(--primary-2); }
.floating-card strong { display: block; font-size: .9rem; }
.floating-card span { color: var(--muted); font-size: .78rem; }
.fc-1 { left: -28px; top: 36px; }
.fc-2 { right: -20px; bottom: -26px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Placeholders de imagen ---------- */
.img-slot {
  position: relative; overflow: hidden; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(120,170,255,.04) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; color: #6f86b3; font-size: .78rem; text-align: center; padding: 1rem;
  border: 2px dashed rgba(120,170,255,.18); border-radius: inherit;
}
.img-slot .ph svg { width: 40px; height: 40px; opacity: .8; }
.img-slot .ph code { background: rgba(0,0,0,.25); padding: .15rem .45rem; border-radius: 6px; color: #9fb7e6; word-break: break-all; }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary-2); margin-bottom: .8rem;
}
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Servicios ---------- */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.service-card { flex: 0 1 calc((100% - 48px) / 3); }
.service-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(31,111,224,.5); box-shadow: 0 25px 50px -25px rgba(31,111,224,.5); }
.service-card .img-slot { aspect-ratio: 16 / 10; height: auto; }
.service-card .img-slot .ph { border-radius: 0; border-width: 0 0 2px; }
.service-body { position: relative; padding: 36px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-icon {
  position: absolute; top: -26px; left: 24px; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 25px -8px rgba(31,111,224,.8);
}
.service-icon .icon { width: 24px; height: 24px; }
.service-body h3 { font-size: 1.15rem; }
.service-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.service-link { color: var(--primary-2); font-weight: 600; font-size: .92rem; }
.service-link span { display: inline-block; transition: transform .2s; }
.service-link:hover span { transform: translateX(4px); }

/* ---------- Por qué elegirnos ---------- */
.why { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.why-intro p { color: var(--muted); margin-bottom: 1.8rem; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s; }
.why-card:hover { border-color: rgba(31,111,224,.5); }
.why-card .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(31,111,224,.14); color: var(--primary-2); margin-bottom: 1rem; }
.why-card h3 { font-size: 1.05rem; }
.why-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Cómo trabajamos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 30px 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s; }
.step:hover { border-color: rgba(31,111,224,.5); }
.step-num {
  position: absolute; top: 18px; right: 20px; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(78,168,255,.35);
}
.step .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; margin-bottom: 1rem; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Zonas de servicio ---------- */
.zones { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.zones-intro h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.zones-intro p { color: var(--muted); }
.zones-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.zone-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.zone-card .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(31,111,224,.14); color: var(--primary-2); margin-bottom: .8rem; }
.zone-card h3 { font-size: 1.05rem; margin-bottom: .35em; }
.zone-card p { color: var(--muted); font-size: .88rem; margin: 0; }
.zone-global {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  background: linear-gradient(135deg, rgba(31,111,224,.22), rgba(78,168,255,.08)); border-color: rgba(78,168,255,.4);
}
.zone-global .icon { grid-row: span 2; margin: 0; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.gallery-item .img-slot { transition: transform .5s; }
.gallery-item:hover .img-slot { transform: scale(1.04); }
.gallery-item .img-slot .ph { border: 0; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .icon { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--primary-2); }
.contact-list span { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a, .contact-list p { font-weight: 600; margin: 0; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.contact-list .maps-link { display: inline-block; margin-top: .45rem; color: var(--primary-2); font-size: .88rem; }
.contact-list .maps-link:hover { text-decoration: underline; }
.contact-list a:hover { color: var(--primary-2); }

.contact-form { padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm); font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31,111,224,.18); }
.field .invalid { border-color: #ff6b6b; }
.form-error { color: #ff8a8a; font-size: .88rem; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 24px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.footer-brand p { color: var(--muted); margin: .8rem 0 0; font-size: .92rem; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: .2s; }
.footer-social a:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { color: var(--muted); font-size: .85rem; margin: 0; }
.footer-bottom a { color: var(--primary-2); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Página legal ---------- */
.legal { padding: calc(var(--header-h) + 48px) 0 88px; }
.legal-inner { max-width: 820px; }
.legal-back { display: inline-block; color: var(--primary-2); font-weight: 600; font-size: .92rem; margin-bottom: 1.6rem; }
.legal-back:hover { text-decoration: underline; }
.legal-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal-meta { color: var(--muted); font-size: .9rem; }
.legal-toc { margin: 2rem 0 2.6rem; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.legal-toc strong { font-family: var(--font-head); }
.legal-toc ol { margin: .7rem 0 0; padding-left: 1.3rem; columns: 2; column-gap: 32px; }
.legal-toc li { margin: .25rem 0; break-inside: avoid; }
.legal-toc a { color: var(--muted); }
.legal-toc a:hover { color: var(--primary-2); }
.legal section { padding-top: 1.6rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.legal section p, .legal section li { color: #c3cfe6; }
.legal section ul { padding-left: 1.2rem; }
.legal section li { margin: .45rem 0; }
.legal section strong { color: var(--text); }
.legal section a { color: var(--primary-2); }
.legal-data { list-style: none; padding: 0 !important; margin: 1rem 0; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.legal-data li { display: grid; grid-template-columns: 180px 1fr; gap: 12px; margin: 0 !important; padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--text) !important; word-break: break-word; }
.legal-data li:last-child { border-bottom: 0; }
.legal-data span { color: var(--muted); font-size: .88rem; }
.footer-bottom .js-cookie-settings { margin-left: .3rem; }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 2147483647; max-width: 440px;
  padding: 18px 20px; border-radius: var(--radius); background: rgba(15,30,61,.97); backdrop-filter: blur(10px);
  border: 1px solid rgba(78,168,255,.35); box-shadow: var(--shadow); animation: cookie-in .35s ease;
}
.cookie-banner p { color: #c3cfe6; font-size: .88rem; margin: 0 0 14px; }
.cookie-banner a { color: var(--primary-2); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }

.form-legal { color: var(--muted); font-size: .8rem; text-align: center; margin: .9rem 0 0; }
.form-legal a { color: var(--primary-2); text-decoration: underline; }

/* ---------- Reseñas en Google ---------- */
.review-cta {
  margin-top: 56px; display: flex; align-items: center; gap: 28px; padding: 28px 32px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(31,111,224,.22), rgba(78,168,255,.06)); border: 1px solid rgba(78,168,255,.35);
}
.review-stars { font-size: 1.6rem; letter-spacing: 2px; color: #fbbc04; white-space: nowrap; }
.review-text { flex: 1; }
.review-text h3 { font-size: 1.2rem; margin-bottom: .3em; }
.review-text p { color: var(--muted); margin: 0; font-size: .95rem; }
.review-cta .btn { flex-shrink: 0; }
.review-cta .icon { color: #fbbc04; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.review-card {
  margin: 0; padding: 28px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  position: relative;
}
.review-card::before {
  content: "“"; position: absolute; top: 4px; right: 22px; font-family: var(--font-head); font-size: 5rem; line-height: 1;
  color: rgba(78,168,255,.15);
}
.review-card-stars { color: #fbbc04; font-size: 1.15rem; letter-spacing: 2px; margin-bottom: .8rem; }
.review-card blockquote { margin: 0 0 1.2rem; font-size: 1.08rem; line-height: 1.6; color: var(--text); }
.review-card figcaption { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-family: var(--font-head); font-weight: 700;
}
.review-card strong { display: block; font-size: .95rem; }
.review-card small { color: var(--muted); font-size: .82rem; }
.reviews-more { text-align: center; margin: 1.4rem 0 0; }
.reviews-more a { color: var(--primary-2); font-weight: 600; font-size: .95rem; }
.reviews-more a:hover { text-decoration: underline; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s; }
.faq-item[open] { border-color: rgba(78,168,255,.4); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(78,168,255,.12); color: var(--primary-2); font-size: 1.2rem; line-height: 1; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--primary-2); }
.faq-item summary:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); line-height: 1.65; }

/* ---------- WhatsApp flotante ---------- */
/* bottom alto para no quedar debajo de la etiqueta "Powered by Netlify" (64px) */
.wa-float {
  position: fixed; right: 22px; bottom: 88px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--whatsapp); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .2s;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp);
  animation: pulse 2.2s ease-out infinite; z-index: -1;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-tooltip {
  position: absolute; right: 72px; white-space: nowrap; padding: .45rem .8rem; border-radius: 8px;
  background: #fff; color: #0b1730; font-weight: 600; font-size: .85rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(8px); transition: .25s; pointer-events: none;
}
.wa-tooltip::after {
  content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px;
  background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 2px;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: none; }

/* En celulares y tabletas (sin mouse) la burbuja se ve siempre */
@media (hover: none) and (pointer: coarse) {
  .wa-tooltip { opacity: 1; transform: none; animation: wa-bubble-in .4s ease .8s both; }
}
@keyframes wa-bubble-in { from { opacity: 0; transform: translateX(8px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .service-card { flex-basis: calc((100% - 24px) / 2); }
  .why { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .zones { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-tall { grid-row: span 1; }
  .gallery-item:last-child { grid-column: span 2; }
}

@media (max-width: 860px) {
  .review-cta { flex-direction: column; text-align: center; padding: 26px 22px; gap: 14px; }
  .review-cta .btn { width: 100%; white-space: normal; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 20px; background: rgba(7,15,31,.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .35s ease;
  }
  .nav-menu.open { transform: none; }
  .nav-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-menu .btn { margin-top: 14px; }
  .header.menu-open { background: rgba(7,15,31,.97); }

  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .fc-1 { left: 8px; top: -20px; }
  .fc-2 { right: 8px; bottom: -20px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 76px 0; }
}

@media (max-width: 600px) {
  .why-grid, .steps, .zones-grid { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .cookie-actions .btn { flex: 1; }
  .legal-data li { grid-template-columns: 1fr; gap: 2px; }
  .service-card { flex-basis: 100%; }
  .gallery { grid-auto-rows: 160px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 1.4rem; }
  .contact-form { padding: 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .floating-card { padding: .65rem .85rem; }
  .floating-card .icon { width: 30px; height: 30px; padding: 6px; }
  .wa-float { right: 16px; bottom: 84px; width: 56px; height: 56px; }
  .wa-tooltip { right: 68px; }
}
