@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap");

:root {
  --ink: #101820;
  --ink-soft: #3a4654;
  --muted: #6b7684;
  --line: #d8dee6;
  --soft: #eef1f5;
  --paper: #ffffff;
  --bg: #f4f6f8;
  --volt: #f0b429;
  --volt-soft: #fff3d1;
  --volt-deep: #c48a00;
  --spark: #ffc53d;
  --navy: #0f4c81;
  --navy-deep: #0a355c;
  --navy-soft: #d7e7f5;
  --salt: #f7fafc;
  --charcoal: #0c1218;
  --grid: rgba(240, 180, 41, 0.08);
  --shop: #0f766e;
  --shop-deep: #115e59;
  --shop-soft: #ccfbf1;
  --copper: #c2410c;
  --copper-soft: #ffedd5;
  --ok: #15803d;
  --danger: #be123c;
  --mint: var(--volt);
  --mint-soft: var(--volt-soft);
  --mint-deep: var(--navy-deep);
  --sky: var(--navy);
  --sun: var(--spark);
  --sun-soft: var(--volt-soft);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(16, 24, 32, 0.08);
  --shadow-hover: 0 14px 36px rgba(16, 24, 32, 0.14);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  background:
    linear-gradient(180deg, #ebeff3 0%, var(--bg) 28%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }

.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;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--charcoal) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-bar {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem 0.75rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
  white-space: nowrap;
}
.brand span { color: var(--volt); }
.brand:hover { color: #fff; }

.lang-switch {
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 0.12rem;
  margin-left: 0.15rem;
  min-width: 0;
}
.lang-switch a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.38rem;
  border-radius: 6px;
  white-space: nowrap;
}
.lang-switch a.is-active,
.lang-switch a:hover {
  color: var(--charcoal);
  background: var(--volt);
}

.nav-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  padding: 1rem 1.25rem 1.25rem;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav.is-open { display: flex; }
.nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.2rem;
}
.nav a.is-active,
.nav a:hover { color: var(--volt); }
.nav a.cta {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--volt);
  color: var(--charcoal);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-weight: 800;
}
.nav a.cta.cta-wa {
  background: #25d366;
  color: #063b1f;
}
.nav a.cta.cta-wa:hover { filter: brightness(1.06); color: #063b1f; }
.nav a.cta .icon-wa { flex: 0 0 auto; display: block; }
.nav a.cta:hover { filter: brightness(1.05); color: var(--charcoal); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-bar { gap: 0.75rem 1rem; }
  .brand { font-size: 1.35rem; }
  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    gap: 1.1rem;
  }
  .nav a.cta {
    margin-top: 0;
    padding: 0.55rem 0.95rem;
  }
  .lang-switch {
    order: 2;
    margin-left: 0.35rem;
    gap: 0.25rem;
  }
  .lang-switch a {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.45rem;
  }
}

/* ——— Hero (one composition) ——— */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 70% at 75% 20%, rgba(240, 180, 41, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(15, 76, 129, 0.45), transparent 50%),
    linear-gradient(145deg, #0a1016 0%, #152433 48%, #0f1c2a 100%);
  min-height: min(78vh, 620px);
  display: flex;
  align-items: flex-end;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2.25rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand-hero {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #fff;
  animation: riseIn 0.7s ease both;
}
.brand-hero span { color: var(--volt); }

.hero h1 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 28ch;
  animation: riseIn 0.7s ease 0.08s both;
}

.hero > .hero-inner > p,
.hero-lead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  animation: riseIn 0.7s ease 0.14s both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-desk {
  margin-top: 1.6rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  animation: riseIn 0.7s ease 0.2s both;
  color: var(--ink);
}
.search-desk-grid {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 860px) {
  .search-desk-grid {
    grid-template-columns: 1.5fr 1fr auto;
    align-items: end;
  }
}
.search-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-field input,
.search-field select {
  width: 100%;
  min-height: 3.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--salt);
  color: var(--ink);
  padding: 0 0.95rem;
  font: inherit;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-field input:focus,
