:root {
  --navy: #16273f;
  --navy-dark: #0a1420;
  --blue-accent: #3d7cf4;
  --blue-accent-dark: #1f4dc4;
  --spidey-red: #e2231a;
  --spidey-red-dark: #9c0f0a;
  --spidey-blue: #0a2472;
  --spidey-blue-dark: #061341;
  --ink: #0a1018;
  --paper: #f4f1e8;
  --gold: #ffd23f;
  --card-bg: #10192a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--ink);
  color: var(--paper);
  overflow-wrap: break-word;
  overflow-x: hidden;
}

/* ---------- Animated Spider-Man themed background ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #050512;
}

/* Foto de calle urbana (Unsplash, uso libre) como base fotográfica del hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/hero-city.jpg") center 35% / cover no-repeat;
  filter: saturate(1.15) contrast(1.08) brightness(0.85);
  transform: scale(1.06);
  z-index: 0;
}

/* Duotono rojo/azul + viñeta animada encima de la foto, para el look cinematográfico */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(226,35,26,0.22), transparent 40%),
    radial-gradient(circle at 78% 20%, rgba(61,124,244,0.55), transparent 55%),
    linear-gradient(180deg, rgba(10,20,32,0.4) 0%, rgba(10,20,32,0.3) 35%, rgba(10,16,26,0.6) 70%, rgba(8,13,20,0.94) 100%);
  background-size: 200% 200%, 200% 200%, 100% 100%;
  mix-blend-mode: hard-light;
  animation: bgShift 18s ease-in-out infinite;
  z-index: 1;
}

@keyframes bgShift {
  0%   { background-position: 0% 0%, 0% 0%, 0 0; }
  50%  { background-position: 100% 60%, 0% 40%, 0 0; }
  100% { background-position: 0% 0%, 0% 0%, 0 0; }
}

.web-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.5) 0px, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 90px),
    repeating-linear-gradient(25deg, rgba(255,255,255,0.5) 0px, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 90px),
    repeating-radial-gradient(circle at 15% -10%, transparent 0, transparent 60px, rgba(255,255,255,0.35) 61px, transparent 63px);
  animation: webPulse 9s ease-in-out infinite;
}

@keyframes webPulse {
  0%, 100% { opacity: 0.14; }
  50% { opacity: 0.26; }
}

/* Grafiti "back to school" pintado en la pared, detrás de Spider-Man */
.hero-graffiti {
  position: absolute;
  top: 6vh;
  left: 50%;
  z-index: 2;
  width: min(92vw, 640px);
  transform: translateX(-50%) rotate(-4deg);
  opacity: 0.92;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  animation: graffitiWrite 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.6s forwards;
  filter: drop-shadow(0 0 18px rgba(0,0,0,0.35));
}

@keyframes graffitiWrite {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

.skyline {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 34vh;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.85) 0 40px,
      rgba(0,0,0,0.65) 40px 45px,
      transparent 45px 90px);
  clip-path: polygon(
    0 60%, 4% 40%, 8% 60%, 12% 20%, 16% 55%, 20% 35%, 24% 65%,
    28% 30%, 32% 58%, 36% 15%, 40% 50%, 44% 40%, 48% 62%,
    52% 25%, 56% 55%, 60% 38%, 64% 60%, 68% 20%, 72% 50%,
    76% 42%, 80% 65%, 84% 30%, 88% 55%, 92% 18%, 96% 48%, 100% 60%,
    100% 100%, 0 100%
  );
  opacity: 0.9;
}

.spidey-hang {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.spidey-img {
  height: 50vh;
  width: auto;
  max-width: 70vw;
  vertical-align: top;
  margin-top: -20px;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.5));
  animation: spideyBob 2.4s ease-in-out infinite alternate;
}

.spidey-shadow {
  width: 70px;
  height: 12px;
  margin-top: 8px;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  animation: spideyShadow 2.4s ease-in-out infinite alternate;
}

@keyframes spideyBob {
  from { transform: translateY(-30px); }
  to   { transform: translateY(0px); }
}

@keyframes spideyShadow {
  from { transform: scale(1); opacity: 0.35; }
  to   { transform: scale(0.6); opacity: 0.15; }
}

/* ---------- Navbar / Hero content ---------- */

.navbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 2rem;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(61,124,244,0.5));
}

.nav-cta {
  color: var(--paper);
  background: linear-gradient(135deg, var(--blue-accent), var(--navy));
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--blue-accent);
  transition: transform 0.2s ease;
}
.nav-cta:hover { transform: scale(1.06); }

.hero-content {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: calc(50vh + 20px);
  --eyebrow-size: clamp(0.7rem, 2.6vw, 1.05rem);
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: var(--eyebrow-size);
  margin-bottom: 1rem;
}

