/* =============================================
   GASFITERÍA SAN FERNANDO — styles.css
   ============================================= */

/* ── Variables globales ── */
:root {
  --azul:        #0B2D5B;
  --azul-lt:     #1a4a8a;
  --azul-fondo:  #EEF2F8;
  --naranja:     #F36B21;
  --naranja-dk:  #d45b17;
  --blanco:      #FFFFFF;
  --gris:        #F5F7FA;
  --gris-borde:  #E2E8F0;
  --texto:       #1F2937;
  --texto-suave: #6B7280;
  --wsp:         #25D366;
  --wsp-dk:      #1cb855;
  --rojo:        #DC2626;
  --sombra-sm:   0 1px 4px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.05);
  --sombra-md:   0 4px 16px rgba(0,0,0,0.10);
  --sombra-lg:   0 8px 32px rgba(0,0,0,0.12);
  --radio:       12px;
  --radio-sm:    8px;
  --radio-lg:    20px;
  --trans:       all .22s ease;
}

/* ── Reset básico ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: var(--trans); }
ul, ol { list-style: none; }
figure { margin: 0; }
blockquote { quotes: none; }

/* ── Container ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── Sección header genérico ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: rgba(11,45,91,0.08);
  color: var(--azul);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--azul);
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 1rem;
  color: var(--texto-suave);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-borde);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,.09); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 38px; height: 38px;
  background: var(--azul);
  color: var(--naranja);
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -.5px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-weight: 800; font-size: 15px; color: var(--azul); }
.logo-sub  { font-size: 11px; color: var(--texto-suave); margin-top: 2px; }

/* Nav */
.nav-list { display: flex; gap: 2px; }
.nav-link {
  display: block;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--texto);
}
.nav-link:hover,
.nav-link.active { background: var(--gris); color: var(--azul); font-weight: 600; }

/* Botón WhatsApp en header */
.btn-wsp-header {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--wsp);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radio-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-wsp-header:hover { background: var(--wsp-dk); }

/* Botón WhatsApp dentro del menú móvil (solo mobile) */
.nav-wsp-item { display: none; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--azul);
  border-radius: 2px;
  transition: var(--trans);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  padding: 116px 0 80px;
  background: linear-gradient(155deg, #EAF0FB 0%, #F5F7FA 55%, #FFF6F1 100%);
  position: relative;
  overflow: hidden;
}
/* Formas decorativas de fondo */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hs {
  position: absolute;
  border-radius: 50%;
  opacity: .10;
}
.hs1 {
  width: 560px; height: 560px;
  background: var(--azul);
  top: -200px; right: -140px;
}
.hs2 {
  width: 300px; height: 300px;
  background: var(--naranja);
  bottom: -120px; left: -80px;
}

.hero-content { max-width: 680px; position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(243,107,33,.12);
  color: var(--naranja-dk);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 800;
  color: var(--azul);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--texto-suave);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--texto-suave);
  max-width: 520px;
  margin-top: -10px;
  margin-bottom: 20px;
}

/* Botones hero */
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radio-sm);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--trans);
}
.btn-wsp {
  background: var(--wsp);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
}
.btn-wsp:hover { background: var(--wsp-dk); transform: translateY(-1px); }
.btn-call {
  background: var(--blanco);
  color: var(--azul);
  border-color: var(--azul);
}
.btn-call:hover { background: var(--azul); color: #fff; }

/* Trust badges */
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto);
  box-shadow: var(--sombra-sm);
}
.trust-item i { color: var(--naranja); font-size: 12px; }

/* ─────────────────────────────────────────
   SERVICIOS
───────────────────────────────────────── */
.services { padding: 88px 0; background: var(--blanco); }

.services-block { margin-bottom: 56px; }
.services-block:last-child { margin-bottom: 0; }

.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gris);
}
.bt-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.bt-icon.blue   { background: rgba(11,45,91,.09);  color: var(--azul); }
.bt-icon.orange { background: rgba(243,107,33,.12); color: var(--naranja); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 24px;
  transition: var(--trans);
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--sombra-md);
  transform: translateY(-3px);
}
.service-card--urgent {
  border-color: rgba(220,38,38,.25);
  background: rgba(255,245,245,.6);
}
.service-card--urgent:hover {
  border-color: rgba(220,38,38,.18);
  background: rgba(255,245,245,.9);
}

