/* =============================================================
   DESATASCOS Y FONTANERÍA TORREVIEJA — styles.css
   Sistema visual propio: "Trazo de tubería" — línea técnica animada
   sobre paleta profesional teal/marino + acento de urgencia coral.
   Single file, sectioned. Vanilla CSS, no preprocessor, no build.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #f6f7fb;
  --bg-2:       #eceefa;
  --surface:    #ffffff;
  --deep:       #1e2260;
  --deep-2:     #262c78;
  --ink:        #14172f;
  --ink-soft:   #33375c;
  --ink-mute:   #63678c;
  --accent:     #292e8c;
  --accent-2:   #1c2066;
  --accent-soft:#e8e9f7;
  --urgent:     #ff5a36;
  --urgent-2:   #e0431f;
  --urgent-deep:#b8330f;
  --urgent-soft:#ffe6dd;
  --ok:         #6fa423;
  --ok-soft:    #eef6df;
  --gold:       #d99a2b;
  --line:       rgba(20, 23, 47, 0.13);
  --line-soft:  rgba(20, 23, 47, 0.07);

  --display: "Sora", "Inter Display", -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1220px;
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --topbar-h: 40px;
  --mobile-cta-h: 62px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--topbar-h) + 12px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em;
  font-family: var(--display); color: var(--deep); font-weight: 700;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.1rem; background: var(--deep); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2rem, 1400px); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--urgent); box-shadow: 0 0 0 4px var(--urgent-soft);
}
.eyebrow.is-neutral::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.section { padding-block: clamp(3.2rem, 6.5vw, 6rem); position: relative; }
.section-alt { background: var(--surface); }
.section-deep { background: var(--deep); color: rgba(255,255,255,.86); }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-head { max-width: 620px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { max-width: 660px; margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-mute); font-size: 1.06rem; margin-top: .85rem; }
.section-deep .section-head p { color: rgba(255,255,255,.7); }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border-radius: 100px;
  font-size: .82rem; font-weight: 600; font-family: var(--display);
  background: var(--accent-soft); color: var(--accent-2);
}
.pill.is-urgent { background: var(--urgent-soft); color: var(--urgent-deep); }
.pill.is-ok { background: var(--ok-soft); color: var(--ok); }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.text-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-mute); }
strong { font-weight: 700; color: var(--ink); }
.section-deep strong { color: #fff; }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 100px;
  font-family: var(--display); font-weight: 700; font-size: .98rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-urgent {
  background: var(--urgent); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(255, 90, 54, .55);
}
.btn-urgent:hover { background: var(--urgent-2); transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(255, 90, 54, .65); }
.btn-primary {
  background: var(--deep); color: #fff;
}
.btn-primary:hover { background: var(--deep-2); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--deep); border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.btn-block { width: 100%; }
.btn-sm { padding: .68rem 1.15rem; font-size: .88rem; }

/* =============================================================
   6. Top bar + Nav
   ============================================================= */
.topbar {
  background: var(--deep); color: rgba(255,255,255,.85);
  height: var(--topbar-h); font-size: .82rem; font-weight: 500;
}
.topbar-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar-item { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.topbar-item svg { width: 15px; height: 15px; opacity: .85; flex-shrink: 0; }
.topbar-phone { font-family: var(--mono); font-weight: 600; color: #fff; }
.topbar-left { display: flex; gap: 1.4rem; align-items: center; overflow: hidden; }
.topbar-hide-mobile { display: none; }
@media (min-width: 720px) { .topbar-hide-mobile { display: inline-flex; } }

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 249, 249, .88);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) { .nav { background: var(--bg); } }
.nav.is-scrolled { box-shadow: 0 8px 24px -14px rgba(10,46,54,.25); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 50px; width: auto; display: block; }
@media (min-width: 540px) { .logo img { height: 54px; } }

.nav-links { display: none; align-items: center; gap: 1.9rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  font-family: var(--display); font-weight: 600; font-size: .93rem; color: var(--ink-soft);
  position: relative; padding-block: .3rem;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width .3s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--accent-2); }

