/* =============================================================
   Snoopyciber Soluciones — hoja de estilos única
   Índice:
   1. Tokens        2. Reset & base    3. Utilidades
   4. Tipografía     5. Componentes     6. Navbar
   7. Hero            8. Franja confianza  9. Servicios
   10. Ventajas       11. Cómo funciona    12. Accesorios
   13. Reseñas        14. Preguntas         15. Contacto
   16. Puente          17. Footer            18. WhatsApp flotante
   19. Animaciones/reveal   20. Responsive   21. Reduced motion
   22. Asistente de IA — Snoopy (chat widget)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --azul-profundo: #0A1E3D;
  --azul-electrico: #1B6BFF;
  --azul-suave: #E8F1FF;
  --naranja: #FF7A1A;
  --naranja-hover: #FF9440;
  --gris-texto: #1C2431;
  --gris-suave: #6B7688;
  --blanco: #FFFFFF;
  --whatsapp: #25D366;

  --azul-profundo-rgb: 10, 30, 61;
  --azul-electrico-rgb: 27, 107, 255;
  --naranja-rgb: 255, 122, 26;

  --font-heading: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(28,36,49,0.08);
  --shadow-md: 0 10px 30px rgba(28,36,49,0.12);
  --shadow-lg: 0 20px 50px rgba(10,30,61,0.22);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gris-texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

::selection { background: var(--naranja); color: var(--blanco); }

:focus-visible {
  outline: 2px solid var(--naranja);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--naranja); color: var(--blanco);
  border-radius: 8px; font-weight: 600; transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.section--soft { background: var(--azul-suave); }
.section--dark { background: var(--azul-profundo); color: var(--blanco); }

.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 32px; height: 32px; }
.icon--xl { width: 44px; height: 44px; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--blanco);
  font-size: .9rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.badge .icon { color: #FFC94D; }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--azul-electrico);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  margin-bottom: .6rem;
}
.eyebrow--light { color: #7FADFF; }

/* =============================================================
   4. Tipografía / cabeceras de sección
   ============================================================= */
.section-head { max-width: 640px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.75rem); margin-bottom: .75rem; }
.section-head__sub { color: var(--gris-suave); font-size: clamp(1rem, .9rem + .3vw, 1.15rem); }
.section-head--dark h2 { color: var(--blanco); }

/* =============================================================
   5. Componentes — botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700; font-size: .98rem;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s var(--ease-out), border-color .25s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 19px; height: 19px; }

.btn--orange {
  background: var(--naranja); color: var(--blanco);
  box-shadow: 0 8px 22px rgba(var(--naranja-rgb), 0.35);
}
.btn--orange:hover { background: var(--naranja-hover); box-shadow: 0 12px 28px rgba(var(--naranja-rgb), 0.42); transform: translateY(-2px); }

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

.btn--outline-blue {
  background: transparent; color: var(--azul-electrico);
  border: 1.5px solid rgba(var(--azul-electrico-rgb), 0.4);
  width: 100%;
}
.btn--outline-blue:hover { background: var(--azul-suave); border-color: var(--azul-electrico); transform: translateY(-2px); }

.btn--sm { min-height: 42px; padding: .6rem 1.2rem; font-size: .88rem; }
.btn--lg { min-height: 54px; padding: 1rem 2rem; font-size: 1.02rem; }

/* Placeholders de imagen */
.media-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; text-align: center;
  width: 100%; height: 100%; min-height: 220px;
  border: 2px dashed rgba(var(--azul-electrico-rgb), 0.35);
  border-radius: var(--radius-md);
  background: var(--azul-suave);
  color: var(--gris-suave);
  padding: 1.5rem;
}
.media-placeholder .icon { color: var(--azul-electrico); opacity: .55; }
.media-placeholder p { font-size: .85rem; line-height: 1.5; }
.media-placeholder code { font-size: .78rem; background: rgba(var(--azul-electrico-rgb), 0.1); padding: .1rem .4rem; border-radius: 4px; }
.media-placeholder--hero { aspect-ratio: 1 / 1; min-height: 320px; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); }
.media-placeholder--hero .icon { color: var(--naranja); opacity: .8; }