.search-field select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}
.search-field-suggest { position: relative; }
.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: min(50vh, 280px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.16);
}
.search-suggest[hidden] { display: none !important; }
.search-suggest li {
  margin: 0;
}
.search-suggest button {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.search-suggest button:hover,
.search-suggest button.is-active {
  background: var(--soft);
  color: var(--navy-deep);
}
.search-suggest .suggest-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.search-desk .btn-primary {
  min-height: 3.1rem;
  width: 100%;
  padding-inline: 1.4rem;
}
@media (min-width: 860px) {
  .search-desk .btn-primary { width: auto; }
}

.type-segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.type-segment button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 10px;
  min-height: 2.6rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.type-segment button.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--volt);
}
.type-segment button[data-type-filter="autonomo"].is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.type-segment button[data-type-filter="empresa"].is-active {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--charcoal);
}

.btn-urgencias {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.65rem;
  min-height: 2.85rem;
  border: 1px solid var(--danger);
  border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 12%, #fff);
  color: var(--danger);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-urgencias .urgencias-extra {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.85;
  text-transform: lowercase;
}
.btn-urgencias:hover {
  box-shadow: 0 4px 14px color-mix(in srgb, var(--danger) 28%, transparent);
}
.btn-urgencias.is-active {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-urgencias.is-active .urgencias-extra {
  opacity: 0.95;
}
.icon-24h {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.12rem 0.42rem 0.12rem 0.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--danger) 12%, #fff);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.icon-24h-svg { flex: 0 0 auto; display: block; }
.icon-24h-text { text-transform: lowercase; }

.search-panel {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  animation: riseIn 0.7s ease 0.2s both;
}
.search-panel select {
  flex: 1 1 220px;
  min-height: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 0.9rem;
  font: inherit;
  font-weight: 600;
}
.search-panel select option { color: var(--ink); background: #fff; }

.trust-row {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 600;
}
.trust-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--volt);
  margin-right: 0.4rem;
  vertical-align: 0.1rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  padding: 0.85rem 1.2rem;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--volt);
  color: var(--charcoal);
}
.btn-primary:hover { filter: brightness(1.06); color: var(--charcoal); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
}
.btn-call {
  background: #7dd3fc;
  color: #0c4a6e;
  border: 1px solid color-mix(in srgb, #0284c7 35%, transparent);
}
.btn-call:hover { filter: brightness(1.05); color: #0c4a6e; }
.btn-email { background: var(--soft); color: var(--ink); }
.btn-wa {
  background: #25d366;
  color: #063b1f;
  border: 1px solid color-mix(in srgb, #128c7e 45%, transparent);
}
.btn-wa:hover { filter: brightness(1.05); color: #063b1f; }
.btn-contact-mask {
  min-width: min(100%, 17.5rem);
  justify-content: flex-start;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.01em;
  padding: 0.7rem 0.9rem;
  border-style: dashed;
  opacity: 0.92;
}
.btn-contact-mask .contact-step {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(12, 18, 24, 0.12);
  color: inherit;
}
.btn-contact-mask .contact-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  min-width: 0;
}
.btn-contact-mask .contact-k {
  opacity: 1;
  font-size: 0.72em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: inherit;
}
.btn-contact-mask .contact-v {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: inherit;
  opacity: 0.85;
}
.btn-contact-mask .contact-hint {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: inherit;
  opacity: 0.9;
}
.btn-contact-mask.is-revealed {
  border-style: solid;
  opacity: 1;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.35),
    0 8px 20px rgba(12, 18, 24, 0.18);
  animation: contact-ready-pulse 1.4s ease-out 1;
}
.btn-contact-mask.is-revealed .contact-step {
  background: rgba(12, 18, 24, 0.2);
}
.btn-contact-mask.is-revealed .contact-v {
  letter-spacing: 0.02em;
  opacity: 1;
  font-size: 1.02em;
}
.btn-call.btn-contact-mask.is-revealed {
  background: #38bdf8;
  filter: brightness(1.04);
}
.btn-wa.btn-contact-mask.is-revealed {
  background: #22c55e;
  filter: brightness(1.04);
}
@keyframes contact-ready-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.contact-wa-box {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(12, 18, 24, 0.12);
}
.contact-wa-intro { margin: 0 0 0.75rem; font-weight: 600; }
.contact-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-weight: 800;
}
.contact-wa-btn .icon-wa { flex: 0 0 auto; }

/* ——— Sections ——— */
.section { padding: 2.25rem 0; }
.section-head { margin-bottom: 1.15rem; }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

.filter-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.filter-bar label { font-weight: 700; font-size: 0.85rem; }
.filter-bar select {
  min-height: 2.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--salt);
  padding: 0 0.75rem;
  font: inherit;
  font-weight: 600;
}
.filter-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--salt);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
a.chip { color: var(--ink-soft); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--volt);
}

