/* ==========================================================================
   REPARACIONES MÁLAGA TECHCARE — Hoja de estilos principal
   ========================================================================== */

:root {
  /* Marca */
  --azul: #0B1F3A;
  --azul-suave: #142c52;
  --azul-linea: #1e3358;
  --amarillo: #F2B705;
  --amarillo-hover: #ffc61a;
  --amarillo-accesible: #8B6500; /* variante oscura, cumple contraste 4.5:1 en fondo claro */
  --blanco: #FFFFFF;
  --gris-100: #F6F7F9;
  --gris-200: #ECEEF1;
  --gris-400: #9AA3B2;
  --gris-600: #5C6577;
  --gris-800: #2A303C;
  --texto: #1B2130;

  /* Tipografía */
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaciado */
  --section-pad: clamp(56px, 8vw, 120px);
  --container: 1180px;

  /* Bordes / sombras */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 24px rgba(11, 31, 58, 0.08);
  --shadow-card-hover: 0 12px 40px rgba(11, 31, 58, 0.14);

  /* Transición */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

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

/* Foco visible accesible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Tipografía general ---------- */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--azul);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amarillo-accesible);
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--gris-600);
  font-size: 17px;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
  min-height: 52px;
}

.btn-primary {
  background: var(--amarillo);
  color: var(--azul);
  box-shadow: 0 6px 20px rgba(242, 183, 5, 0.35);
}
.btn-primary:hover {
  background: var(--amarillo-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(242, 183, 5, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--blanco);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--blanco);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--azul);
  border: 1.5px solid var(--gris-200);
}
.btn-outline:hover {
  border-color: var(--azul);
  background: var(--gris-100);
}

.btn-block { width: 100%; }

.btn svg { width: 19px; height: 19px; flex-shrink: 0; }

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s var(--ease);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 44px; height: 44px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  color: var(--blanco);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.brand-text span {
  color: var(--amarillo);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-desktop a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--blanco); }
.nav-desktop a.active { color: var(--amarillo); }
.nav-desktop a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--amarillo);
  border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn-primary { padding: 12px 22px; font-size: 14px; min-height: 44px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--blanco);
}
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-menu {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--azul);
  z-index: 890;
  padding: 32px 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  color: var(--blanco);
  font-size: 19px;
  font-weight: 700;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu .btn-primary {
  margin-top: 24px;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--azul) 0%, #0e2545 60%, var(--azul) 100%);
  padding: 150px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(242,183,5,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow { color: var(--amarillo); }

.hero-copy h1 {
  color: var(--blanco);
  font-size: clamp(28px, 8vw, 50px);
  line-height: 1.18;
  margin-bottom: 20px;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.hero-copy p.lead {
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.trust-strip {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  color: rgba(255,255,255,0.6);
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trust-strip strong { color: rgba(255,255,255,0.85); font-weight: 600; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.1;
  background: var(--azul);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(11,31,58,0.15) 0%, rgba(11,31,58,0.55) 75%, rgba(11,31,58,0.75) 100%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  bottom: 18px; right: 18px; left: 18px;
  background: var(--azul);
  border: 1px solid rgba(242,183,5,0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  max-width: 300px;
  margin-left: auto;
}
.hero-badge .dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--amarillo);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge .dot svg { width: 18px; height: 18px; color: var(--azul); }
.hero-badge strong { display: block; color: var(--blanco); font-size: 12.5px; font-weight: 700; }
.hero-badge span { color: rgba(255,255,255,0.6); font-size: 11px; }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */

.servicios { padding: var(--section-pad) 0; background: var(--blanco); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--gris-100);
  border: 1px solid var(--gris-200);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  text-align: left;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--amarillo);
  background: var(--blanco);
}
.service-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--azul);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card .icon svg { width: 24px; height: 24px; color: var(--amarillo); }
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--gris-600); }

.services-note {
  margin-top: 32px;
  text-align: center;
  color: var(--gris-600);
  font-size: 15px;
}
.services-note a {
  color: var(--azul);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--amarillo);
  text-underline-offset: 3px;
}

/* ==========================================================================
   CONFIANZA
   ========================================================================== */