/* =============================================================
   6. Navbar
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 500;
  background: transparent;
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), backdrop-filter .3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--nav-h);
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img { display: block; height: 46px; width: auto; border-radius: 50%; }

.nav__links { display: none; align-items: center; gap: 1.9rem; }
.nav__links a {
  font-weight: 600; font-size: .95rem; color: var(--blanco);
  position: relative; padding-block: .3rem;
  transition: color .3s var(--ease-out);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--naranja); transition: width .25s var(--ease-out);
}
.nav__links a:hover::after { width: 100%; }
.nav.is-scrolled .nav__links a { color: var(--gris-texto); }

.nav__cta { display: none; }

.nav__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; color: var(--blanco);
  transition: color .3s var(--ease-out), background-color .2s var(--ease-out);
}
.nav.is-scrolled .nav__burger { color: var(--azul-profundo); }
.nav__burger:hover { background: rgba(var(--azul-electrico-rgb), 0.1); }

.nav__mobile-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 700;
  width: min(340px, 86vw);
  background: rgba(10,30,61,0.97);
  backdrop-filter: blur(14px);
  padding: 1.25rem 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 1.75rem;
  transform: translateX(100%);
  transition: transform .4s var(--ease-out);
}
.nav__mobile-panel.is-open { transform: translateX(0); }
.nav__mobile-head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__mobile-head .nav__burger { color: var(--blanco); }
.nav__mobile-links { display: flex; flex-direction: column; gap: 1.4rem; }
.nav__mobile-links a { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--blanco); }
.nav__mobile-cta { justify-content: center; margin-top: auto; }

.nav__scrim {
  position: fixed; inset: 0; z-index: 650;
  background: rgba(10,30,61,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.nav__scrim.is-visible { opacity: 1; pointer-events: auto; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--azul-profundo);
  color: var(--blanco);
  overflow: clip;
  padding-block: calc(var(--nav-h) * -1 + 2rem) 3rem;
  margin-top: calc(var(--nav-h) * -1);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(48% 60% at 82% 8%, rgba(27,107,255,0.38), transparent 70%),
    radial-gradient(60% 50% at 15% 95%, rgba(27,107,255,0.15), transparent 70%),
    var(--azul-profundo);
  background-size: 160% 160%, 160% 160%, 100% 100%;
  animation: heroDrift 22s ease-in-out infinite;
}
@keyframes heroDrift {
  0%, 100% { background-position: 82% 8%, 15% 95%, 0 0; }
  50%      { background-position: 70% 20%, 25% 85%, 0 0; }
}
.hero__circuits { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .1; }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 2.75rem;
  padding-top: calc(var(--nav-h) + 1.5rem);
}
.hero__copy { max-width: 640px; }

.hero__badge { margin-bottom: 1.5rem; }

.hero__title {
  font-size: clamp(2.15rem, 1.5rem + 3.6vw, 4.2rem);
  line-height: 1.06;
  margin-bottom: 1.25rem;
}
.hero__title em { font-style: normal; color: var(--naranja); }

.hero__subtitle {
  font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.hero__meta { display: flex; flex-direction: column; gap: .9rem; }
.hero__meta li { display: flex; align-items: center; gap: .65rem; font-size: .95rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.hero__meta .icon { color: var(--naranja); }

.hero__media {
  display: none;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =============================================================
   8. Franja de confianza
   ============================================================= */