/* El título mide exactamente 1.618x (proporción áurea) el texto amarillo
   de arriba, en todos los tamaños de pantalla. */
.hero-content h1 {
  font-size: calc(var(--eyebrow-size) * 1.618);
  line-height: 1.15;
  font-weight: 900;
  text-shadow: 0 0 24px rgba(61,124,244,0.5);
}

/* Cada línea del título nunca se envuelve: el texto siempre queda en
   exactamente 2 líneas, el tamaño se ajusta proporcionalmente al ancho. */
.h1-line {
  display: block;
  white-space: nowrap;
}

.hero-sub {
  margin-top: 1.2rem;
  color: rgba(244,241,232,0.8);
  font-size: 1.05rem;
}

.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--navy));
  color: white;
  font-weight: 800;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(61,124,244,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(61,124,244,0.55); }

.hero-car {
  position: relative;
  z-index: 3;
  text-align: center;
  line-height: 1;
  margin-top: 1.5rem;
  animation: carGlow 4s ease-in-out infinite;
}

.hero-car .car-icon {
  width: clamp(80px, 14vw, 140px);
  height: auto;
}

@keyframes carGlow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(61,124,244,0.6)) drop-shadow(0 30px 20px rgba(0,0,0,0.6)); }
  50% { filter: drop-shadow(0 0 30px rgba(61,124,244,0.9)) drop-shadow(0 30px 20px rgba(0,0,0,0.6)); }
}

/* Ícono de auto compartido (hero + fallback de fotos en tarjetas + modal) */
.car-icon {
  width: 64px;
  height: 64px;
}

.scroll-hint {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-bottom: 1.5rem;
  color: rgba(244,241,232,0.6);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- Finder section ---------- */

.finder {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.filters-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(61,124,244,0.12), transparent 40%),
    repeating-linear-gradient(115deg, rgba(61,124,244,0.06) 0px, rgba(61,124,244,0.06) 1px, transparent 1px, transparent 70px),
    repeating-linear-gradient(25deg, rgba(61,124,244,0.06) 0px, rgba(61,124,244,0.06) 1px, transparent 1px, transparent 70px),
    var(--card-bg);
  border: 1px solid rgba(61,124,244,0.35);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 0 0 1px rgba(61,124,244,0.15), 0 20px 40px rgba(0,0,0,0.4);
}

.filters-corner-web {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  pointer-events: none;
  opacity: 0.8;
}

.filters-panel h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.web-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-bottom: 1.5rem;
}

.filter-block label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(244,241,232,0.65);
  margin-bottom: 0.5rem;
}

.range-values {
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.filter-hint {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(244,241,232,0.5);
}

.contado-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0.7rem;
  font-size: 0.82rem;
  color: rgba(244,241,232,0.8);
  cursor: pointer;
}

.contado-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-accent);
}

.single-slider {
  position: relative;
  height: 32px;
}
.single-slider input[type="range"] {
  position: absolute;
  width: 100%;
  top: 12px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.single-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(244,241,232,0.15);
  border-radius: 3px;
}
.single-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  margin-top: -13px;
  border-radius: 50%;
  background: url("../assets/web-thumb.svg") center / contain no-repeat;
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(61,124,244,0.7));
}
.single-slider input[type="range"]::-moz-range-track {
  height: 6px;
  background: rgba(244,241,232,0.15);
  border-radius: 3px;
}
.single-slider input[type="range"]::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: url("../assets/web-thumb.svg") center / contain no-repeat;
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(61,124,244,0.7));
}

select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(244,241,232,0.2);
  border-radius: 8px;
  font-size: 0.95rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.chip-label {
  font-size: 0.8rem;
  color: rgba(244,241,232,0.6);
  margin-right: 0.4rem;
}
.chip {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(244,241,232,0.25);
  background: transparent;
  color: var(--paper);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--blue-accent); }
.chip.active {
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  font-weight: 700;
}

.results-count {
  font-size: 0.85rem;
  color: rgba(244,241,232,0.55);
  margin-top: 0.5rem;
}

.match-highlight {
  margin-top: 1.1rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(61,124,244,0.18), rgba(61,124,244,0.05));
  border: 1px solid rgba(61,124,244,0.4);
}

.match-title {
  font-weight: 800;
  color: var(--paper);
  font-size: 0.95rem;
}