.confianza {
  padding: var(--section-pad) 0;
  background: var(--azul);
  color: var(--blanco);
}
.confianza .eyebrow { color: var(--amarillo); }
.confianza .section-head h2 { color: var(--blanco); }
.confianza .section-head p { color: rgba(255,255,255,0.62); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.trust-item { text-align: left; }
.trust-item .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1.5px solid rgba(242,183,5,0.4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.trust-item .icon svg { width: 22px; height: 22px; color: var(--amarillo); }
.trust-item h3 { color: var(--blanco); font-size: 15.5px; margin-bottom: 8px; }
.trust-item p { color: rgba(255,255,255,0.58); font-size: 13.5px; }

/* ==========================================================================
   REPARACIONES REALES
   ========================================================================== */

.reparaciones { padding: var(--section-pad) 0; background: var(--gris-100); }

.rep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.rep-card {
  background: var(--blanco);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.rep-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.rep-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--azul);
  cursor: pointer;
}
.rep-image:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: -3px;
}
.rep-image .rep-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.rep-image .rep-img.after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.5s var(--ease);
}
.rep-card:hover .rep-image .rep-img.after,
.rep-card:focus-within .rep-image .rep-img.after,
.rep-image.revealed .rep-img.after {
  clip-path: inset(0 0 0 0);
}
.rep-image .divider {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.7);
  transform: translateX(-1px);
  transition: left 0.5s var(--ease);
  pointer-events: none;
}
.rep-card:hover .rep-image .divider,
.rep-card:focus-within .rep-image .divider,
.rep-image.revealed .divider {
  left: 100%;
}
.rep-image .swap-hint {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  background: rgba(11,31,58,0.7);
  color: rgba(255,255,255,0.85);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 100px;
  backdrop-filter: blur(3px);
  z-index: 2;
  transition: opacity 0.3s;
}
.rep-card:hover .swap-hint { opacity: 0; }
.rep-image.revealed .swap-hint { opacity: 0; }

.rep-tags {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  justify-content: space-between;
}
.rep-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(11,31,58,0.75);
  color: var(--blanco);
  backdrop-filter: blur(4px);
}
.rep-tag.after { background: var(--amarillo); color: var(--azul); }

.rep-body { padding: 20px; }
.rep-body h3 { font-size: 16.5px; margin-bottom: 5px; }
.rep-body p { font-size: 13.5px; color: var(--gris-600); margin-bottom: 14px; }
.rep-body a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--azul);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rep-body a svg { width: 15px; height: 15px; transition: transform 0.2s; }
.rep-body a:hover svg { transform: translateX(3px); }

.rep-closing {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.rep-closing p { color: var(--gris-600); margin-bottom: 20px; font-size: 15.5px; }

/* ==========================================================================
   CÓMO TRABAJAMOS
   ========================================================================== */

.proceso { padding: var(--section-pad) 0; background: var(--blanco); }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.step {
  position: relative;
  text-align: left;
  padding-top: 44px;
}
.step .num {
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--amarillo);
  color: var(--azul);
  font-weight: 800;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 15.5px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--gris-600); }

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px; left: 46px;
  width: calc(100% - 30px);
  height: 1px;
  background: var(--gris-200);
}

/* ==========================================================================
   OPINIONES / FAQ (two column)
   ========================================================================== */

.social-proof {
  padding: var(--section-pad) 0;
  background: var(--gris-100);
}

.sp-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

.sp-col .eyebrow { display: block; }
.sp-col h2 {
  font-size: clamp(24px, 2.8vw, 30px);
  margin-bottom: 14px;
}
.sp-col > p { color: var(--gris-600); font-size: 15px; margin-bottom: 32px; }

.reviews { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.review-card {
  background: var(--blanco);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.stars { color: var(--amarillo); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.review-card p.quote { font-size: 14.5px; color: var(--gris-800); margin-bottom: 14px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--amarillo);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.review-author strong { display: block; font-size: 13.5px; }
.review-author span { font-size: 12px; color: #6B7385; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.faq-item {
  background: var(--blanco);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--azul);
}
.faq-question .plus {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gris-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.3s;
  position: relative;
}
.faq-question .plus::before,
.faq-question .plus::after {
  content: '';
  position: absolute;
  background: var(--azul);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.faq-question .plus::before { width: 10px; height: 1.6px; }
.faq-question .plus::after { width: 1.6px; height: 10px; }

.faq-item.open .faq-question .plus { background: var(--amarillo); }
.faq-item.open .faq-question .plus::after { opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-answer-inner {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--gris-600);
}

/* ==========================================================================
   CTA FINAL / CONTACTO
   ========================================================================== */

.cta-final {
  background: var(--azul);
  padding: 56px 0;
}
.cta-final .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-final-copy { display: flex; align-items: center; gap: 16px; }
.cta-final-copy .icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(242,183,5,0.12);
  border: 1px solid rgba(242,183,5,0.35);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cta-final-copy .icon svg { width: 26px; height: 26px; color: var(--amarillo); }
.cta-final-copy h3 { color: var(--blanco); font-size: 19px; margin-bottom: 4px; }
.cta-final-copy p { color: rgba(255,255,255,0.6); font-size: 14px; }

.contacto {
  padding: var(--section-pad) 0;
  background: var(--gris-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 16px; }
.contact-info > p { color: var(--gris-600); font-size: 15.5px; margin-bottom: 32px; }

.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--gris-200);
}
.contact-item:last-child { border-bottom: 1px solid var(--gris-200); }
.contact-item .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item .icon svg { width: 20px; height: 20px; color: var(--azul); }
.contact-item strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.contact-item p, .contact-item a { font-size: 14px; color: var(--gris-600); }
.contact-item a:hover { color: var(--azul); text-decoration: underline; }

.contact-card {
  background: var(--azul);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--blanco);
}
.contact-card h3 { color: var(--blanco); font-size: 20px; margin-bottom: 10px; }
.contact-card > p { color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 26px; }

.contact-card .btn-primary { margin-bottom: 14px; }

.whatsapp-preview {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-top: 20px;
}
.whatsapp-preview strong { color: rgba(255,255,255,0.8); display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: #081729;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-text strong { color: var(--blanco); }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 260px; }

.footer-col h4 {
  color: var(--blanco);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col p { font-size: 13.5px; color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: var(--amarillo); }
.footer-col li.social a { display: flex; align-items: center; gap: 8px; }
.footer-col li.social svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 12.5px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--amarillo); }

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */

.wa-float {
  position: fixed;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 16px));
  right: max(22px, calc(env(safe-area-inset-right) + 16px));
  z-index: 800;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: var(--blanco); }