.type-toggle {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}
.type-toggle button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.type-toggle button.is-active[data-type-filter="autonomo"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.type-toggle button.is-active[data-type-filter="empresa"] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--volt);
}
.type-toggle button.is-active[data-type-filter="todos"] {
  background: var(--soft);
  border-color: var(--ink);
  color: var(--ink);
}

/* ——— Cards / listing ——— */
.listing-grid,
.featured-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .listing-grid,
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .listing-grid,
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Crawlable fallback replaced by JS cards when directorio.js loads */
.seo-fallback-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr;
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .seo-fallback-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .seo-fallback-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.seo-fallback-list li {
  margin: 0;
  padding: 0.65rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.35;
}
.seo-fallback-list a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.seo-fallback-list a:hover {
  color: var(--volt-ink, #b45309);
  text-decoration: underline;
}

.card-electricista {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(16, 24, 32, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card-electricista:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--volt) 45%, var(--line));
}
.card-electricista.is-featured {
  border-color: color-mix(in srgb, var(--volt) 55%, var(--line));
}
.card-electricista.is-autonomo { border-left: 3px solid var(--navy); }
.card-electricista.is-empresa { border-left: 3px solid var(--volt-deep); }
.card-electricista.is-tienda { border-left: 3px solid var(--shop); }
.card-electricista.is-tienda .avatar {
  background: var(--shop-soft);
  color: var(--shop-deep);
}