/* Íconos de tarjeta */
.sc-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.sc-blue   { background: rgba(11,45,91,.08);  color: var(--azul); }
.sc-orange { background: rgba(243,107,33,.10); color: var(--naranja); }
.sc-red    { background: rgba(220,38,38,.10);  color: var(--rojo); }

.service-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 7px;
}
.service-card p {
  font-size: 13.5px;
  color: var(--texto-suave);
  line-height: 1.65;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--wsp);
  font-weight: 600;
  font-size: 13.5px;
}
.card-link:hover { color: var(--wsp-dk); }
.card-link--urgent { color: var(--rojo); }
.card-link--urgent:hover { color: #b91c1c; }

/* ─────────────────────────────────────────
   POR QUÉ ELEGIRNOS
───────────────────────────────────────── */
.why-us { padding: 88px 0; background: var(--gris); }

/* Barra de estadísticas */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blanco);
  border-radius: var(--radio-lg);
  padding: 28px 20px;
  margin-bottom: 56px;
  box-shadow: var(--sombra-sm);
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 36px;
  flex: 1;
  min-width: 130px;
}
.stat-item strong {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--naranja);
  line-height: 1;
  display: block;
}
.stat-item span {
  font-size: 13px;
  color: var(--texto-suave);
  margin-top: 5px;
  font-weight: 500;
  text-align: center;
}
.stat-sep {
  width: 1px;
  height: 48px;
  background: var(--gris-borde);
  flex-shrink: 0;
  align-self: center;
}

/* Grid características */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.feature-card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 24px;
  box-shadow: var(--sombra-sm);
  border: 1px solid transparent;
  transition: var(--trans);
}
.feature-card:hover {
  box-shadow: var(--sombra-md);
  transform: translateY(-2px);
  border-color: var(--gris-borde);
}
.feat-icon {
  width: 44px; height: 44px;
  background: var(--azul-fondo);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--azul);
  margin-bottom: 14px;
}
.feature-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 7px;
}
.feature-card p { font-size: 13.5px; color: var(--texto-suave); line-height: 1.65; }

/* Franja de cobertura */
.coverage-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--azul);
  color: #fff;
  padding: 20px 28px;
  border-radius: var(--radio);
}
.coverage-strip i { font-size: 22px; color: var(--naranja); flex-shrink: 0; }
.coverage-strip strong { display: block; font-size: 14px; margin-bottom: 2px; }
.coverage-strip span  { font-size: 13px; opacity: .82; }

/* ─────────────────────────────────────────
   GALERÍA
───────────────────────────────────────── */
.gallery-section { padding: 88px 0; background: var(--blanco); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gris);
  box-shadow: var(--sombra-sm);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Placeholder cuando falta la imagen */
.placeholder-img {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%; height: 100%;
  background: var(--gris-borde);
  color: var(--texto-suave);
  font-size: 12px;
}
.placeholder-img i { font-size: 28px; opacity: .45; }
.gallery-item.no-img img { display: none; }
.gallery-item.no-img .placeholder-img { display: flex; }

/* Caption hover */
.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(11,45,91,.85));
  color: #fff;
  padding: 28px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover figcaption { opacity: 1; }

/* ─────────────────────────────────────────
   TESTIMONIOS
───────────────────────────────────────── */
.testimonials { padding: 88px 0; background: var(--gris); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.testi-card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: var(--sombra-sm);
  position: relative;
  border-left: 3px solid var(--gris-borde);
  transition: var(--trans);
}
.testi-card:hover {
  box-shadow: var(--sombra-md);
  transform: translateY(-2px);
  border-left-color: var(--naranja);
}
.testi-card::after {
  content: '\201C';
  position: absolute;
  top: 12px; right: 18px;
  font-size: 64px;
  color: rgba(243,107,33,.15);
  font-family: Georgia, serif;
  line-height: 1;
}
.stars { color: #F59E0B; font-size: 15px; letter-spacing: 1px; margin-bottom: 12px; }
.testi-card p {
  font-size: 14.5px;
  color: var(--texto);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 18px;
}
.testi-card footer { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testi-card footer strong { display: block; font-size: 14px; color: var(--azul); font-weight: 700; }
.testi-card footer cite  { font-size: 12px; color: var(--texto-suave); font-style: normal; }

/* ─────────────────────────────────────────
   CONTACTO / CTA FINAL
───────────────────────────────────────── */
.contact-cta { padding: 88px 0; background: var(--azul); color: #fff; }
.cta-wrap { max-width: 740px; margin: 0 auto; text-align: center; }
.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}
.cta-desc { font-size: 1.05rem; opacity: .82; margin-bottom: 36px; }

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 32px;
  border-radius: var(--radio-sm);
  transition: var(--trans);
}
.cta-wsp {
  background: var(--wsp);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,.3);
}
.cta-wsp:hover { background: var(--wsp-dk); transform: translateY(-2px); }
.cta-call {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,.32);
}
.cta-call:hover { background: rgba(255,255,255,.22); }

