/* Electrico24Horas — hoja de estilos principal */

:root {
  --navy-900: #081120;
  --navy-800: #0d1f36;
  --navy-700: #14304f;
  --navy-600: #1c3f68;
  --amber-500: #f5a623;
  --amber-400: #ffbe42;
  --amber-050: #fff6e8;
  --green-wa: #25d366;
  --green-wa-dark: #1ebe5d;
  --red-alert: #e8483c;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-200: #e2e6ec;
  --gray-500: #6b7688;
  --gray-600: #545e6f;
  --gray-900: #16202b;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(8, 17, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(8, 17, 32, 0.12);
  --shadow-lg: 0 16px 48px rgba(8, 17, 32, 0.18);
  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 68px; /* espacio para la barra fija mobile */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 800; }
p { margin: 0 0 1em; color: var(--gray-600); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--gray-50); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy p { color: #b9c6da; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 10px;
}
.section-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { font-size: 17px; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--call {
  background: var(--amber-500);
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
}
.btn--call:hover { background: var(--amber-400); }
.btn--whatsapp {
  background: var(--green-wa);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover { background: var(--green-wa-dark); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--ghost:hover { border-color: var(--white); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* Barra de anuncio */
.announce {
  background: var(--navy-900);
  color: var(--amber-400);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--navy-900);
}
.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo__mark svg { width: 22px; height: 22px; color: var(--amber-500); }
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.01em;
}
.nav {
  display: none;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-800);
}
.header__cta { display: flex; align-items: center; gap: 10px; }
.header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy-900);
}
.header__phone svg { width: 20px; height: 20px; color: var(--amber-500); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .header__phone { display: flex; }
}

/* Barra fija mobile */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 16px rgba(8,17,32,0.14);
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px;
  font-weight: 800;
  font-size: 15px;
}
.mobile-bar a svg { width: 20px; height: 20px; }
.mobile-bar .call { background: var(--amber-500); color: var(--navy-900); }
.mobile-bar .wa { background: var(--green-wa); color: var(--white); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* WhatsApp flotante desktop */
.float-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-wa);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.float-wa svg { width: 30px; height: 30px; color: var(--white); }
@media (min-width: 900px) {
  .float-wa { display: flex; }
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(245,166,35,0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  padding: 56px 0 64px;
}
.hero__grid {
  display: grid;
  gap: 36px;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 72, 60, 0.16);
  border: 1px solid rgba(232, 72, 60, 0.4);
  color: #ff8f85;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero__badge svg { width: 15px; height: 15px; }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--amber-500); }
.hero p.lead {
  font-size: 18px;
  color: #cfdaea;
  max-width: 560px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #dbe6f4;
}
.hero__trust-item svg { width: 18px; height: 18px; color: var(--amber-500); flex-shrink: 0; }

.hero__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero__card h3 { font-size: 17px; margin-bottom: 14px; color: var(--white); }
.hero__card ol { display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.hero__card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: #d7e2f0;
  font-weight: 600;
}
.hero__step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--navy-900);
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Breadcrumb (comunas) */
.breadcrumb {
  font-size: 13px;
  color: #b9c6da;
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--amber-400); font-weight: 700; }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* Grid de servicios */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--amber-050);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; color: var(--amber-500); }
.card h3 { font-size: 17.5px; color: var(--navy-900); }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* Pasos cómo trabajamos */
.steps {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
  position: relative;
}
.step { text-align: center; padding: 0 12px; }
.step__num {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--amber-500);
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 17px; color: var(--navy-900); }
.step p { font-size: 14.5px; }

/* Sintomas */
.symptom-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.symptom {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red-alert);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.symptom__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fdecea;
  display: flex;
  align-items: center;
  justify-content: center;
}
.symptom__icon svg { width: 19px; height: 19px; color: var(--red-alert); }
.symptom h4 { font-size: 15px; margin: 0 0 4px; color: var(--navy-900); }
.symptom p { font-size: 13.5px; margin: 0; }

/* Confianza SEC */
.trust-block {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .trust-block { grid-template-columns: 1fr 1fr; }
}
.trust-statement {
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.35;
}
.trust-statement .hi { color: var(--amber-500); }
.trust-list { display: flex; flex-direction: column; gap: 14px; }
.trust-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}
.trust-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--green-wa);
}

/* Cobertura comunas */
.comuna-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.comuna-chip {
  display: block;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 13px 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy-800);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.comuna-chip:hover { border-color: var(--amber-500); color: var(--amber-500); }
.coverage-note {
  text-align: center;
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--gray-600);
}

/* Testimonios */
.testi-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testi {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.testi__stars { color: var(--amber-500); font-size: 15px; margin-bottom: 10px; letter-spacing: 2px; }
.testi p { font-size: 14.5px; color: var(--gray-900); font-style: italic; }
.testi__author { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.testi__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--amber-500);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi__author strong { display: block; font-size: 14px; color: var(--navy-900); }
.testi__author span { font-size: 12.5px; color: var(--gray-500); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  padding: 16px 0;
  color: var(--navy-900);
  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(--amber-500);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding-bottom: 16px; margin: 0; font-size: 14.5px; }

/* CTA final */
.cta-final {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
}
.cta-final h2 { font-size: clamp(22px, 3vw, 30px); }
.cta-final p { color: #cfdaea; max-width: 520px; margin: 0 auto 22px; }
.cta-final__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer {
  background: var(--navy-900);
  color: #9fb0c7;
  padding: 48px 0 100px;
  font-size: 14px;
}
@media (min-width: 900px) { .footer { padding-bottom: 48px; } }
.footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 28px;
}
.footer h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer ul { display: flex; flex-direction: column; gap: 9px; }
.footer a:hover { color: var(--amber-400); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 12.5px;
}

/* Utilidades */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.local-intro {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.local-intro p:last-child { margin-bottom: 0; }