.match-detail {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: rgba(244,241,232,0.8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.match-percent {
  display: inline-block;
  background: var(--blue-accent);
  color: white;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ---------- Results ---------- */

.results-grid {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.8rem 1.4rem;
}

.car-card {
  position: relative;
  cursor: pointer;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  transform-origin: top center;
  transition: box-shadow 0.2s ease;
  animation: cardSway 5s ease-in-out infinite;
}
.car-card:nth-child(3n) { animation-duration: 4.3s; animation-delay: -1.1s; }
.car-card:nth-child(3n+1) { animation-duration: 5.6s; animation-delay: -2.4s; }
.car-card:nth-child(3n+2) { animation-duration: 4.9s; animation-delay: -0.6s; }

@keyframes cardSway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

/* Hilo de telaraña del que "cuelga" cada auto que coincide con el filtro */
.car-card::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent, rgba(244,241,232,0.4));
}
.car-card::after {
  content: "";
  position: absolute;
  top: -27px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-accent);
  box-shadow: 0 0 6px rgba(61,124,244,0.9);
}

.car-card:hover {
  animation-play-state: paused;
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 16px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--blue-accent);
}

.car-photo {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

/* Sin alto fijo: cada tarjeta toma la altura natural de su foto a lo ancho
   completo de la tarjeta, sin recortar ni dejar barras vacías. */
.car-img {
  display: block;
  width: 100%;
  height: auto;
}

.car-fallback {
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 160px;
}
.car-fallback .car-icon {
  width: 56px;
  height: 56px;
  opacity: 0.45;
}

.car-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--blue-accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.car-body {
  padding: 1rem 1.1rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0 0 14px 14px;
}

.car-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.car-year {
  color: rgba(244,241,232,0.55);
  font-size: 0.85rem;
}

.car-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  margin-top: 0.2rem;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.spec-chip {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.07);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  color: rgba(244,241,232,0.75);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(244,241,232,0.5);
}

.site-footer {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: rgba(244,241,232,0.4);
}

@media (max-width: 600px) {
  .spidey { display: none; }
}

/* ---------- Modal de detalle del auto ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid rgba(61,124,244,0.35);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(61,124,244,0.15);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(10,16,24,0.6);
  color: var(--paper);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.modal-close:hover { background: var(--blue-accent); }

.modal-gallery {
  position: relative;
  height: 340px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.modal-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-fallback {
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.modal-fallback .car-icon {
  width: 100px;
  height: 100px;
  opacity: 0.4;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(10,16,24,0.55);
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.modal-nav:hover { background: var(--blue-accent); }
.modal-prev { left: 14px; }
.modal-next { right: 14px; }

.modal-photo-count {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(10,16,24,0.65);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.modal-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  overflow-x: auto;
}
.modal-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.modal-thumb:hover { opacity: 0.85; }
.modal-thumb.active {
  opacity: 1;
  border-color: var(--blue-accent);
}

.modal-body {
  padding: 0.4rem 1.5rem 1.8rem;
}

.modal-badge {
  display: inline-block;
  background: var(--blue-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--paper);
}

.modal-version {
  color: rgba(244,241,232,0.6);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.modal-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  margin-top: 0.6rem;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.modal-spec-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(244,241,232,0.5);
  margin-bottom: 0.2rem;
}

.modal-spec-value {
  font-weight: 700;
  color: var(--paper);
  font-size: 0.95rem;
}

.modal-description {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(244,241,232,0.75);
  line-height: 1.5;
}

.whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  background: var(--spidey-red);
  color: var(--paper);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(226,35,26,0.4);
}

.whatsapp-cta .whatsapp-icon {
  width: 22px;
  height: 22px;
  fill: var(--paper);
  flex-shrink: 0;
}

/* Botón flotante de WhatsApp con una araña colgando de un hilo, en tema
   con Spider-Man, que se balancea todo el tiempo y baja al pasar el mouse. */
.whatsapp-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--spidey-red);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  animation: whatsappPulse 2.6s ease-in-out infinite;
}

.whatsapp-float .whatsapp-icon {
  width: 30px;
  height: 30px;
  fill: var(--paper);
}

.spider-thread {
  position: absolute;
  top: -36px;
  left: 50%;
  width: 1px;
  height: 32px;
  background: rgba(244,241,232,0.55);
  transform-origin: top center;
  animation: spiderSwing 3.2s ease-in-out infinite;
  transition: height 0.4s ease;
}

.whatsapp-float:hover .spider-thread {
  height: 56px;
}

.spider-emoji {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@keyframes spiderSwing {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(9deg); }
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 0 rgba(226,35,26,0.5); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 10px rgba(226,35,26,0); }
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float .whatsapp-icon { width: 26px; height: 26px; }
}

@media (max-width: 600px) {
  .modal-gallery { height: 240px; }
  .modal-title { font-size: 1.25rem; }
  .modal-price { font-size: 1.4rem; }
}