.cta-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.cta-detail-item { display: flex; align-items: flex-start; gap: 11px; text-align: left; }
.cta-detail-item i { font-size: 18px; color: var(--naranja); margin-top: 2px; flex-shrink: 0; }
.cta-detail-item strong { display: block; font-size: 12px; opacity: .7; font-weight: 600; margin-bottom: 2px; }
.cta-detail-item a,
.cta-detail-item span { font-size: 15px; color: #fff; font-weight: 600; }
.cta-detail-item a:hover { color: var(--naranja); }
.cta-detail-item .cta-address {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.58);
  display: block;
  margin-top: 3px;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer { background: #07182E; color: rgba(255,255,255,.65); padding: 56px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo-icon {
  width: 36px; height: 36px;
  background: var(--naranja);
  color: #fff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo span { font-weight: 700; font-size: 14px; color: #fff; }
.footer-col--brand p { font-size: 13.5px; line-height: 1.65; max-width: 230px; }
.footer-address {
  font-size: 12px;
  font-style: normal;
  color: rgba(255,255,255,.38);
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
  max-width: 230px;
}
.footer-address i { color: var(--naranja); opacity: .6; font-size: 10px; margin-top: 3px; flex-shrink: 0; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li, .footer-col ul a { font-size: 13.5px; color: rgba(255,255,255,.62); }
.footer-col ul a:hover { color: var(--naranja); }
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
}
.footer-contact-link:hover { color: var(--naranja); }
.footer-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 6px;
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 13px;
}

/* ─────────────────────────────────────────
   BOTÓN FLOTANTE WHATSAPP
───────────────────────────────────────── */
.float-wsp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: var(--wsp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 998;
  transition: var(--trans);
}
.float-wsp:hover { background: var(--wsp-dk); transform: scale(1.08); }
.float-label {
  position: absolute;
  right: 70px;
  background: var(--texto);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.float-label::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--texto);
}
.float-wsp:hover .float-label { opacity: 1; }

/* Animación pulso suave */
@keyframes wsp-pulse {
  0%, 65%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  80%            { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 9px rgba(37,211,102,.14); }
}
.float-wsp { animation: wsp-pulse 3.5s infinite; }

/* ─────────────────────────────────────────
   ANIMACIÓN FADE-IN AL SCROLL
───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   HERO — COLUMNA VISUAL DERECHA
───────────────────────────────────────── */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 52px;
}
.hero-inner .hero-content {
  flex: 1;
  max-width: 100%;
}
.hero-visual { flex-shrink: 0; width: 288px; }

.hero-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(11,45,91,.12), 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
  border: 1px solid var(--gris-borde);
}

.hero-card-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #0B2D5B 0%, #1a4a8a 100%);
  position: relative;
  overflow: hidden;
}
.hero-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .4s;
}
.hero-card-img.has-photo img { opacity: 1; }
.hero-card-img.has-photo .hero-card-ph { display: none; }

.hero-card-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
}
.hero-card-ph-icons {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  opacity: .32;
}
.hero-card-ph-icons i { font-size: 28px; color: #fff; }
.hero-card-ph strong {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  letter-spacing: .01em;
}
.hero-card-ph span { font-size: 11px; color: rgba(255,255,255,.38); }

.hero-card-svcs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--gris-borde);
  gap: 1px;
}
.hcs-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--texto);
  background: #fff;
}
.hcs-item i {
  font-size: 12px;
  color: var(--azul);
  width: 13px;
  text-align: center;
  flex-shrink: 0;
}
.hcs-item--urgent i { color: var(--rojo); }

.hero-card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(37,211,102,.05);
  border-top: 1px solid rgba(37,211,102,.18);
  font-size: 12px;
  font-weight: 600;
  color: var(--texto);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wsp);
  flex-shrink: 0;
  animation: status-pulse 2.5s ease infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  60%       { box-shadow: 0 0 0 6px rgba(37,211,102,0); }
}

