/* =====================================================
   SOS NAVARRO — Global Stylesheet
   Paleta: Negro #0A0A0A | Rojo #D01F1F | Blanco #F5F5F5
   Tipografía: Bebas Neue (títulos) + Barlow (cuerpo)
   ===================================================== */

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

:root {
  --rojo:        #D01F1F;
  --rojo-bright: #FF2828;
  --rojo-dark:   #9B0000;
  --negro:       #0A0A0A;
  --negro-card:  #111111;
  --gris-dark:   #1A1A1A;
  --gris-mid:    #2A2A2A;
  --gris-texto:  #999999;
  --blanco:      #F5F5F5;
  --blanco-puro: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--negro);
  color: var(--blanco);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── TIPOGRAFÍA ── */
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.servicio-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.9);
}

.servicio-card:hover .servicio-img {
  transform: scale(1.05);
  filter: brightness(1);
}

/* ── UTILIDADES ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tag-rojo {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--blanco);
  margin-bottom: 12px;
}

.section-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gris-texto);
  font-weight: 400;
  margin-bottom: 32px;
}

/* ── BOTONES ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rojo);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary:hover { background: var(--rojo-bright); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blanco);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { border-color: var(--rojo); color: var(--rojo); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-wa:hover { background: #1da851; transform: translateY(-2px); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(208,31,31,0.2);
  transition: background 0.3s ease;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--rojo); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-tel {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.25rem;
  color: var(--rojo);
  text-decoration: none;
  letter-spacing: 0.08em;
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--blanco);
  transition: all 0.3s ease;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--negro);
}

/* PLACEHOLDER para imagen hero */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(0.6);
}

.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a0505 40%, #2a0808 70%, #0A0A0A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
  border: 1px dashed rgba(255,255,255,0.1);
  padding: 8px 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.3) 100%);
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--negro), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-eyebrow-line {
  width: 40px; height: 2px;
  background: var(--rojo);
}

.hero-eyebrow-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rojo);
}

.hero-title {
  font-size: clamp(3rem, 9vw, 7rem);
  color: var(--blanco-puro);
  margin-bottom: 8px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.8);
}

.hero-title span {
  color: var(--rojo);
}

.hero-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: rgba(245,245,245,0.7);
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(245,245,245,0.5);
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rojo);
  flex-shrink: 0;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--rojo);
  padding: 0;
  overflow: hidden;
}

.trust-bar-track {
  display: flex;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  flex-shrink: 0;
}

.trust-bar-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── RESCATE CARRETERO ── */
.rescate {
  padding: 100px 0;
  background: var(--negro);
}

.rescate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.rescate-img-wrap {
  position: relative;
}

.rescate-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* Placeholder imagen */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gris-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed rgba(208,31,31,0.3);
}

.img-placeholder svg {
  opacity: 0.2;
}

.img-placeholder-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.rescate-img-border {
  position: absolute;
  inset: -8px;
  border: 2px solid var(--rojo);
  pointer-events: none;
  z-index: -1;
}

.rescate-number {
  position: absolute;
  top: -24px; right: -24px;
  font-family: 'Bebas Neue', cursive;
  font-size: 8rem;
  color: rgba(208,31,31,0.08);
  line-height: 1;
  pointer-events: none;
  z-index: -1;
}

.rescate-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.rescate-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: rgba(245,245,245,0.8);
}

.check-icon {
  width: 20px; height: 20px;
  background: var(--rojo);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── SERVICIOS LOCALES ── */
.servicios {
  padding: 100px 0;
  background: var(--gris-dark);
  position: relative;
  overflow: hidden;
}

.servicios::before {
  content: 'SERVICIOS';
  position: absolute;
  top: 20px; right: -20px;
  font-family: 'Bebas Neue', cursive;
  font-size: 12rem;
  color: rgba(255,255,255,0.02);
  white-space: nowrap;
  pointer-events: none;
}

.servicios-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.servicio-card {
  background: var(--negro-card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.servicio-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--rojo);
  transition: width 0.3s ease;
}

.servicio-card:hover { background: #161616; }
.servicio-card:hover::after { width: 100%; }

.servicio-icon {
  width: 48px; height: 48px;
  color: var(--rojo);
}

.servicio-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blanco);
  line-height: 1.3;
}

/* ── MANTENIMIENTO PREVENTIVO ── */
.mantenimiento {
  padding: 100px 0;
  background: var(--negro);
}

.mantenimiento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mantenimiento-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.mant-feature {
  background: var(--gris-dark);
  padding: 24px 20px;
  border-left: 3px solid var(--rojo);
}

.mant-feature-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 6px;
}

.mant-feature-desc {
  font-size: 0.82rem;
  color: var(--gris-texto);
  line-height: 1.5;
}

/* ── POR QUÉ NOSOTROS ── */
.porque {
  padding: 100px 0;
  background: var(--gris-dark);
}

.porque-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.diferenciadores {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.dif-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(10,10,10,0.6);
  border: 1px solid rgba(208,31,31,0.15);
  transition: border-color 0.2s ease;
}

.dif-item:hover { border-color: rgba(208,31,31,0.5); }

.dif-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  color: var(--rojo);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}

.dif-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.85);
  padding-top: 4px;
  line-height: 1.4;
}

/* ── CTA URGENCIA ── */
.cta-urgencia {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--rojo-dark);
}

.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: luminosity;
}

.cta-bg-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6b0000 0%, #3d0000 50%, #6b0000 100%);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-urgencia .section-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  margin-bottom: 16px;
}

.cta-urgencia .section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── CONTACTO / FOOTER ── */
.footer {
  background: #050505;
  padding: 60px 0 32px;
  border-top: 1px solid rgba(208,31,31,0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 24px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: rgba(245,245,245,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-contact-item:hover { color: var(--rojo); }

.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  color: rgba(245,245,245,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--blanco); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  color: rgba(245,245,245,0.25);
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,0.6); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav-hamburger { display: flex; }

  .rescate-grid,
  .mantenimiento-grid,
  .porque-grid { grid-template-columns: 1fr; }

  .mantenimiento-grid .img-placeholder { order: -1; }

  .servicios-grid { grid-template-columns: 1fr 1fr; }
  .mantenimiento-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .hero-title { font-size: clamp(2.8rem, 12vw, 5rem); }
  .cta-urgencia .section-title { font-size: clamp(2rem, 10vw, 4rem); }

  .nav-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav-mobile-menu.open { display: flex; }

  .nav-mobile-menu a {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--blanco);
    text-decoration: none;
  }

  .nav-mobile-menu a:hover { color: var(--rojo); }
}

@media (max-width: 480px) {
  .servicios-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* ── ANIMACIONES DE ENTRADA ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