.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

.lang-switch {
  display: inline-flex; align-items: center; gap: .15rem; flex-shrink: 0;
  background: var(--bg-2); border-radius: 100px; padding: .18rem;
}
.lang-opt {
  padding: .3rem .55rem; border-radius: 100px;
  font-family: var(--display); font-weight: 700; font-size: .72rem; color: var(--ink-mute);
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
@media (min-width: 720px) {
  .lang-opt { padding: .35rem .7rem; font-size: .78rem; }
}
.lang-opt:hover { color: var(--ink); }
.lang-opt.is-active { background: var(--surface); color: var(--accent-2); box-shadow: 0 3px 8px -3px rgba(20,23,47,.25); }
.lang-switch-mobile { display: none; }
.hamburger {
  width: 44px; height: 44px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
}
@media (min-width: 960px) { .hamburger { display: none; } }
.hamburger span, .hamburger::before, .hamburger::after {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: var(--deep); display: block;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.hamburger.is-open span { opacity: 0; }
.hamburger.is-open::before { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open::after { transform: translateY(-9px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: calc(var(--nav-h) + var(--topbar-h)) 0 0 0; z-index: 55;
  background: var(--bg); overflow-y: auto;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  padding: 1.5rem 0 calc(var(--mobile-cta-h) + 2rem);
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 960px) { .mobile-nav { display: none; } }
.mobile-nav-link {
  display: block; padding: 1rem 0; font-family: var(--display); font-weight: 700;
  font-size: 1.25rem; color: var(--deep); border-bottom: 1px solid var(--line-soft);
}
.mobile-nav-group { margin-top: 1.6rem; }
.mobile-nav-group-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); font-weight: 700; margin-bottom: .4rem; }

/* =============================================================
   7. Hero — línea de tubería animada
   ============================================================= */
.hero {
  position: relative; overflow: clip;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(90% 60% at 85% -10%, rgba(15,143,163,.14), transparent 60%),
    radial-gradient(60% 50% at 5% 100%, rgba(255,90,54,.08), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid; gap: clamp(2.2rem, 5vw, 3rem);
  align-items: center;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.hero-title { max-width: 15ch; }
.hero-title em { font-style: normal; color: var(--accent-2); }
.hero-sub { margin-top: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; }
.hero-trust-item { display: flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.hero-trust-item svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin-inline: auto; }
.hero-visual svg { width: 100%; height: 100%; }
.pipe-path {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 8 10; opacity: .55;
}
.pipe-path.is-solid {
  stroke: var(--deep); stroke-width: 5; stroke-dasharray: none; opacity: 1;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.hero-visual.is-drawn .pipe-path.is-solid { stroke-dashoffset: 0; }
.hero-node { fill: var(--surface); stroke: var(--deep); stroke-width: 4; }
.hero-node.is-urgent { fill: var(--urgent); stroke: var(--urgent); }
.hero-drop { fill: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .hero-visual .pipe-path.is-solid { transition: none; stroke-dashoffset: 0; }
}

/* Foto real en el hero (sustituye/acompaña a la ilustración SVG) */
.hero-visual.has-photo { aspect-ratio: 5 / 4; max-width: 540px; }
.hero-photo-glow {
  position: absolute; inset: -12% -10%; z-index: 0;
  background: radial-gradient(45% 45% at 30% 20%, rgba(41,46,140,.16), transparent 70%),
              radial-gradient(40% 40% at 80% 85%, rgba(148,194,33,.18), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.hero-photo {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; border-radius: 26px;
  box-shadow: 0 30px 60px -20px rgba(20,23,47,.35);
}

/* Banner fotográfico en páginas de servicio / sobre nosotros */
.page-photo-banner {
  border-radius: 24px; overflow: hidden; margin-top: 2.4rem;
  box-shadow: 0 24px 50px -26px rgba(20,23,47,.35);
}
.page-photo-banner img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }

.content-with-photo { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; }
@media (min-width: 960px) { .content-with-photo { grid-template-columns: 1fr 1fr; } }
.content-with-photo.reverse { direction: rtl; }
.content-with-photo.reverse > * { direction: ltr; }
.content-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 24px 50px -26px rgba(20,23,47,.35); }
.content-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =============================================================
   8. Botón flotante multi-acción (chat IA · formulario · llamar · WhatsApp)
   ============================================================= */
.fab-wrap {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: .85rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.fab-toggle {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  background: var(--urgent); color: #fff; position: relative;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(255,90,54,.6);
  transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease-out);
}
.fab-toggle:hover { transform: scale(1.06); }
.fab-toggle svg {
  position: absolute; width: 24px; height: 24px;
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out);
}
.fab-icon-close { opacity: 0; transform: rotate(-45deg); }
.fab-icon-open { opacity: 1; transform: rotate(0deg); }
.fab-wrap.is-open .fab-icon-open { opacity: 0; transform: rotate(45deg); }
.fab-wrap.is-open .fab-icon-close { opacity: 1; transform: rotate(0deg); }
.fab-pulse {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--urgent); opacity: .55;
  animation: fabPulse 2.6s ease-out infinite;
}
.fab-wrap.is-open .fab-pulse { display: none; }
@keyframes fabPulse {
  0% { transform: scale(.9); opacity: .55; }
  80% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fab-pulse { animation: none; opacity: 0; } }

.fab-menu { display: flex; flex-direction: column; align-items: center; gap: .85rem; }
.fab-item {
  pointer-events: none; opacity: 0; transform: translateY(10px) scale(.9);
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  width: 58px;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.fab-wrap.is-open .fab-item { pointer-events: auto; opacity: 1; transform: none; }
.fab-wrap.is-open .fab-item:nth-child(1) { transition-delay: .09s; }
.fab-wrap.is-open .fab-item:nth-child(2) { transition-delay: .06s; }
.fab-wrap.is-open .fab-item:nth-child(3) { transition-delay: .03s; }
.fab-wrap.is-open .fab-item:nth-child(4) { transition-delay: 0s; }
.fab-item-ico {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--surface); color: var(--accent-2);
  border: 1px solid var(--line-soft);
  box-shadow: 0 12px 26px -14px rgba(20,23,47,.4);
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out);
}
.fab-item-ico svg { width: 20px; height: 20px; }
.fab-item:hover .fab-item-ico { transform: scale(1.08); border-color: var(--accent); }
.fab-item.is-chat .fab-item-ico { color: var(--urgent-deep); }
.fab-item.is-wa .fab-item-ico { color: #1a9a4c; }
.fab-item.is-call .fab-item-ico { color: var(--urgent-deep); }
.fab-item-label {
  font-family: var(--display); font-weight: 700; font-size: .72rem; color: var(--ink);
  text-align: center; line-height: 1.1;
  background: var(--surface); padding: .15rem .5rem; border-radius: 8px;
  box-shadow: 0 6px 14px -10px rgba(20,23,47,.35);
}

/* Panel de chat */
.chat-panel {
  position: fixed; right: 1.1rem; bottom: calc(1.1rem + 66px); z-index: 85;
  width: min(360px, calc(100vw - 2.2rem)); max-height: min(70vh, 520px);
  background: var(--surface); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(20,23,47,.5);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.chat-panel-head {
  background: var(--deep); color: #fff; padding: .95rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-shrink: 0;
}
.chat-panel-title { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: .92rem; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.3); flex-shrink: 0; }
.chat-panel-close { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: rgba(255,255,255,.8); }
.chat-panel-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.chat-panel-close svg { width: 17px; height: 17px; }
.chat-panel-body {
  flex: 1; overflow-y: auto; padding: 1rem 1.1rem; min-height: 180px;
  display: flex; flex-direction: column; gap: .65rem; background: var(--bg);
}
.chat-msg { max-width: 86%; padding: .6rem .85rem; border-radius: 14px; font-size: .87rem; line-height: 1.45; }
.chat-msg-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-soft); border-bottom-left-radius: 4px; }
.chat-msg-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg-typing { display: inline-flex; gap: 4px; align-items: center; padding: .2rem 0; }
.chat-msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); animation: chatTyping 1.1s ease-in-out infinite; }
.chat-msg-typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.chat-panel-disclaimer { padding: .5rem 1.1rem; font-size: .72rem; color: var(--ink-mute); background: var(--bg); border-top: 1px solid var(--line-soft); flex-shrink: 0; }
.chat-panel-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line-soft); flex-shrink: 0; background: var(--surface); }
.chat-panel-form input {
  flex: 1; padding: .7rem 1rem; border-radius: 100px; border: 1.5px solid var(--line);
  font: inherit; font-size: .88rem; background: var(--bg); color: var(--ink);
}
.chat-panel-form input:focus { outline: none; border-color: var(--accent); }
.chat-panel-form button {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: var(--urgent); color: #fff;
  display: grid; place-items: center; transition: background .25s var(--ease-out);
}
.chat-panel-form button:hover { background: var(--urgent-2); }
.chat-panel-form button svg { width: 18px; height: 18px; }
.chat-panel-form button:disabled { opacity: .5; pointer-events: none; }

