/* =========================================================================
   AVERÍAS24 — Hoja de estilos
   ========================================================================= */
:root {
  --navy-950: #0a0f1e;
  --navy-900: #0f1729;
  --navy-800: #16213a;
  --navy-700: #1e2b48;
  --navy-600: #2a3a5c;
  --amber-400: #fbbf24;
  --amber-500: #f5a623;
  --amber-600: #dd8c0a;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --ink: #101828;
  --ink-soft: #475467;
  --paper: #ffffff;
  --paper-soft: #f7f8fb;
  --paper-mute: #eef1f6;
  --border: #e3e7ef;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 15, 30, 0.20);
  --container: 1180px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--paper-soft); }
.section-dark { background: var(--navy-950); color: #e9edf5; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-600);
  background: rgba(245, 166, 35, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-dark .eyebrow { color: var(--amber-400); background: rgba(251, 191, 36, 0.14); }

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }
.section-dark .section-head p { color: #aeb8cc; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-call {
  background: var(--amber-500);
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(245, 166, 35, 0.35);
}
.btn-call:hover { background: var(--amber-400); box-shadow: 0 14px 30px rgba(245, 166, 35, 0.45); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45); }
.btn-outline {
  background: transparent;
  color: #e9edf5;
  border: 1.5px solid rgba(233, 237, 245, 0.35);
}
.btn-outline:hover { background: rgba(233, 237, 245, 0.08); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---- Cabecera ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,30,0.75), rgba(10,15,30,0));
  z-index: -1;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.site-header.is-scrolled::before { opacity: 0; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand .bolt {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--amber-500);
  border-radius: 10px;
  color: var(--navy-950);
}
.brand .bolt svg { width: 20px; height: 20px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--amber-400); letter-spacing: 0.04em; }

.primary-nav ul { display: flex; align-items: center; gap: 30px; }
.primary-nav a {
  color: #dbe1ee;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.primary-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.header-phone svg { width: 18px; height: 18px; color: var(--amber-400); }

.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 8px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; color: #fff; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 168px 0 110px;
  background:
    radial-gradient(1100px 550px at 85% -10%, rgba(245,166,35,0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(37,99,235,0.12), transparent 55%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-950));
  color: #fff;
  overflow: hidden;
}
.hero::after {
  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: 46px 46px;
  mask-image: radial-gradient(circle at 75% 20%, black, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #dbe1ee;
}
.hero-badge svg { width: 15px; height: 15px; color: var(--amber-400); }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--amber-400); }
.hero-lead {
  margin-top: 20px;
  font-size: 18px;
  color: #c4cce0;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.hero-meta div { display: flex; align-items: center; gap: 10px; }
.hero-meta svg { width: 22px; height: 22px; color: var(--amber-400); flex-shrink: 0; }
.hero-meta strong { display: block; font-size: 15px; color: #fff; }
.hero-meta span { font-size: 13px; color: #9aa4bc; }

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(6px);
}
.hero-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero-card-top .pulse {
  width: 12px; height: 12px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.hero-card-top strong { display: block; font-size: 15px; }
.hero-card-top span { font-size: 13px; color: #9aa4bc; }
.hero-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.hero-step { display: flex; gap: 14px; align-items: flex-start; }
.hero-step .num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(245,166,35,0.15); color: var(--amber-400);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.hero-step strong { display: block; font-size: 14.5px; color: #fff; }
.hero-step p { font-size: 13.5px; color: #9aa4bc; margin-top: 2px; }
.hero-card-cta { display: flex; flex-direction: column; gap: 10px; }

/* ---- Franja de confianza ---- */
.trust-strip {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cdd4e6;
  font-size: 13.5px;
  font-weight: 500;
}
.trust-strip svg { width: 18px; height: 18px; color: var(--amber-400); }

/* ---- Servicios ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(245,166,35,0.4); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy-900), var(--navy-800));
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; color: var(--amber-400); }
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---- Por qué elegirnos ---- */
.why-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 26px; }
.why-item { display: flex; gap: 18px; }
.why-item .ico {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(245,166,35,0.12);
  display: grid; place-items: center;
}
.why-item .ico svg { width: 24px; height: 24px; color: var(--amber-600); }
.why-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.why-item p { font-size: 14.5px; color: var(--ink-soft); }

.why-panel {
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.why-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 100% 0%, rgba(245,166,35,0.22), transparent 60%);
}
.why-panel-inner { position: relative; z-index: 1; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 30px; }
.why-stats .stat strong { display: block; font-size: 34px; color: var(--amber-400); }
.why-stats .stat span { font-size: 13.5px; color: #aab3c7; }

/* ---- Zona de trabajo ---- */
.zone-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.zone-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 26px;
}
.zone-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--ink);
  padding: 10px 4px;
  border-bottom: 1px dashed var(--border);
}
.zone-list svg { width: 17px; height: 17px; color: var(--amber-600); flex-shrink: 0; }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 420px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Proceso ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.process-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px 26px;
}
.process-card .step-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--paper-mute);
  position: absolute;
  top: 14px; right: 18px;
  line-height: 1;
}
.process-card h3 { font-size: 16.5px; margin: 30px 0 8px; }
.process-card p { font-size: 14px; color: var(--ink-soft); }