.trust-strip { background: var(--azul-suave); padding-block: 1.6rem; }
.trust-strip__track {
  display: flex; gap: 2.5rem;
  overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.trust-strip__track::-webkit-scrollbar { display: none; }
.trust-item {
  flex: 0 0 auto; scroll-snap-align: start;
  font-family: var(--font-heading); font-size: 1.02rem; color: var(--azul-profundo);
  white-space: nowrap;
  padding-right: 2.5rem;
  border-right: 1px solid rgba(var(--azul-profundo-rgb), 0.12);
}
.trust-item:last-child { border-right: 0; padding-right: 0; }
.trust-item__stars { color: var(--naranja); }

/* =============================================================
   9. Servicios
   ============================================================= */
.services__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.service-card {
  background: var(--blanco);
  border: 1.5px solid rgba(var(--azul-profundo-rgb), 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--azul-electrico-rgb), 0.4);
}
.service-card__icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--azul-suave); color: var(--azul-electrico);
  margin-bottom: 1.25rem;
  transition: transform .35s var(--ease-soft);
}
.service-card:hover .service-card__icon { transform: scale(1.12) rotate(-4deg); }
.service-card h3 { font-size: 1.15rem; margin-bottom: .55rem; }
.service-card p { color: var(--gris-suave); font-size: .95rem; margin-bottom: 1.1rem; }
.service-card__link { font-weight: 700; font-size: .9rem; color: var(--azul-electrico); }
.service-card__link:hover { text-decoration: underline; }

/* =============================================================
   10. Ventajas
   ============================================================= */
.why-us { display: flex; flex-direction: column; gap: 2.5rem; }
.why-block { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.why-block__icon {
  width: 76px; height: 76px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--azul-profundo); color: var(--naranja);
  flex-shrink: 0;
}
.why-block__text h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.why-block__text p { color: var(--gris-suave); max-width: 52ch; }

/* =============================================================
   11. Cómo funciona
   ============================================================= */
.how__steps {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 2.25rem;
  counter-reset: step;
  margin-bottom: 2.75rem;
}
.step { position: relative; padding-left: 4.25rem; }
.step__num {
  position: absolute; left: 0; top: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--azul-electrico); color: var(--blanco);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(var(--azul-electrico-rgb), 0.3);
  z-index: 1;
}
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--gris-suave); font-size: .95rem; }
.how__line {
  display: none;
}
.how__cta { display: flex; justify-content: center; }

/* =============================================================
   12. Accesorios
   ============================================================= */
.accessories__grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.accessory-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.accessory-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.accessory-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.25rem;
}
.accessory-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-soft); }
.accessory-card__media:hover img,
.accessory-card__media:hover .media-placeholder { transform: scale(1.08); }
.accessory-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.accessory-card > p { color: var(--gris-suave); font-size: .92rem; margin-bottom: .9rem; }
.precio {
  font-family: var(--font-heading); font-weight: 700; color: var(--azul-electrico);
  margin-bottom: 1.1rem !important; font-size: 1.02rem;
}

/* =============================================================
   13. Reseñas
   ============================================================= */
.reviews__rating-block {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 1.25rem;
  margin-bottom: 2.5rem;
}
.reviews__score { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: var(--azul-profundo); }
.reviews__stars { display: inline-flex; gap: .2rem; color: #FFB800; align-self: center; }
.reviews__stars .icon { width: 22px; height: 22px; }
.reviews__count { display: inline-flex; align-items: center; gap: .5rem; color: var(--gris-suave); font-weight: 600; align-self: center; }
.reviews__google-logo { width: 22px; height: 22px; }

.marquee {
  --gap: 1.25rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-bottom: 2rem;
}
.marquee__row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee__track {
  display: flex; gap: var(--gap); width: max-content;
  will-change: transform;
}
.marquee__row--top .marquee__track { animation: marqueeToLeft 48s linear infinite; }
.marquee__row--bottom .marquee__track { animation: marqueeToRight 55s linear infinite; }
.marquee__row:hover .marquee__track { animation-play-state: paused; }

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

.review-card {
  flex: 0 0 340px; width: 340px;
  background: var(--blanco);
  border: 1px solid rgba(var(--azul-profundo-rgb), 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .85rem;
}
.review-card__head { display: flex; align-items: center; gap: .75rem; }
.review-card__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--c, var(--azul-electrico)); color: var(--blanco);
  font-family: var(--font-heading); font-weight: 700; font-size: .9rem;
}
.review-card__stars { color: #FFB800; font-size: .85rem; letter-spacing: 1px; }
.review-card p { font-size: .92rem; color: var(--gris-texto); flex: 1; }
.review-card__tag { font-size: .78rem; color: var(--gris-suave); font-weight: 600; }

.reviews__all-link { display: inline-block; font-weight: 700; color: var(--azul-electrico); }
.reviews__all-link:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
  .marquee__row { overflow-x: auto; -webkit-overflow-scrolling: touch; mask-image: none; -webkit-mask-image: none; }
}