@media (max-width: 539px) {
  .fab-wrap { right: .8rem; bottom: .8rem; }
  .chat-panel { right: .8rem; left: .8rem; width: auto; bottom: calc(.8rem + 66px); }
}

/* =============================================================
   9. Cards — servicios
   ============================================================= */
.grid-services {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.card-service {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.7rem; display: flex; flex-direction: column; gap: .9rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.card-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(10,46,54,.3);
  border-color: var(--accent);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2); flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; }
.card-service h3 { font-size: 1.15rem; }
.card-service p { color: var(--ink-mute); font-size: .95rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 700; font-size: .88rem; color: var(--accent-2); }
.card-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.card-service:hover .card-link svg { transform: translateX(3px); }

/* =============================================================
   10. Zonas strip
   ============================================================= */
.grid-zones {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.zone-chip {
  display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-soft);
  font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--ink-soft);
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.zone-chip svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.zone-chip:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

/* =============================================================
   11. Precios
   ============================================================= */
.price-table { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--line-soft);
}
.price-row:last-child { border-bottom: none; }
.price-row.is-highlight { background: var(--accent-soft); }
.price-name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.price-desc { color: var(--ink-mute); font-size: .86rem; margin-top: .15rem; }
.price-value { font-family: var(--mono); font-weight: 700; font-size: 1.15rem; color: var(--accent-2); white-space: nowrap; }
.price-note {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--deep); color: rgba(255,255,255,.85);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-top: 1.5rem;
}
.price-note svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: .1rem; }