/* ─────────────────────────────────────────
   GALERÍA — MEJORAS
───────────────────────────────────────── */
.gallery-cat {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: rgba(11,45,91,.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  pointer-events: none;
}
.gallery-item figcaption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.gfc-title { font-size: 13px; font-weight: 700; flex: 1; line-height: 1.3; }
.gfc-action {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.28);
  transition: background .2s;
}
.gallery-item:hover .gfc-action { background: rgba(255,255,255,.3); }

/* ─────────────────────────────────────────
   TESTIMONIOS — BARRA DE RESUMEN
───────────────────────────────────────── */
.testi-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blanco);
  border-radius: var(--radio-lg);
  padding: 20px;
  margin-bottom: 48px;
  box-shadow: var(--sombra-sm);
  flex-wrap: wrap;
  gap: 0;
}
.ts-score { text-align: center; padding: 8px 32px; }
.ts-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--azul);
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}
.ts-stars {
  color: #F59E0B;
  font-size: 15px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 4px;
}
.ts-label {
  font-size: 11px;
  color: var(--texto-suave);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ts-sep {
  width: 1px; height: 44px;
  background: var(--gris-borde);
  flex-shrink: 0;
  align-self: center;
}
.ts-stat { text-align: center; padding: 8px 32px; }
.ts-stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--naranja);
  line-height: 1;
  margin-bottom: 5px;
}
.ts-stat span {
  font-size: 11px;
  color: var(--texto-suave);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ─────────────────────────────────────────
   SERVICIOS — MICRO-INTERACCIONES
───────────────────────────────────────── */
.sc-icon { transition: transform .22s ease; }
.service-card:hover .sc-icon { transform: scale(1.1); }

/* ─────────────────────────────────────────
   CTA CONTACTO — MEJORAS
───────────────────────────────────────── */
.contact-cta {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(243,107,33,.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(255,255,255,.03) 0%, transparent 45%),
    var(--azul);
}
.cta-wsp { position: relative; overflow: hidden; }
.cta-wsp::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  transition: left .5s ease;
}
.cta-wsp:hover::after { left: 100%; }

/* ─────────────────────────────────────────
   FOOTER — MEJORAS
───────────────────────────────────────── */
.footer { position: relative; }
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--naranja) 35%, var(--naranja) 65%, transparent 100%);
  opacity: .5;
}
.footer-col h4 {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 18px;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 10px 24px; }
  .hero-visual { width: 252px; }
  .hero-inner { gap: 36px; }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  /* Header mobile */
  .nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--blanco);
    border-bottom: 1px solid var(--gris-borde);
    padding: 8px 0 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    z-index: 999;
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; padding: 0 16px; }
  .nav-link { padding: 12px 16px; font-size: 15px; }
  .btn-wsp-header { display: none; }
  .menu-toggle { display: flex; }

  /* Botón WhatsApp dentro del menú móvil */
  .nav-wsp-item {
    display: block;
    padding: 10px 16px 4px;
    border-top: 1px solid var(--gris-borde);
    margin-top: 6px;
  }
  .nav-wsp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--wsp);
    color: #fff;
    padding: 13px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--trans);
  }
  .nav-wsp-link:hover { background: var(--wsp-dk); }
  .nav-wsp-link i { font-size: 18px; }

  /* Hero */
  .hero { padding: 88px 0 56px; }
  .btn { font-size: 14px; padding: 12px 20px; }
  .hero-btns { gap: 10px; }
  .btn-wsp, .btn-call { flex: 1; justify-content: center; min-width: 140px; }
  .hero-inner { flex-direction: column; gap: 36px; }
  .hero-inner .hero-content { max-width: 100%; }
  .hero-visual { width: 100%; max-width: 400px; }
  .hero-card-img:not(.has-photo) { display: none; }
  .ts-sep { display: none; }
  .ts-score, .ts-stat { padding: 8px 20px; }

  /* Stats */
  .stat-sep { display: none; }
  .stats-bar { gap: 8px; padding: 20px 16px; }
  .stat-item { min-width: 110px; padding: 10px 12px; }
  .stat-item strong { font-size: 2rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; max-width: 340px; justify-content: center; }
  .cta-details { flex-direction: column; align-items: center; gap: 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-col--brand p { max-width: 100%; }
}

/* Mobile pequeño: 480px */
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 8px; }
  .trust-item { font-size: 12px; padding: 6px 11px; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 0 0 calc(50% - 4px); min-width: unset; }
  .section-title { font-size: 1.6rem; }
  .float-wsp { width: 54px; height: 54px; font-size: 22px; bottom: 18px; right: 18px; }
  .btn-wsp, .btn-call { width: 100%; justify-content: center; }
  .hero-visual { max-width: 100%; }
  .ts-score, .ts-stat { padding: 8px 14px; }
  .ts-num { font-size: 2rem; }
  .ts-stat strong { font-size: 1.5rem; }
  .testi-summary { padding: 16px 12px; }
}