/* =============================================================
   14. Preguntas frecuentes
   ============================================================= */
.faq__list { display: flex; flex-direction: column; gap: .9rem; }
.faq-item {
  background: var(--blanco);
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(var(--azul-profundo-rgb), 0.08);
  overflow: hidden;
}
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; text-align: left;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--azul-profundo);
}
.faq-item__q .icon { color: var(--azul-electrico); transition: transform .3s var(--ease-out); flex-shrink: 0; }
.faq-item__q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-item__a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease-out);
}
.faq-item__a p { padding: 0 1.4rem 1.3rem; color: var(--gris-suave); font-size: .95rem; }

/* =============================================================
   15. Contacto
   ============================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }

.contact__hours-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.contact__status { display: flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; margin-bottom: .6rem; }
.contact__status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gris-suave); flex-shrink: 0; }
.contact__status-dot.is-open { background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(37,211,102,0.25); }
.contact__status-dot.is-closed { background: var(--naranja); box-shadow: 0 0 0 4px rgba(255,122,26,0.25); }
.contact__hours-text { color: rgba(255,255,255,0.75); font-size: .92rem; }
.contact__payment {
  display: flex; align-items: center; gap: .4rem;
  margin-top: .9rem; padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55); font-size: .82rem;
}
.contact__payment .icon { color: rgba(255,255,255,0.55); }
.contact__payment span { margin-left: .2rem; }

.contact__list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact__list li { display: flex; align-items: center; gap: .9rem; }
.contact__list .icon { color: var(--naranja); flex-shrink: 0; }
.contact__list a { color: var(--blanco); font-weight: 500; }
.contact__list a:hover { text-decoration: underline; }

.contact__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; position: relative; box-shadow: var(--shadow-lg); }
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.15) brightness(.92) contrast(1.05); }

/* =============================================================
   16. Puente a Snoopyciber Negocios
   ============================================================= */
.bridge { background: var(--azul-suave); padding-block: 1.4rem; }
.bridge__inner { text-align: center; }
.bridge p { font-size: .95rem; color: var(--gris-texto); }
.bridge a { color: var(--azul-electrico); font-weight: 700; }
.bridge a:hover { text-decoration: underline; }

/* =============================================================
   17. Footer
   ============================================================= */
.site-footer { background: var(--azul-profundo); color: rgba(255,255,255,0.8); padding-top: clamp(3rem, 5vw, 4.5rem); }
.site-footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__logo-img { display: block; width: 72px; height: 72px; border-radius: 50%; }
.site-footer__brand p { margin-block: 1rem 1.25rem; font-size: .92rem; max-width: 32ch; }
.site-footer__social { display: flex; gap: .75rem; }
.site-footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: var(--blanco);
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.site-footer__social a:hover { background: var(--naranja); transform: translateY(-3px); }

.site-footer__col h4 { font-family: var(--font-heading); font-size: .95rem; color: var(--blanco); margin-bottom: 1rem; letter-spacing: .02em; }
.site-footer__col ul { display: flex; flex-direction: column; gap: .7rem; }
.site-footer__col a, .site-footer__col li { font-size: .9rem; }
.site-footer__col a:hover { color: var(--blanco); text-decoration: underline; }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 1.5rem; text-align: center; font-size: .85rem; }