/* =============================================================
   12. Trust strip / stats
   ============================================================= */
.trust-strip {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.trust-card {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.3rem; border-radius: var(--radius-sm);
}
.trust-card svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; margin-top: .1rem; }
.trust-card h4 { font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--ink); margin-bottom: .25rem; }
.trust-card p { font-size: .87rem; color: var(--ink-mute); }
.section-deep .trust-card svg { color: var(--gold); }
.section-deep .trust-card h4 { color: #fff; }
.section-deep .trust-card p { color: rgba(255,255,255,.68); }

/* =============================================================
   13. FAQ accordion
   ============================================================= */
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; text-align: left; font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--ink);
}
.faq-q svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; transition: transform .3s var(--ease-out); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.faq-a-inner { padding: 0 1.3rem 1.2rem; color: var(--ink-mute); font-size: .94rem; max-width: 68ch; }
.faq-item.is-open .faq-a { max-height: 420px; }

/* =============================================================
   14. Testimonios / reseñas (estado honesto)
   ============================================================= */
.reviews-empty {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem); text-align: center; background: var(--surface);
}
.reviews-empty svg { width: 40px; height: 40px; color: var(--accent); margin-inline: auto; margin-bottom: 1rem; }
.reviews-empty h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.reviews-empty p { color: var(--ink-mute); max-width: 52ch; margin-inline: auto; }