@media (max-width: 640px) {
  .wa-float {
    width: 50px; height: 50px;
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
    right: max(16px, calc(env(safe-area-inset-right) + 12px));
  }
  .wa-float svg { width: 25px; height: 25px; }
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}

/* ==========================================================================
   REPAIR DIALOG (lightbox de proceso de reparación)
   ========================================================================== */

.repair-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 780px;
  width: 92vw;
  max-height: 86vh;
  background: var(--blanco);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.repair-dialog::backdrop {
  background: rgba(8, 20, 38, 0.75);
  backdrop-filter: blur(2px);
}
.dialog-content {
  padding: 28px;
  overflow-y: auto;
  max-height: 86vh;
}
.dialog-content h3 { font-size: 21px; margin-bottom: 8px; }
.dialog-content > p { color: var(--gris-600); font-size: 14.5px; margin-bottom: 20px; }
.dialog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.dialog-gallery figure { margin: 0; }
.dialog-gallery img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.dialog-gallery figcaption {
  font-size: 12px;
  font-weight: 700;
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.dialog-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gris-100);
  color: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.dialog-close svg { width: 18px; height: 18px; }
.dialog-close:hover { background: var(--gris-200); }

/* ==========================================================================
   PÁGINAS LEGALES / 404
   ========================================================================== */

.legal-hero {
  background: var(--azul);
  padding: 150px 0 60px;
  color: var(--blanco);
}
.legal-hero .eyebrow { color: var(--amarillo); }
.legal-hero h1 { color: var(--blanco); font-size: clamp(28px, 3.6vw, 40px); }
.legal-hero p { color: rgba(255,255,255,0.6); margin-top: 10px; font-size: 14px; }

.legal-content {
  padding: 64px 0 100px;
  max-width: 820px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 20px;
  margin: 40px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--gris-600);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content a { color: var(--azul); text-decoration: underline; text-decoration-color: var(--amarillo); }
.legal-content strong { color: var(--azul-suave); }

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--azul);
  color: var(--blanco);
  padding: 24px;
}
.error-page .code {
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 800;
  color: var(--amarillo);
  line-height: 1;
}
.error-page h1 { color: var(--blanco); margin: 12px 0 10px; font-size: 24px; }
.error-page p { color: rgba(255,255,255,0.6); margin-bottom: 28px; font-size: 15px; }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 16px; right: 16px;
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 950;
  background: var(--azul);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 720px;
  margin: 0 auto;
}
.cookie-inner {
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.cookie-inner p { font-size: 13.5px; line-height: 1.6; flex: 1 1 320px; }
.cookie-inner a { color: var(--amarillo); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-sm { padding: 10px 18px; font-size: 13px; min-height: 40px; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .rep-grid { grid-template-columns: repeat(1, 1fr); max-width: 480px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .step:nth-child(3)::after { display: none; }
  .sp-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav-desktop, .header-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 104px 0 48px; }
  .hero-visual { aspect-ratio: 16/11; margin-top: 28px; }
  .cta-final .container { flex-direction: column; text-align: center; }
  .cta-final-copy { flex-direction: column; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-actions { flex-direction: column; }
  .section-head { margin-bottom: 36px; }
}

@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 13px; }
  .brand-text span { font-size: 8.5px; }
  .header .container { gap: 8px; }
}