/* =============================================================
   18. WhatsApp flotante + barra de progreso
   ============================================================= */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--whatsapp);
  box-shadow: 0 10px 26px rgba(37,211,102,0.45);
  animation: waPulse 6s ease-in-out infinite;
}
.whatsapp-float .icon { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  0%, 88%, 100% { box-shadow: 0 10px 26px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  92% { box-shadow: 0 10px 26px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0); }
}

.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 900;
  height: 2px; width: 0%;
  background: var(--naranja);
  transition: width .1s linear;
}

/* =============================================================
   19. Animaciones de entrada (reveal)
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.how__line-fill { display: block; height: 100%; width: 0%; background: var(--naranja); transition: width 1.1s var(--ease-out); }
.how__steps.is-drawn .how__line-fill { width: 100%; }

/* =============================================================
   20. Responsive — 480 / 768 / 1024 / 1440
   ============================================================= */
@media (min-width: 480px) {
  .hero__actions .btn { min-width: 200px; }
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .nav__mobile-panel, .nav__scrim { display: none; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .accessories__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip__track { justify-content: center; }

  .why-block { flex-direction: row; align-items: flex-start; }
  .why-block--reverse { flex-direction: row-reverse; text-align: right; }
  .why-block--reverse .why-block__text { display: flex; flex-direction: column; align-items: flex-end; }

  .step { padding-left: 0; padding-top: 4rem; }
  .step__num { left: 50%; top: 0; transform: translateX(-50%); }
  .how__steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
  .how__line {
    display: block; position: absolute; top: 1.5rem;
    left: calc(12.5% + 1.5rem); right: calc(12.5% + 1.5rem);
    height: 3px; background: rgba(var(--azul-electrico-rgb), 0.15); border-radius: 3px;
    grid-column: 1 / -1; grid-row: 1;
  }

  .contact__grid { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .contact__map { min-height: 100%; }
  .contact__map iframe { height: 100%; }

  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3.5rem; }
  .hero__media { display: block; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .accessories__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1440px) {
  .container { max-width: 1320px; }
  .hero__title { max-width: 16ch; }
}

/* =============================================================
   22. Asistente de IA — Snoopy (chat widget)
   ============================================================= */
.chat-bubble {
  position: fixed; right: 1.25rem; bottom: 5.9rem; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--azul-electrico); color: var(--blanco);
  box-shadow: 0 10px 26px rgba(var(--azul-electrico-rgb),0.45);
  transition: transform .25s var(--ease-out);
}
.chat-bubble:hover { transform: scale(1.08); }
.chat-bubble .icon { width: 28px; height: 28px; }
.chat-bubble__dot {
  position: absolute; top: 6px; right: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--naranja); border: 2px solid var(--blanco);
}
.chat-bubble__dot[hidden] { display: none; }

.chat-panel {
  position: fixed; inset: 0; z-index: 500;
  display: flex; flex-direction: column;
  background: var(--blanco);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(0.92); transform-origin: bottom right;
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility 0s linear .28s;
}
.chat-panel.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: scale(1);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility 0s linear 0s;
}

.chat-panel__head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1rem 1.1rem; background: var(--azul-profundo); color: var(--blanco);
}
.chat-panel__who { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.chat-panel__avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: block; object-fit: cover; }
.chat-panel__name { font-family: var(--font-heading); font-weight: 700; font-size: .95rem; }
.chat-panel__status { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: rgba(255,255,255,0.7); }
.chat-panel__status-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc72; flex: none; }
.chat-panel__close {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.1); color: var(--blanco);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s var(--ease-out);
}
.chat-panel__close:hover { background: rgba(255,255,255,0.18); }
.chat-panel__close .icon { width: 16px; height: 16px; }

.chat-panel__messages {
  flex: 1 1 auto; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: .65rem;
}