.testimonial-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.testimonial-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.5rem; }
.testimonial-stars { display: flex; gap: .15rem; margin-bottom: .8rem; }
.testimonial-stars svg { width: 16px; height: 16px; color: var(--gold); }
.testimonial-card p.quote { font-size: .95rem; color: var(--ink-soft); }
.testimonial-name { margin-top: 1rem; font-family: var(--display); font-weight: 700; font-size: .88rem; color: var(--ink); }

/* =============================================================
   15. CTA final
   ============================================================= */
.cta-final {
  border-radius: 28px; padding: clamp(2.2rem, 6vw, 4rem);
  background: linear-gradient(135deg, var(--deep) 0%, var(--accent-2) 100%);
  color: #fff; text-align: center; position: relative; overflow: clip;
}
.cta-final::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none;
}
.cta-final h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-final p { color: rgba(255,255,255,.78); margin-top: .9rem; max-width: 50ch; margin-inline: auto; }
.cta-final .hero-actions { justify-content: center; margin-top: 1.8rem; }

/* =============================================================
   16. Formulario de contacto
   ============================================================= */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-family: var(--display); font-weight: 600; font-size: .85rem; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font: inherit; font-size: .95rem; background: var(--surface); color: var(--ink);
  transition: border-color .25s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field.span-2 { grid-column: 1 / -1; }
.form-note { font-size: .82rem; color: var(--ink-mute); margin-top: .8rem; }
.form-success {
  display: none; align-items: center; gap: .7rem; padding: 1rem 1.2rem;
  background: var(--ok-soft); color: var(--ok); border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { background: var(--deep); color: rgba(255,255,255,.68); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 959px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 539px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; margin-bottom: .9rem; }
.footer-brand img { height: 40px; width: auto; display: block; }
.footer p.desc { font-size: .88rem; max-width: 32ch; }
.footer-col-title { font-family: var(--display); font-weight: 700; font-size: .82rem; color: #fff; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { font-size: .9rem; transition: color .25s var(--ease-out); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .82rem;
}
.footer-bottom-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: #fff; }
.footer-credits { font-size: .76rem; margin-top: .6rem; color: rgba(255,255,255,.45); }
.footer-credits a { text-decoration: underline; }

/* =============================================================
   18. Page header (páginas interiores)
   ============================================================= */
.page-hero {
  padding-block: clamp(2.6rem, 6vw, 4.2rem) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .84rem; color: var(--ink-mute); margin-bottom: 1.1rem; }
.breadcrumbs a { color: var(--accent-2); font-weight: 600; }
.page-hero h1 { max-width: 20ch; }
.page-hero .text-lead { margin-top: 1rem; max-width: 60ch; }
.page-hero .hero-actions { margin-top: 1.6rem; }

/* =============================================================
   19. Reveal on scroll (IntersectionObserver-driven)
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =============================================================
   20. Legal / blog / creditos (contenido largo)
   ============================================================= */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; margin-bottom: .8rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.6rem; margin-bottom: .6rem; font-size: 1.1rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); }
.prose ul { margin: 0 0 1.2rem; padding-left: 1.2rem; list-style: disc; }
.prose li { margin-bottom: .5rem; color: var(--ink-soft); }
.prose a { color: var(--accent-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.credits-list { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.5rem; }
.credits-list li { font-size: .88rem; color: var(--ink-mute); padding-bottom: .8rem; border-bottom: 1px solid var(--line-soft); }
.credits-list a { color: var(--accent-2); font-weight: 600; }

/* =============================================================
   21. Responsive breakpoints reference
   Mobile default (<540px), then:
   540 / 720 / 960 / 1280 / 1600
   ============================================================= */
@media (min-width: 540px) { }
@media (min-width: 720px) { }
@media (min-width: 960px) { }
@media (min-width: 1280px) { .hero-grid { gap: 4rem; } }