/* ─────────────────────────────────────────
   MODAL DE LLAMADA
───────────────────────────────────────── */
#call-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
#call-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.call-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 12px 48px rgba(0,0,0,.22);
  overflow: hidden;
  transform: translateY(14px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
#call-modal.open .call-modal-box {
  transform: translateY(0);
  opacity: 1;
}

.call-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--gris-borde);
}
.call-modal-icon { color: var(--azul); font-size: 14px; flex-shrink: 0; }
.call-modal-header h3 {
  flex: 1;
  font-size: .9rem;
  font-weight: 700;
  color: var(--azul);
}
.call-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--texto-suave);
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--trans);
}
.call-modal-close:hover { background: var(--gris); color: var(--texto); }

.call-modal-body { padding: 6px 0 4px; }

.call-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  transition: background .18s;
  border-top: 1px solid var(--gris-borde);
  cursor: pointer;
  color: inherit;
}
.call-option:first-child { border-top: none; }
.call-option:hover { background: var(--gris); }

.call-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--azul-fondo);
  display: flex; align-items: center; justify-content: center;
  color: var(--azul);
  font-size: 15px;
  flex-shrink: 0;
  transition: var(--trans);
}
.call-option:hover .call-icon { background: var(--azul); color: #fff; }

.call-info { flex: 1; }
.call-label  { display: block; font-size: 12px; color: var(--texto-suave); font-weight: 500; margin-bottom: 2px; }
.call-number { display: block; font-size: 18px; font-weight: 800; color: var(--azul); }
.call-chevron { color: var(--gris-borde); font-size: 12px; flex-shrink: 0; transition: var(--trans); }
.call-option:hover .call-chevron { color: var(--azul); transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════
   REDISEÑO ALT v2 — HERO FOTO + LOGO REAL + POLISH
═══════════════════════════════════════════════════════ */

/* ── Logo imagen (reemplaza ícono GF) ── */
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ── Hero con foto de fondo ── */
.hero {
  padding: 130px 20px 100px;
  min-height: 88vh;
  background-color: #050F1E;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5,14,30,.94) 0%,
    rgba(7,22,48,.88) 28%,
    rgba(9,30,62,.65) 50%,
    rgba(11,40,80,.24) 68%,
    transparent 84%
  );
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding: 0; }
.hero-shapes { display: none; }
.hero-inner { display: block; }
.hero-inner .hero-content { max-width: 620px; flex: none; }
.hero-content { max-width: 620px; }

/* Hero: textos sobre fondo oscuro */
.hero .hero-badge {
  background: rgba(243,107,33,.22);
  color: rgba(255,255,255,.94);
  border: 1px solid rgba(243,107,33,.4);
}
.hero .hero-badge i { color: var(--naranja); }
.hero .hero-title {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
}
.hero .hero-desc {
  color: rgba(255,255,255,.82);
}
.hero .hero-sub {
  color: rgba(255,255,255,.75);
}
.hero .trust-item {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.14);
}
.hero .trust-item i { color: var(--naranja); }

/* ── Tarjetas de servicio: acento lateral naranja ── */
.service-card { position: relative; }
.service-card:hover {
  box-shadow: -3px 0 0 var(--naranja), var(--sombra-md);
}

/* ── Footer: logo imagen ── */
.footer-logo {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07);
  margin-bottom: 14px;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ── Galería: cursor pointer (fotos reales) ── */
.gallery-item { cursor: zoom-in; }
.gallery-item:hover img { transform: scale(1.05); transition: transform .4s ease; }

/* ── Section tag: línea izquierda más énfasis ── */
.section-tag {
  position: relative;
  padding-left: 18px;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 6px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--naranja);
}

/* ── Responsive: hero foto ── */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 72px;
    min-height: auto;
    align-items: flex-end;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(5,14,30,.70) 0%,
      rgba(5,14,30,.95) 65%,
      rgba(5,14,30,.98) 100%
    );
  }
  .hero .container { padding: 0 20px; }
  .hero-content { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero { min-height: 80vh; }
  .hero .hero-title { font-size: 2rem; }
}

/* Accesibilidad: respeta preferencia de sin movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
}
