/* Digital Strategies Granada · móvil primero, sin fuentes ni recursos externos (sin cookies, carga instantánea). */
:root {
  --navy: #0b1f3a;
  --navy-2: #132c50;
  --cyan: #00bcd6;
  --teal: #007a8c; /* cian oscurecido: texto y enlaces sobre blanco con contraste AA */
  --ink: #16202e;
  --muted: #5a6878;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 31, 58, 0.08);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; font-size: 17px; padding-bottom: 76px; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.15; color: var(--navy); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 5.2vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.12s, filter 0.12s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-accent { background: var(--cyan); color: var(--navy); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-big { min-height: 56px; font-size: 1.08rem; padding: 0.8em 1.6em; }
.wa-link { font-size: 0.92rem; color: var(--muted, #667); text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.btn-light-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-light-outline:hover { border-color: #fff; }
.btn-small { min-height: 40px; padding: 0.4em 1em; font-size: 0.95rem; white-space: nowrap; flex: none; }

/* Cabecera */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { border-radius: 9px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 1rem; letter-spacing: 0.02em; }
.brand small { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; }
.brand-light, .brand-light strong { color: #fff; }
.brand-light small { color: #9fb2c8; letter-spacing: 0.04em; text-transform: none; font-size: 0.8rem; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--teal); }

/* Portada */
.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(0, 188, 214, 0.28), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #e8eef5; padding: 48px 0 56px;
}
.hero h1 { color: #fff; }
.hero .hl { color: var(--cyan); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.8em; }
.hero .eyebrow { color: var(--cyan); }
.lead { font-size: 1.12rem; max-width: 40em; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 22px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.92rem; color: #b9c8d8; }
.trust li::before { content: "✓ "; color: var(--cyan); font-weight: 700; }

/* Secciones */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 42em; margin-bottom: 28px; }
.grid3 { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--cyan); border-radius: 2px; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.steps p { margin: 0; color: var(--muted); }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--cyan); font-weight: 800; font-size: 1.1rem; }

/* Precio */
.price { border: 2px solid var(--navy); border-radius: 20px; padding: 24px 20px; max-width: 820px; box-shadow: var(--shadow); }
.price-head { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.price-head p { margin: 0; }
.price-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.price-num { font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 800; color: var(--navy); line-height: 1.1; }
.price-sub { font-size: 0.9rem; color: var(--teal); font-weight: 600; }
.price-plus { font-size: 2rem; color: var(--cyan); font-weight: 300; }
.price-body { display: grid; gap: 8px 32px; }
.price-note { font-size: 0.9rem; color: var(--muted); margin: 6px 0 18px; }
.check { list-style: none; padding: 0; margin: 0 0 18px; }
.check li { padding-left: 1.7em; position: relative; margin-bottom: 0.45em; }
.check li::before { content: ""; position: absolute; left: 0.2em; top: 0.38em; width: 0.5em; height: 0.85em; border: solid var(--teal); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Ejemplos */
.demo-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 18px; box-shadow: var(--shadow); transition: transform 0.15s; }
.demo-card:hover { transform: translateY(-3px); }
.demo-card strong { color: var(--navy); font-size: 1.1rem; }
.demo-kind { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 10px; }
.demo-go { color: var(--teal); font-weight: 700; margin-top: 6px; }
.demo-thumb { display: grid; gap: 7px; padding: 16px; border-radius: 10px; height: 132px; align-content: end; }
.demo-thumb span { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.85); }
.demo-thumb span:nth-child(1) { width: 70%; height: 16px; }
.demo-thumb span:nth-child(2) { width: 50%; }
.demo-thumb span:nth-child(3) { width: 38%; height: 22px; border-radius: 11px; }
.demo-card--agua .demo-thumb { background: linear-gradient(135deg, #0e4c8a, #2a8fd6); }
.demo-card--agua .demo-thumb span:nth-child(3) { background: #ffcf3f; }
.demo-card--luz .demo-thumb { background: linear-gradient(135deg, #1b1b1f, #3a3a44); }
.demo-card--luz .demo-thumb span:nth-child(3) { background: #ffd400; }
.demo-card--pelo .demo-thumb { background: linear-gradient(135deg, #b9786d, #e9c7b9); }
.demo-card--pelo .demo-thumb span:nth-child(3) { background: #3b2a2a; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 0.45em 1em; background: #fff; font-weight: 600; color: var(--navy); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Contacto */
.contact { display: grid; gap: 32px; }
.cta-col { display: grid; gap: 12px; max-width: 420px; }
.form { display: grid; gap: 14px; background: var(--bg-alt); border-radius: 18px; padding: 22px 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 0.75em 0.9em; border: 1px solid #c4ceda; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--teal); outline: 2px solid rgba(0, 188, 214, 0.35); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.form .consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--navy); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #16794a; }
.form-status.err { color: #b3261e; }
.form-info { font-size: 0.78rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* Pie y barra fija */
.footer { background: var(--navy); color: #9fb2c8; padding: 36px 0 28px; font-size: 0.9rem; }
.footer-in { display: grid; gap: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: #fff; }
.footer p { margin: 0; }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(11, 31, 58, 0.08); }

/* Páginas legales */
.legal { padding-top: 36px; padding-bottom: 56px; max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin-bottom: 1em; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal th { width: 34%; color: var(--navy); }
.legal .updated { color: var(--muted); font-size: 0.9rem; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .nav { display: flex; }
  .hero { padding: 88px 0 96px; }
  .cta-row { flex-direction: row; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
  .price { padding: 36px; }
  .price-body { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .form { padding: 28px; }
  .footer-in { grid-template-columns: auto 1fr; align-items: center; }
  .footer nav { justify-content: flex-end; }
  .footer p { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