/* ---- Opiniones ---- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 3px; margin-bottom: 14px; }
.stars svg { width: 16px; height: 16px; color: var(--amber-500); }
.review-card p.quote { font-size: 14.5px; color: var(--ink); margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-900); color: var(--amber-400);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.review-author strong { display: block; font-size: 14px; }
.review-author span { font-size: 12.5px; color: var(--ink-soft); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper-mute);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item summary .plus svg { width: 14px; height: 14px; }
.faq-item[open] summary .plus { background: var(--amber-500); color: #fff; transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-soft); font-size: 14.5px; }

/* ---- CTA final ---- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 90% 10%, rgba(245,166,35,0.25), transparent 60%);
}
.cta-band-text { position: relative; z-index: 1; max-width: 520px; }
.cta-band-text h2 { font-size: clamp(24px, 3vw, 32px); }
.cta-band-text p { margin-top: 10px; color: #c4cce0; }
.cta-band-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Contacto ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info-card {
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: rgba(245,166,35,0.14);
  display: grid; place-items: center;
}
.contact-info-row .ico svg { width: 21px; height: 21px; color: var(--amber-400); }
.contact-info-row strong { display: block; font-size: 15px; margin-bottom: 3px; }
.contact-info-row span, .contact-info-row a { font-size: 14px; color: #b7bfd4; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.form-row input, .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--amber-500); }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: #aab3c7; padding: 64px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-grid p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* ---- Botones flotantes ---- */
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.18s ease;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 27px; height: 27px; }
.fab-whatsapp { background: var(--whatsapp); color: #fff; }
.fab-call { background: var(--amber-500); color: var(--navy-950); }

.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 590;
  background: #fff;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.12);
  padding: 10px 12px;
  gap: 10px;
}
.mobile-cta-bar .btn { flex: 1; padding: 13px 10px; font-size: 14.5px; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .why-wrap { grid-template-columns: 1fr; }
  .zone-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .primary-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 84vw);
    background: var(--navy-950); padding: 100px 28px 28px; transition: right 0.3s ease; overflow-y: auto; }
  .primary-nav.is-open { right: 0; box-shadow: -20px 0 50px rgba(0,0,0,0.4); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .primary-nav a { font-size: 17px; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .mobile-cta-bar { display: flex; }
  .floating-actions { bottom: 84px; }
  body { padding-bottom: 74px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .zone-list { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 26px; flex-direction: column; align-items: flex-start; }
  .hero { padding: 140px 0 80px; }
  .why-stats { grid-template-columns: 1fr 1fr; }
}
