/* ==========================================================================
   Edison — Servicios Técnicos
   Hoja de estilos compartida por las 4 landing pages de servicios.
   ========================================================================== */

:root {
  --ink: #1c2127;
  --ink-soft: #4b5563;
  --paper: #faf9f7;
  --paper-alt: #f0eeea;
  --line: #e2e0da;
  --brand: #1e3a5f;
  --brand-dark: #142944;
  --accent: #0d9488; /* se sobreescribe por página con .theme-* */
  --accent-ink: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 33, 39, 0.06), 0 8px 24px -12px rgba(28, 33, 39, 0.18);
  --max: 1120px;
}

.theme-linea-blanca   { --accent: #0d7d6f; }
.theme-electricidad   { --accent: #b3730b; }
.theme-soldadura      { --accent: #c2410c; }
.theme-motos          { --accent: #9d2235; }
.theme-inicio         { --accent: #1e3a5f; }

/* ---------- Grid de servicios (home) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.service-card:hover { border-color: var(--card-accent, var(--accent)); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card .thumb { position: relative; aspect-ratio: 16/9; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.service-card .thumb .tint { position: absolute; inset: 0; background: color-mix(in srgb, var(--card-accent, var(--accent)) 55%, transparent); mix-blend-mode: multiply; }
.service-card .thumb .icon-badge {
  position: absolute;
  left: 16px;
  bottom: -20px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--card-accent, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.service-card .thumb .icon-badge svg { width: 24px; height: 24px; }
.service-card .body { padding: 30px 22px 22px; }
.service-card h3 { font-size: 18px; margin-bottom: 6px; }
.service-card p { font-size: 14px; margin-bottom: 14px; }
.service-card .go {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--card-accent, var(--accent));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .go svg { width: 15px; height: 15px; transition: transform .12s ease; }
.service-card:hover .go svg { transform: translateX(3px); }

@media (max-width: 720px) {
  .service-grid { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { margin: 0; padding: 0; list-style: none; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.section-brand { background: var(--brand); color: #fff; }
.section-brand p { color: #cbd5e1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-alt); }
.btn-on-dark { background: #fff; color: var(--brand-dark); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--brand-dark);
  min-width: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .02em;
  white-space: normal;
}
@media (max-width: 520px) {
  .brand small { display: none; }
}

.main-nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}
.main-nav a:hover { background: var(--paper-alt); color: var(--ink); }
.main-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .header-actions .btn-primary span.long { display: none; }
  .main-nav {
    position: fixed;
    inset: 64px 12px auto 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, #fff, var(--paper) 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(32px, 4vw, 46px); color: var(--brand-dark); }
.hero .lead { font-size: 17px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 28px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.trust-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-media .frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.hero-media .tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--brand) 65%, transparent));
  mix-blend-mode: multiply;
}
.hero-media .caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  background: rgba(20, 41, 68, .78);
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(2px);
}
.badge-float {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
}
.badge-float .num { font-size: 22px; font-weight: 800; color: var(--brand-dark); }
.badge-float .txt { font-size: 11.5px; color: var(--ink-soft); line-height: 1.3; max-width: 12ch; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .badge-float { left: 12px; bottom: -14px; padding: 10px 12px; }
}

/* ---------- Grid de servicios ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 16.5px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step { position: relative; padding-left: 4px; }
.step .n {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; }
.step p { font-size: 14px; margin-bottom: 0; }

/* ---------- Franja de cobertura ---------- */
.coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.coverage .item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.coverage .item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.coverage h4 { margin: 0 0 4px; font-size: 15px; color: #fff; }
.coverage p { font-size: 13.5px; margin: 0; color: #cbd5e1; }

/* ---------- Dos columnas (bloques de texto pareados) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Por qué trabajar conmigo ---------- */
.why-list { display: grid; gap: 16px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.why-item h4 { margin: 0 0 3px; font-size: 15.5px; }
.why-item p { margin: 0; font-size: 14px; }

/* ---------- Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.gallery-grid .tint { position: absolute; inset: 0; background: color-mix(in srgb, var(--accent) 45%, transparent); mix-blend-mode: multiply; }
.gallery-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.gallery-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq p { padding-bottom: 16px; margin: 0; font-size: 14.5px; }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 18px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-final h2 { margin: 0 0 6px; font-size: 26px; }
.cta-final p { color: #cbd5e1; margin: 0; }
.cta-final .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Otros servicios (footer nav) ---------- */
.other-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.other-services a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  background: #fff;
  transition: border-color .12s ease, transform .12s ease;
}
.other-services a:hover { border-color: var(--accent); transform: translateY(-2px); }
.other-services .tag {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  color: var(--accent);
}
.other-services strong { display: block; font-size: 15.5px; margin-top: 4px; color: var(--brand-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer-grid p, .footer-grid a { font-size: 13.5px; color: #a9b6c6; text-decoration: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  font-size: 12.5px;
  color: #7d8ba0;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  background: #1e3a5f;
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.wa-float svg { width: 26px; height: 26px; }

@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .cta-final { padding: 32px; }
}
