/* ==========================================================================
   ZOONARANJA — Estilos específicos por sección
   ========================================================================== */

/* ---- Trust bar (bajo el hero) ---- */
#trust-bar {
  position: relative;
  z-index: 3;
  margin-top: -44px;
  padding: 0 24px;
  background: linear-gradient(to bottom, transparent 44px, var(--off-white) 44px);
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 28px 20px;
  min-height: 112px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(11, 75, 95, 0.16);
}
.trust-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 0 16px;
  color: var(--ink-700);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}
.trust-bar-item + .trust-bar-item { border-left: 1px solid var(--ink-100); }
.trust-bar-item i { color: var(--turquoise); font-size: 1.35rem; flex-shrink: 0; }
.trust-bar-item.trust-bar-rating { gap: 0.25rem; }
#hero .hero-content { padding-bottom: 5rem; }
#hero .scroll-cue { bottom: 60px; }

@media (max-width: 900px) {
  .trust-bar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .trust-bar-item { justify-content: center; padding: 0; }
  .trust-bar-item + .trust-bar-item { border-left: 0; }
  .trust-bar-item:last-child { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 560px) {
  #trust-bar { padding-right: 16px; padding-left: 16px; }
  .trust-bar-inner { padding: 24px 16px; gap: 18px 12px; }
  .trust-bar-item { font-size: 0.75rem; gap: 0.5rem; }
}

/* ---- Servicios ---- */
#services { background: var(--off-white); position: relative; }

/* ---- Stats ---- */
#stats {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--blue-vet-dark) 60%, var(--ink-800) 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}
#stats .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); position: relative; z-index: 1; }
#stats .section-head .section-subtitle { color: rgba(255,255,255,0.7); }
#stats .section-head .eyebrow { color: var(--turquoise-light); }
#stats h2 { color: #fff; }

/* ---- Testimonios ---- */
#testimonials { background: var(--white); }
#testimonials .section-head { min-width: 0; }
#testimonials .testimonials-layout { align-items: stretch; }
#testimonials .testimonials-layout > .section-head { margin-bottom: 0; }
.video-testimonials-col { min-width: 0; padding: 0 0 3rem; display: flex; }
.video-testimonials-col > .grid-2 {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
}
.video-testimonials-col .video-testimonial { min-width: 0; min-height: 260px; aspect-ratio: auto; }
.video-testimonials-col .video-testimonial img { position: absolute; inset: 0; display: block; }
@media (max-width: 860px) {
  .video-testimonials-col { padding-bottom: 0; }
  .video-testimonials-col .video-testimonial { min-height: 0; aspect-ratio: 9 / 12; }
}
.swiper-testimonials { width: 100%; padding: 0.5rem 0 3rem; }
.swiper-testimonials .swiper-wrapper { align-items: stretch; }
.swiper-testimonials .swiper-slide { height: auto; display: flex; }
.swiper-testimonials .testimonial-card { width: 100%; height: auto; padding: 1.25rem; gap: 1rem; }
.swiper-testimonials .swiper-pagination-bullet { background: var(--ink-300); opacity: 1; }
.swiper-testimonials .swiper-pagination-bullet-active { background: var(--orange); width: 24px; border-radius: var(--radius-full); }
.video-testimonial { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 9/12; cursor: pointer; }
.video-testimonial img { width: 100%; height: 100%; object-fit: cover; }
.video-testimonials-col .video-testimonial-pinterest { display: flex; flex-direction: column; background: var(--white); cursor: default; min-height: 0; aspect-ratio: auto; }
.pinterest-video-frame { position: relative; width: 100%; flex: 1; min-height: 360px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius-lg); }
.pinterest-video-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; overflow: hidden; }
@media (max-width: 560px) {
  .video-testimonials-col > .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
.pinterest-video-link { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; font-size: 0.8125rem; color: var(--ink-900); text-decoration: underline; }
.pinterest-video-link:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; }
.video-testimonial .vt-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,31,43,0.2); }
.video-testimonial .vt-play i { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

/* ---- Galería ---- */
#gallery { background: var(--off-white); }

/* ---- Antes / Después ---- */
#before-after { background: var(--white); }

/* ---- Equipo ---- */
#team { background: var(--off-white); }

/* ---- Reservas ---- */
#booking {
  background: var(--grad-primary);
  position: relative;
  color: #fff;
  overflow: hidden;
}
#booking .section-head .eyebrow { color: #FFE3D1; }
#booking .section-head .eyebrow::before { background: #fff; }
#booking h2 { color: #fff; }
#booking .section-subtitle { color: rgba(255,255,255,0.85); }
.booking-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-xl);
  color: var(--ink-800);
}
.booking-steps { display: flex; justify-content: space-between; margin-bottom: var(--space-lg); position: relative; }
.booking-steps::before { content: ''; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: var(--ink-100); z-index: 0; }
.booking-step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; position: relative; z-index: 1; flex: 1; }
.booking-step .step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink-100); color: var(--ink-500);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.booking-step.active .step-num, .booking-step.done .step-num { background: var(--grad-warm); color: #fff; }
.booking-step span.step-label { font-size: 0.75rem; color: var(--ink-500); font-weight: 600; text-align: center; }
.booking-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

/* ---- Blog ---- */
#blog { background: var(--white); }

/* ---- FAQ ---- */
#faq { background: var(--off-white); }
.faq-list { max-width: 780px; margin: 0 auto; }

/* ---- Recorrido virtual ---- */
#virtual-tour { background: var(--white); }

/* ---- Calculadora edad + calendario vacunas (dos columnas) ---- */
#tools { background: var(--off-white); }
.tool-tabs { display: flex; gap: 0.6rem; margin-bottom: var(--space-lg); flex-wrap: wrap; }
.tool-tab-btn { padding: 0.6rem 1.3rem; border-radius: var(--radius-full); background: var(--white); border: 1.5px solid var(--ink-200); font-weight: 700; font-size: 0.85rem; }
.tool-tab-btn.active { background: var(--grad-primary); color: #fff; border-color: transparent; }
.tool-panel { display: none; }
.tool-panel.active { display: block; }

/* ---- Adopciones ---- */
#adoption { background: var(--white); }

/* ---- Membresías ---- */
#membership { background: var(--off-white); }

/* ---- Sedes ---- */
#locations { background: var(--white); }
.peru-map-wrap {
  position: relative;
  background: var(--ink-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 300/436;
  max-width: 420px;
  margin: 0 auto;
}
.peru-map-wrap #peru-map { width: 100%; height: 100%; }
.peru-map-wrap .leaflet-control-zoom { margin: 12px !important; box-shadow: var(--shadow-sm); border: none !important; }
.peru-map-wrap .leaflet-control-zoom a { border-radius: var(--radius-sm) !important; color: var(--blue-vet) !important; }
.location-search-bar { margin-bottom: var(--space-lg); }
.location-tabs { display: flex; gap: 0.6rem; margin-bottom: var(--space-md); flex-wrap: wrap; }
.location-tab-btn { padding: 0.5rem 1.1rem; border-radius: var(--radius-full); background: var(--ink-100); font-weight: 700; font-size: 0.8rem; color: var(--ink-600); }
.location-tab-btn.active { background: var(--grad-primary); color: #fff; }
.locations-scroll { max-height: 560px; overflow-y: auto; padding-right: 0.5rem; display: flex; flex-direction: column; gap: 1rem; }
.location-list-item {
  flex-shrink: 0;
  display: flex; gap: 1rem; padding: 1rem; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--ink-100);
  cursor: pointer; transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.location-list-item:hover, .location-list-item.active { border-color: var(--turquoise); transform: translateX(4px); }
.location-list-item .loc-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.location-list-item h5 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.location-list-item p { font-size: 0.8rem; color: var(--ink-500); }
/* Pines personalizados sobre el mapa Leaflet */
.map-pin { background: transparent; border: none; }
.map-pin .pin-dot {
  position: absolute; top: 0; left: 3px;
  width: 20px; height: 20px; border-radius: 50% 50% 50% 0;
  background: var(--grad-warm);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  transform: rotate(-45deg);
  transition: transform var(--dur-fast) var(--ease-bounce), background var(--dur-fast);
}
.map-pin .pin-pointer { display: none; }
.map-pin:hover .pin-dot, .map-pin.active .pin-dot {
  transform: rotate(-45deg) scale(1.25);
  background: var(--grad-primary);
}

/* Tooltip con la dirección exacta al pasar el mouse sobre un pin */
.zoo-map-tooltip {
  background: var(--white);
  color: var(--ink-800);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
}
.zoo-map-tooltip strong { display: block; font-size: 0.85rem; color: var(--ink-900); margin-bottom: 2px; }
.leaflet-tooltip-top.zoo-map-tooltip::before { border-top-color: var(--white); }
/* ---- Chatbot / IA / Asistente virtual sección promo ---- */
#ai-assistant-promo {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--turquoise) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
#ai-assistant-promo h2 { color: #fff; }
#ai-assistant-promo .section-subtitle { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.ai-promo-icons { text-align: center; font-size: 8rem; line-height: 1; white-space: nowrap; }

/* ---- Contacto ---- */
#contact { background: var(--off-white); }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: var(--space-md); }
.contact-info-item .ci-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--grad-primary);
  color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item h5 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-info-item p { font-size: 0.87rem; color: var(--ink-500); }
.map-embed-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 260px; margin-top: var(--space-md); }
.map-embed-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(15%); }
.social-row { display: flex; gap: 0.7rem; margin-top: var(--space-md); }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%; background: var(--ink-100); color: var(--blue-vet);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease-soft);
}
.social-row a:hover { background: var(--grad-warm); color: #fff; transform: translateY(-4px); }

/* ---- Footer ---- */
#site-footer {
  background: var(--ink-900);
  color: var(--ink-200);
  padding: var(--space-2xl) 0 var(--space-md);
  position: relative;
  overflow: hidden;
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: var(--space-lg); padding-bottom: var(--space-xl); }
.footer-logo { display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: var(--space-md); }
.footer-logo img { width: 34px; height: 34px; border-radius: 10px; }
.footer-logo-word { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--turquoise-light); }
.footer-logo-word strong { color: var(--orange); }
.footer-brand p { color: var(--ink-400); font-size: 0.88rem; line-height: 1.7; max-width: 300px; }
.footer-col h5 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-md); font-family: var(--font-display); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--ink-400); font-size: 0.88rem; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--turquoise-light); }
.footer-col .footer-hours { color: var(--ink-400); font-size: 0.8rem; }
.footer-newsletter { display: flex; gap: 0.5rem; margin-top: var(--space-sm); }
.footer-newsletter input {
  flex: 1; padding: 0.7rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--ink-700);
  background: var(--ink-800); color: #fff; font-size: 0.85rem;
}
.footer-newsletter button { background: var(--grad-warm); color: #fff; padding: 0.7rem 1rem; border-radius: var(--radius-sm); flex-shrink: 0; }
.footer-social { display: flex; gap: 1rem; margin-top: var(--space-md); }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: #1e293b;
  display: flex; align-items: center; justify-content: center; color: #94a3b8;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.footer-social a i { transition: transform 0.3s ease; }
.footer-social a:hover { color: #fff; transform: scale(1.1); }
.footer-social a:hover i { transform: rotate(12deg); }
.footer-social-linkedin:hover { background: #0a66c2; box-shadow: 0 0 20px rgba(10, 102, 194, 0.6); }
.footer-social-instagram:hover { background: linear-gradient(to top right, #feda75, #d62976, #4f5bd5); box-shadow: 0 0 20px rgba(214, 41, 118, 0.6); }
.footer-social-tiktok:hover { background: #000; box-shadow: 0 0 20px rgba(0, 0, 0, 0.6); }
.footer-social-facebook:hover { background: #1877f2; box-shadow: 0 0 20px rgba(24, 119, 242, 0.6); }
.footer-bottom {
  border-top: 1px solid var(--ink-700);
  padding-top: var(--space-md);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--ink-500);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--ink-500); }
.footer-bottom-links a:hover { color: var(--turquoise-light); }
.footer-credit { color: var(--ink-500); font-weight: 600; transition: color var(--dur-fast); }
.footer-credit:hover { color: var(--orange); }

@media (max-width: 1024px) {
  #stats .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .booking-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #stats .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.35rem;
  }
  #stats .stat-card {
    padding: 0.85rem 0.2rem;
  }
  #stats .stat-number {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }
  #stats .stat-label {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-lg); }
}