.card-electricista .body { padding: 0.75rem 0.85rem 0.8rem; }
.card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.avatar {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
}
.card-electricista.is-empresa .avatar {
  background: var(--volt-soft);
  color: var(--volt-deep);
}
.card-main { min-width: 0; flex: 1; }
.card-link {
  text-decoration: none;
  color: inherit;
}
.card-main h3 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.card-main h3 a:hover { color: var(--navy); }
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.meta {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.card-contacts {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
.contact-line {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.3;
  min-width: 0;
}
.contact-line:hover { color: var(--navy-deep); }
.contact-k {
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 4.2rem;
}
.contact-v {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-wa .contact-v { color: #0f766e; }
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}
.card-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.card-contacts + .card-footer-row {
  margin-top: 0.45rem;
}
.btn-card-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.7rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 7px;
  background: var(--volt);
  color: var(--charcoal);
  white-space: nowrap;
  transition: filter 0.15s ease;
}
.btn-card-enter:hover {
  filter: brightness(1.06);
  color: var(--charcoal);
}
.btn-card-enter::after {
  content: " →";
}
.card-avail-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-left: 0.15rem;
  pointer-events: none;
  user-select: none;
}
.card-avail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--muted);
  opacity: 0.78;
  cursor: default;
}
.card-avail-icon--wa {
  color: #128c7e;
  opacity: 0.85;
}
.card-avail-icon svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}
.card-footer-row .btn-fav {
  margin: 0;
  margin-left: auto;
}
.btn-fav {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.7rem 0.34rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease;
}
.btn-fav-icon {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  transition: fill 0.18s ease, stroke 0.18s ease, transform 0.18s ease;
}
.btn-fav:hover {
  border-color: color-mix(in srgb, var(--volt) 55%, var(--line));
  background: var(--volt-soft);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-fav:hover .btn-fav-icon {
  transform: scale(1.06);
}
.btn-fav.is-on {
  border-color: color-mix(in srgb, var(--volt) 70%, var(--line));
  background: var(--volt-soft);
  color: var(--volt-deep);
}
.btn-fav.is-on .btn-fav-icon {
  fill: var(--volt);
  stroke: var(--volt-deep);
}
.btn-fav.is-on:hover {
  background: color-mix(in srgb, var(--volt) 28%, #fff);
  color: var(--navy-deep);
}
@media (max-width: 420px) {
  .btn-fav-label {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.badge-destacado,
.badge-type,
.badge-lang {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
}
.badge-destacado { background: var(--volt); color: var(--charcoal); }
.badge-type-autonomo { background: var(--navy-soft); color: var(--navy-deep); }
.badge-type-empresa { background: var(--volt-soft); color: var(--volt-deep); }
.badge-type-tienda { background: var(--shop-soft); color: var(--shop-deep); }
.badge-lang { background: var(--soft); color: var(--ink-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.45rem; }
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--soft);
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.2;
}
.rating-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08rem 0.32rem;
  color: var(--ink-soft);
}
.stars { color: var(--volt-deep); letter-spacing: -0.06em; font-size: 0.95em; }
.star-empty { color: #d0d5dc; }
.star-half { opacity: 0.75; }
.rating-score { font-weight: 800; color: var(--ink); }
.rating-count { color: var(--muted); font-size: 0.75rem; }
a.rating-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
  border-radius: 6px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
a.rating-link:hover,
a.rating-link:focus-visible {
  background: rgba(240, 180, 41, 0.12);
  box-shadow: 0 0 0 2px rgba(240, 180, 41, 0.28);
  outline: none;
}
a.rating-link:hover .stars,
a.rating-link:focus-visible .stars {
  filter: brightness(1.05);
}
.card-electricista .rating { margin-top: 0.3rem; }

/* Profile fichas: more prominent Google rating */
#perfil-rating {
  margin: 0.65rem 0 0.15rem;
}
.rating--perfil {
  gap: 0.45rem 0.55rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.25;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}
.rating--perfil .rating-badge {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: #fff;
  border-color: transparent;
  color: #1a73e8;
}
.rating--perfil .stars {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--volt);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.rating--perfil .star-empty {
  color: rgba(255, 255, 255, 0.28);
}
.rating--perfil .rating-score {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.rating--perfil .rating-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}
a.rating--perfil:hover,
a.rating--perfil:focus-visible {
  background: rgba(240, 180, 41, 0.18);
  box-shadow: 0 0 0 2px rgba(240, 180, 41, 0.45), 0 8px 22px rgba(0, 0, 0, 0.22);
}

.layout-split {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .layout-split {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 1rem); }
.side-card {
  margin-top: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.side-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* ——— Ads ——— */
.ad-slot { margin: 1.25rem 0; }
.listing-grid > .ad-slot--listing {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0.15rem;
}
.ad-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.ad-frame {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}
.ad-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: #0c1218;
}
.ad-slot--hero .ad-frame,
.ad-slot--mid .ad-frame,
.ad-slot--footer .ad-frame,
.ad-slot--listing .ad-frame {
  position: relative;
  aspect-ratio: 1200 / 320;
  background: #0c1218;
}
.ad-slot--hero .ad-frame { aspect-ratio: 1200 / 360; }
.ad-slot--footer .ad-frame { aspect-ratio: 1200 / 280; }
.ad-slot--hero .ad-frame img,
.ad-slot--mid .ad-frame img,
.ad-slot--footer .ad-frame img,
.ad-slot--listing .ad-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
.ad-slot--side .ad-frame {
  position: relative;
  aspect-ratio: 360 / 400;
}
.ad-slot--side .ad-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

/* Promo strip banners — thin on desktop, taller on mobile */
.ad-frame.ad-promo {
  aspect-ratio: auto !important;
  min-height: 0;
  height: 4.25rem;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0 0.85rem 0 0;
  text-decoration: none;
  color: inherit;
  background: #0c1218;
  overflow: hidden;
  border: 0;
  box-shadow: 0 8px 22px rgba(12, 18, 24, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ad-frame.ad-promo:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(12, 18, 24, 0.24);
}
.ad-slot--mid .ad-frame.ad-promo,
.ad-slot--footer .ad-frame.ad-promo,
.ad-slot--listing .ad-frame.ad-promo,
.ad-slot--hero .ad-frame.ad-promo {
  aspect-ratio: auto;
}
.ad-frame.ad-promo .ad-promo-media {
  position: relative;
  width: 4.75rem;
  height: 4.25rem;
  min-width: 4.75rem;
  min-height: 4.25rem;
  overflow: hidden;
  background: #0c1218;
  border-radius: 0;
  isolation: isolate;
}
.ad-frame.ad-promo .ad-promo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 55%, rgba(12, 18, 24, 0.55) 100%);
}
.ad-frame.ad-promo .ad-promo-bg,
.ad-slot--mid .ad-frame.ad-promo .ad-promo-bg,
.ad-slot--footer .ad-frame.ad-promo .ad-promo-bg,
.ad-slot--listing .ad-frame.ad-promo .ad-promo-bg,
.ad-slot--hero .ad-frame.ad-promo .ad-promo-bg,
.ad-slot--side .ad-frame.ad-promo .ad-promo-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}
.ad-frame.ad-promo .ad-promo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.2rem 0;
  background: transparent;
  color: #fff;
  min-width: 0;
}
.ad-promo-kicker {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--volt);
  line-height: 1.1;
}
.ad-promo-title {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 2vw, 1.18rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-promo-sub {
  font-size: clamp(0.72rem, 1.5vw, 0.84rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  background: var(--volt);
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.ad-promo--cta {
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  height: 4.25rem;
  padding: 0 0.85rem 0 0;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(240, 180, 41, 0.28), transparent 55%),
    linear-gradient(145deg, #0c1218, #0a355c 70%, #152433);
}
.ad-promo--cta .ad-promo-copy {
  min-height: 0;
  background: transparent;
}
.ad-promo--cta .ad-promo-media {
  display: block;
}
.ad-promo--cta .ad-promo-media::after {
  background: linear-gradient(90deg, transparent 40%, rgba(12, 18, 24, 0.7) 100%);
}
.ad-promo--fernandez {
  background: linear-gradient(90deg, #0a2f2d 0%, #0f766e 58%, #134e4a 100%);
}
.ad-promo--fernandez .ad-promo-media::after {
  background: linear-gradient(90deg, transparent 45%, rgba(10, 47, 45, 0.65) 100%);
}
.ad-promo--fernandez .ad-promo-kicker { color: #99f6e4; }
.ad-promo--fernandez .ad-promo-cta {
  background: #99f6e4;
  color: #064e3b;
}
.ad-promo--ag {
  background: linear-gradient(90deg, #0c1218 0%, #1a2430 55%, #243140 100%);
}
.ad-promo--ag .ad-promo-kicker { color: #f0b429; }
.ad-promo--pitiusas {
  background: linear-gradient(90deg, #12253f 0%, #1d4f91 58%, #0f3d6e 100%);
}
.ad-promo--pitiusas .ad-promo-media::after {
  background: linear-gradient(90deg, transparent 45%, rgba(18, 37, 63, 0.65) 100%);
}
.ad-promo--pitiusas .ad-promo-kicker { color: #93c5fd; }
.ad-promo--pitiusas .ad-promo-cta {
  background: #93c5fd;
  color: #0c4a6e;
}
.ad-promo--vaqueta {
  background: linear-gradient(90deg, #2c1508 0%, #9a3412 58%, #7c2d12 100%);
}
.ad-promo--vaqueta .ad-promo-media::after {
  background: linear-gradient(90deg, transparent 45%, rgba(44, 21, 8, 0.65) 100%);
}
.ad-promo--vaqueta .ad-promo-kicker { color: #fdba74; }
.ad-promo--vaqueta .ad-promo-cta {
  background: #fdba74;
  color: #7c2d12;
}
.ad-slot--side .ad-frame.ad-promo--side {
  aspect-ratio: auto !important;
  grid-template-columns: 1fr;
  height: auto;
  padding: 0;
  gap: 0;
  align-items: stretch;
}
.ad-slot--side .ad-frame.ad-promo--side .ad-promo-media {
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
}
.ad-slot--side .ad-frame.ad-promo--side .ad-promo-media::after {
  background: linear-gradient(180deg, transparent 55%, rgba(12, 18, 24, 0.45) 100%);
}
.ad-slot--side .ad-frame.ad-promo--side .ad-promo-copy {
  padding: 0.65rem 0.85rem 0.2rem;
}
.ad-slot--side .ad-frame.ad-promo--side .ad-promo-cta {
  margin: 0.35rem 0.85rem 0.85rem;
  align-self: stretch;
  width: calc(100% - 1.7rem);
  border-radius: 10px;
}
.ad-slot--side .ad-frame.ad-promo--side .ad-promo-title,
.ad-slot--side .ad-frame.ad-promo--side .ad-promo-sub {
  white-space: normal;
}

@media (max-width: 720px) {
  .ad-slot--hero .ad-frame,
  .ad-slot--mid .ad-frame,
  .ad-slot--footer .ad-frame,
  .ad-slot--listing .ad-frame {
    aspect-ratio: auto;
  }
  .ad-slot--hero .ad-frame:not(.ad-promo) img,
  .ad-slot--mid .ad-frame:not(.ad-promo) img,
  .ad-slot--footer .ad-frame:not(.ad-promo) img,
  .ad-slot--listing .ad-frame:not(.ad-promo) img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: 11rem;
    object-fit: cover;
  }
  .ad-frame.ad-promo {
    grid-template-columns: 7rem minmax(0, 1fr) auto;
    height: 7rem;
    gap: 0.7rem;
    padding-right: 0.65rem;
  }
  .ad-frame.ad-promo .ad-promo-media {
    width: 7rem;
    height: 7rem;
    min-width: 7rem;
    min-height: 7rem;
  }
  .ad-frame.ad-promo .ad-promo-media::after {
    background: linear-gradient(90deg, transparent 40%, rgba(12, 18, 24, 0.72) 100%);
  }
  .ad-frame.ad-promo .ad-promo-copy {
    padding: 0.45rem 0;
    gap: 0.16rem;
  }
  .ad-promo-kicker {
    font-size: 0.6rem;
    letter-spacing: 0.11em;
  }
  .ad-promo-title {
    font-size: 1.08rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ad-promo-sub {
    font-size: 0.8rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ad-promo-cta {
    padding: 0.58rem 0.78rem;
    font-size: 0.74rem;
    border-radius: 999px;
  }
  .ad-promo--cta {
    height: 7rem;
    padding: 0 0.65rem 0 0;
    grid-template-columns: 7rem minmax(0, 1fr) auto;
  }
  .ad-promo--cta .ad-promo-title {
    font-size: 1.02rem;
    white-space: normal;
  }
  .ad-promo--cta .ad-promo-sub {
    display: -webkit-box;
  }
}

/* ——— SEO block ——— */
.seo-block {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.seo-block p { color: var(--ink-soft); max-width: 52rem; }

.prose-seo {
  max-width: 48rem;
}
.prose-seo h2,
.prose-seo h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prose-seo h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}
.prose-seo h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
}
.prose-seo p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: none;
}
.prose-seo strong { color: var(--ink); font-weight: 800; }
.prose-seo u {
  text-decoration-color: color-mix(in srgb, var(--volt) 70%, var(--navy));
  text-underline-offset: 3px;
}
.prose-seo a {
  font-weight: 700;
  text-underline-offset: 3px;
}
.seo-muni-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}
.seo-muni-list a {
  font-weight: 700;
  color: var(--navy);
}
.seo-muni-list a:hover { color: var(--navy-deep); }

.card-seo {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}
.card-seo a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.card-seo a:hover { text-decoration: underline; }
.card-seo strong { color: var(--ink-soft); }

.perfil-seo-links {
  display: inline;
  color: rgba(255, 255, 255, 0.78);
}
.perfil-seo-links a {
  color: var(--volt);
  font-weight: 700;
}
.perfil-hero .perfil-seo-links a:hover { color: #fff; }
a.tag {
  text-decoration: none;
  color: inherit;
}
a.tag:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ——— Profile back navigation ——— */
.perfil-back-top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  position: sticky;
  top: var(--header-h);
  z-index: 40;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
}
.btn-back:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--volt);
}
.btn-back-solid {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--charcoal);
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-back-solid:hover {
  filter: brightness(1.05);
  background: var(--volt);
  color: var(--charcoal);
}
.perfil-back-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(12, 18, 24, 0.55) 35%, rgba(12, 18, 24, 0.88));
  pointer-events: none;
}
.perfil-back-bar .btn-back {
  pointer-events: auto;
}
body:has(.perfil-back-bar) {
  padding-bottom: 4.75rem;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: 2rem;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0 1.5rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--volt); }
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
}
.footer-copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-trust {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-trust-label {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.footer-trust-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: stretch;
}
.footer-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 7.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.footer-trust-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(240, 180, 41, 0.55);
  color: #fff;
  transform: translateY(-1px);
}
.footer-trust-item img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.footer-trust-item span {
  font-size: 0.75rem;
  font-weight: 650;
  text-align: center;
  line-height: 1.2;
}
.footer-trust-item--creator {
  border-color: rgba(240, 180, 41, 0.35);
  background: rgba(240, 180, 41, 0.08);
}
.footer-copy a {
  color: var(--volt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}
.faq-item {
  background: var(--paper, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink, #111);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--volt, #f0b429);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0.65rem 0 0;
  color: rgba(16, 24, 32, 0.78);
  line-height: 1.55;
}

/* Visible breadcrumbs on landings */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.page-hero .crumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.page-hero .crumbs a:hover { color: var(--volt); }
.crumbs-sep { opacity: 0.5; }

/* ——— Profile pages ——— */
.perfil-hero .icon-24h {
  margin: 0.35rem 0 0.55rem;
  vertical-align: middle;
}
.perfil-hero {
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(240, 180, 41, 0.18), transparent 50%),
    linear-gradient(160deg, #0c1218, #152433);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.perfil-hero h1 {
  margin: 0.4rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}
.perfil-hero .meta a,
.perfil-hero-tienda .meta a { color: rgba(255, 255, 255, 0.55); }
.perfil-hero #perfil-resumen,
.perfil-hero-tienda #perfil-resumen { color: rgba(255, 255, 255, 0.72); max-width: 40rem; }
.perfil-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.perfil-meta-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .perfil-meta-grid { grid-template-columns: repeat(3, 1fr); }
}
.perfil-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.perfil-block h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

/* Autónomo / empresa profile layouts */
.perfil-autonomo-layout,
.perfil-tienda-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 780px) {
  .perfil-autonomo-layout {
    grid-template-columns: 160px 1fr;
    gap: 1.75rem;
  }
  .perfil-tienda-layout {
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 1.75rem;
  }
}
.perfil-avatar {
  width: min(100%, 160px);
}
.perfil-avatar img,
.perfil-tienda-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.perfil-directo,
.perfil-tienda-note {
  margin: 0.75rem 0 0;
  color: var(--volt);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Tiendas: same dark hero language as electricistas */
.perfil-hero-tienda {
  background:
    radial-gradient(ellipse 70% 60% at 10% 0%, rgba(15, 118, 110, 0.28), transparent 50%),
    linear-gradient(160deg, #0c1218, #13252c);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.perfil-hero-tienda h1 {
  margin: 0.4rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}
.perfil-hero-tienda .perfil-tienda-dir,
.perfil-hero-tienda .meta {
  color: rgba(255, 255, 255, 0.55);
}
.perfil-map {
  min-height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--soft);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tags .tag,
.tags a,
.tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.contact-box {
  max-width: 34rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.contact-box label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0.75rem 0 0.35rem;
}
.contact-box input,
.contact-box textarea,
.contact-box select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: var(--salt);
}

/* ——— Forms / contact ——— */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.form-card label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0.75rem 0 0.35rem;
}
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: var(--salt);
}

/* ——— Page hero (inner pages) ——— */
.page-hero {
  background:
    linear-gradient(145deg, #0a1016 0%, #152433 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.page-hero h1 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.page-hero p {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  max-width: 36rem;
}
.page-hero .eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
}

/* icon helpers kept for compatibility */
.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
}
.icon-lg { width: 1.55em; height: 1.55em; }
.icon-btn { width: 1.05em; height: 1.05em; margin-right: 0.25rem; }
.icon-chip { width: 1em; height: 1em; margin-right: 0.28rem; }
.icon-title { width: 1.35em; height: 1.35em; margin-right: 0.4rem; vertical-align: -0.28em; }
.icon-bolt { color: var(--volt-deep); }
.icon-on-dark { color: var(--volt); }
.icon-muted { color: var(--navy); opacity: 0.9; }
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: var(--volt-soft);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