.chat-msg {
  max-width: 84%; padding: .65rem .9rem; border-radius: 16px;
  font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.chat-msg--bot {
  align-self: flex-start; background: #F3F5F8; color: var(--gris-texto);
  border-bottom-left-radius: 4px;
}
.chat-msg--user {
  align-self: flex-end; background: var(--azul-electrico); color: var(--blanco);
  border-bottom-right-radius: 4px;
}
.chat-msg--typing { display: flex; gap: 4px; align-items: center; padding-block: .85rem; }
.chat-msg--typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gris-suave);
  animation: chatTypingBounce 1.2s infinite ease-in-out;
}
.chat-msg--typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-chips { display: flex; flex-wrap: wrap; gap: .5rem; align-self: flex-start; max-width: 100%; }
.chat-chip {
  border: 1px solid rgba(var(--azul-electrico-rgb),0.35); background: var(--blanco);
  color: var(--azul-electrico); font: inherit; font-size: .82rem; font-weight: 600;
  padding: .45rem .8rem; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease-out);
}
.chat-chip:hover { background: var(--azul-suave); }
.chat-chip--wa { border-color: rgba(37,211,102,0.4); color: #1a8f45; }
.chat-chip--wa:hover { background: rgba(37,211,102,0.1); }

.chat-lead-form { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.chat-lead-form input {
  border: 1px solid rgba(28,36,49,0.15); border-radius: var(--radius-sm);
  padding: .55rem .7rem; font: inherit; font-size: .88rem; color: var(--gris-texto);
}
.chat-lead-form input:focus { outline: 2px solid var(--azul-electrico); outline-offset: 1px; }
.chat-lead-form button[type="submit"] {
  background: var(--naranja); color: var(--blanco); border: none; border-radius: var(--radius-sm);
  padding: .6rem; font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: background-color .2s var(--ease-out);
}
.chat-lead-form button[type="submit"]:hover { background: var(--naranja-hover); }
.chat-lead-form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }
.chat-lead-form small { color: var(--gris-suave); font-size: .72rem; line-height: 1.4; }

.chat-panel__composer {
  flex: none; border-top: 1px solid rgba(28,36,49,0.08);
  padding: .75rem .9rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--blanco);
}
.chat-panel__composer-row { display: flex; align-items: flex-end; gap: .6rem; }
.chat-panel__composer textarea {
  flex: 1 1 auto; resize: none; border: 1px solid rgba(28,36,49,0.15);
  border-radius: var(--radius-sm); padding: .6rem .75rem; font: inherit; font-size: .92rem;
  max-height: 96px; line-height: 1.4; color: var(--gris-texto);
}
.chat-panel__composer textarea:focus { outline: 2px solid var(--azul-electrico); outline-offset: 1px; }
.chat-panel__composer textarea:disabled { background: #F3F5F8; color: var(--gris-suave); }
.chat-panel__send {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--naranja); color: var(--blanco);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s var(--ease-out);
}
.chat-panel__send:hover { background: var(--naranja-hover); }
.chat-panel__send:disabled { opacity: .5; cursor: not-allowed; }
.chat-panel__send .icon { width: 18px; height: 18px; }
.chat-panel__count { display: block; text-align: right; font-size: .72rem; color: var(--gris-suave); margin-top: .3rem; }

@media (min-width: 768px) {
  .chat-panel {
    inset: auto; right: 1.25rem; bottom: 5.9rem;
    width: 380px; max-width: calc(100vw - 2.5rem);
    height: min(600px, calc(100vh - 8rem));
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  }
}

/* =============================================================
   21. Accesibilidad de movimiento
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg { animation: none; }
  .whatsapp-float { animation: none; }
  [data-reveal] {
    opacity: 1; transform: none; transition: none;
  }
  .how__line-fill { transition: none; }
  .chat-panel, .chat-panel.is-open { transition: none; }
  .chat-msg--typing span { animation: none; }
  * { scroll-behavior: auto !important; }
}
