/* ==========================================================================
   PROPHARMACY - SISTEMA DE DISEÑO CORPORATIVO Y MOTION DESIGN (CSS VANILLA)
   ========================================================================== */

/* Importación de Fuentes Premium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* Variables Estrictas de Colores Corporativos (Light Mode Único) */
:root {
  --brand-blue: #053f98;
  --brand-blue-dark: #062966;
  --brand-sky: #45aee0;
  --brand-sky-soft: #e9f6fd;
  
  --ink: #071a38;
  --muted: #5b6b82;
  --line: #dce8f4;
  --paper: #f5f9fd;
  --white: #ffffff;
  
  --success: #10b981;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c4a;
  
  --gradient-brand: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-sky) 100%);
  --bg-gradient: linear-gradient(180deg, #ffffff 0%, var(--paper) 45%, #ffffff 100%);
  
  --shadow-sm: 0 4px 12px rgba(7, 26, 56, 0.03);
  --shadow-md: 0 12px 28px rgba(7, 26, 56, 0.06);
  --shadow-lg: 0 24px 60px rgba(7, 26, 56, 0.1);
  --shadow-glow: 0 8px 24px rgba(5, 63, 152, 0.15);
  
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 32px;
  
  /* Curva de Desaceleración Premium Estilo Ralph Lauren/Nike */
  --ease-out-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.5s var(--ease-out-premium);
  --transition-slow: 0.8s var(--ease-out-premium);
  --transition-fast: 0.25s var(--ease-out-premium);
}

/* ==========================================================================
   RESET & BASES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-gradient);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Estilizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: rgba(5, 63, 152, 0.15);
  border-radius: 99px;
  border: 1px solid var(--paper);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-sky);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   ELEMENTOS DE DECORACIÓN ABSTRACTA (BLOBS)
   ========================================================================== */

.ambient-blob {
  position: absolute;
  width: 35rem;
  height: 35rem;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
  animation: floatBlob 24s infinite alternate ease-in-out;
}

.ambient-blob-1 {
  top: -12rem;
  left: -8rem;
  background: var(--brand-blue);
}

.ambient-blob-2 {
  top: 48rem;
  right: -8rem;
  background: var(--brand-sky);
  animation-duration: 30s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3rem, 5rem) scale(1.1); }
}

/* ==========================================================================
   FRAMEWORK DE DISEÑO DE MOVIMIENTO (MOTION DESIGN)
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.fade-up {
  transform: translateY(40px);
}

.animate-on-scroll.slide-left {
  transform: translateX(-50px);
}

.animate-on-scroll.slide-right {
  transform: translateX(50px);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* Retardos Secuenciales (Staggered Delays) */
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }

/* ==========================================================================
   CABECERA (SITE HEADER - CON MENÚ MÓVIL HAMBURGUESA)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1200px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 28px;
  border: 1px solid rgba(220, 232, 244, 0.8);
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
}

.brand-logo {
  display: block;
  width: 95px;
  height: 52px;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

/* Menú Estilo Pill */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 99px;
  background: rgba(242, 247, 252, 0.8);
  border: 1px solid var(--line);
}

.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.main-nav a:hover {
  background: var(--white);
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

/* Botón Hamburguesa de Menú Móvil */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--brand-blue);
  border-radius: 9px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   SECCIÓN HERO & BUSCADOR DE ASISTENCIA
   ========================================================================== */

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 310px;
  align-items: center;
  gap: 40px;
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: clamp(38px, 6vw, 76px);
  overflow: visible;
  border-radius: var(--border-radius-lg);
  background-image: 
    linear-gradient(90deg, rgba(7, 26, 56, 0.96) 0%, rgba(7, 26, 56, 0.82) 42%, rgba(7, 26, 56, 0.18) 78%),
    url("assets/images/propharmacy-hero.png");
  background-position: center;
  background-size: cover;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-logo {
  display: inline-block;
  width: 112px;
  height: auto;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform var(--transition-normal);
}

.hero-logo:hover {
  transform: scale(1.02);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(69, 174, 224, 0.15);
  border: 1px solid rgba(69, 174, 224, 0.25);
  color: #c6efff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 span {
  background: linear-gradient(135deg, #ffffff 40%, var(--brand-sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 30px;
}

/* Botones con Micro-movimiento Premium */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.button.primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(5, 63, 152, 0.25);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.button.small-btn {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 0.82rem;
  border-radius: 99px;
}

/* Buscador de Asistencia Inteligente */
.search-assistant {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: grid;
  gap: 10px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrapper svg.search-icon {
  position: absolute;
  left: 20px;
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.5);
  fill: none;
  stroke-width: 2.2;
}

.search-input-wrapper input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  outline: none;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

.search-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-input-wrapper input:focus {
  border-color: var(--brand-sky);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(69, 174, 224, 0.2);
}

.search-clear-btn {
  position: absolute;
  right: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  display: none;
}

.search-clear-btn:hover {
  color: #ffffff;
}

/* Resultados del Buscador */
.search-results {
  display: none;
  position: static;
  z-index: 50;
  width: 100%;
  max-height: min(360px, 48vh);
  overflow-y: auto;
  padding: 10px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.search-results.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.search-result-card {
  padding: 14px 16px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-fast);
}

.search-result-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.search-result-card:hover {
  background: var(--brand-sky-soft);
}

.search-result-card h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 6px;
}

.search-result-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.search-result-no-match {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.search-result-no-match p {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

/* Panel Lateral Badges (Hero) */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  z-index: 2;
}

.hero-panel span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.hero-panel span:hover {
  transform: translateX(-6px);
  box-shadow: var(--shadow-md);
}

.hero-panel span::before {
  content: " ";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-sky);
}

/* ==========================================================================
   SECCIONES Y LAYOUT GENERAL
   ========================================================================== */

.section {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 110px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
  background: var(--brand-sky-soft);
  color: var(--brand-blue);
  border: 1px solid rgba(5, 63, 152, 0.1);
}

h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--brand-blue-dark);
  letter-spacing: -0.02em;
}

/* Intro Asimétrica */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.intro-grid {
  display: grid;
  gap: 22px;
  font-size: 1.05rem;
  color: var(--muted);
}

.intro-grid p {
  padding-left: 20px;
  border-left: 3.5px solid var(--brand-sky);
  line-height: 1.65;
}

/* Estadísticas con Micro-animación */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 0;
}

.stats article {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--border-radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.stats article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-sky);
}

.stats-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--brand-sky-soft);
  color: var(--brand-blue);
  transition: all var(--transition-normal);
}

.stats article:hover .stats-icon-wrapper {
  background: var(--brand-blue);
  color: var(--white);
  transform: scale(1.05);
}

.stats-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.stats strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-sky);
}

.stats b {
  display: block;
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--brand-blue-dark);
  font-size: 1.38rem;
  font-weight: 700;
}

.stats span {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN DE SERVICIOS
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 38px 34px;
  border: 1px solid var(--line);
  border-radius: var(--border-radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-sky);
  box-shadow: var(--shadow-lg);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 30px;
  border-radius: 14px;
  background: var(--brand-sky-soft);
  color: var(--brand-blue);
  transition: all var(--transition-normal);
}

.service-card:hover .icon {
  background: var(--gradient-brand);
  color: #ffffff;
  transform: scale(1.06);
}

.service-card .icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   PUNTOS DE DISTRIBUCIÓN - GOOGLE MAPS & LOCALIZADOR DINÁMICO (FILTRO / SCROLL)
   ========================================================================== */

.points-section {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - 1200px) / 2));
  padding-left: max(16px, calc((100vw - 1200px) / 2));
  background: 
    radial-gradient(circle at 90% 20%, rgba(69, 174, 224, 0.12) 0%, transparent 35rem),
    linear-gradient(135deg, var(--brand-sky-soft) 0%, var(--paper) 100%);
}

/* Barra de Búsqueda Compacta con GPS Integrado */
.points-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.points-search-bar input {
  width: 100%;
  padding: 12px 52px 12px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.points-search-bar input:focus {
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 3px rgba(69, 174, 224, 0.15);
}

.points-search-bar button {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.points-search-bar button:hover {
  transform: scale(1.05);
}

.points-search-bar button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Animación GPS de Carga */
.points-search-bar button.loading {
  background: var(--muted);
  cursor: not-allowed;
  animation: gpsPulse 1s infinite alternate ease-in-out;
}

@keyframes gpsPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.points-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  margin-top: 40px;
}

/* Panel del Mapa Iframe de Google Maps */
.map-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.map-iframe-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Tarjeta de Detalles Flotante sobre el Mapa - Versión Súper Compacta */
.map-detail-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.map-detail-card:empty {
  display: none;
}

.map-detail-card.fade-out {
  opacity: 0;
  transform: translateY(12px);
}

.map-detail-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 6px;
}

.detail-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
}

.status-badge {
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.closest-badge {
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(5, 63, 152, 0.08);
  border: 1px solid rgba(5, 63, 152, 0.15);
  color: var(--brand-blue);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.list-closest-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Grilla de 2 Columnas para Detalles Compactos */
.detail-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-col p {
  margin-bottom: 4px;
}

.detail-col p strong {
  color: var(--ink);
}

.detail-desc {
  font-style: italic;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* Lista Lateral de Tarjetas (Scrollable) */
.points-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(560px, 68vh);
  overflow-y: auto;
  padding-right: 8px;
  overscroll-behavior: contain;
}

.point-card {
  position: relative;
  min-height: 92px;
  padding: 13px 14px 13px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.point-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--line);
  transition: all var(--transition-normal);
}

.point-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-sky);
}

.point-card.active {
  border-color: var(--brand-sky);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.point-card.active::before {
  background: var(--gradient-brand);
  width: 5px;
}

.point-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  line-height: 1.2;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.point-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 5px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.point-card span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.3;
  color: var(--brand-blue);
  font-weight: 600;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ==========================================================================
   SECCIÓN DE PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */

.faq-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1.5px solid var(--line);
  border-radius: var(--border-radius-md);
  background: var(--paper);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item.active {
  border-color: var(--brand-blue);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 26px;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
}

.faq-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--brand-blue);
  flex-shrink: 0;
  font-size: 0.75rem;
  transition: all var(--transition-normal);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-answer-inner {
  padding: 0 26px 22px;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN DE CONTACTO
   ========================================================================== */

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.contact-info h2 {
  margin-bottom: 18px;
}

.contact-info p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-list a,
.contact-list span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--border-radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.contact-list a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-sky);
}

.contact-list small {
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list b {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.contact-list a.contact-whatsapp:hover {
  border-color: var(--whatsapp);
  background: rgba(37, 211, 102, 0.03);
}

.contact-list a.contact-whatsapp small {
  color: var(--whatsapp-dark);
}

/* ==========================================================================
   PIE DE PÁGINA (SITE FOOTER)
   ========================================================================== */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  padding: 38px max(24px, calc((100vw - 1200px) / 2));
  background: var(--brand-blue-dark);
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: block;
  width: 58px;
  height: auto;
  object-fit: contain;
}

.site-footer span {
  font-size: 0.86rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 32px;
    background-position: 70% center;
  }

  .hero-panel {
    align-self: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 12px;
    padding: 16px;
  }

  .hero-panel span {
    flex: 1 1 180px;
    justify-content: center;
  }

  .intro,
  .points-layout,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .stats,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ambient-blob {
    display: none;
  }

  /* Cabecera y Menú Móvil Hamburguesa Desplegable */
  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    margin-top: 0;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    padding: 10px 16px;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .brand-logo {
    width: 78px;
    height: 46px;
  }

  .mobile-nav-toggle {
    display: flex; /* Mostrar hamburguesa */
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    margin: 10px 16px 0;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .site-header.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 18px;
  }

  /* Animación del Botón Hamburguesa */
  .site-header.nav-open .mobile-nav-toggle .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.nav-open .mobile-nav-toggle .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .site-header.nav-open .mobile-nav-toggle .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Ocultar espaciador de Header desktop en móvil */
  .site-header div[style*="width: 40px"] {
    display: none;
  }

  .hero {
    width: 100%;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    margin-top: 0;
    padding: 28px 18px 34px;
    gap: 22px;
    background-position: 66% center;
  }

  .hero-logo {
    width: 88px;
    margin-bottom: 16px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .hero-text {
    margin-bottom: 22px;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 20px;
  }

  .search-assistant {
    max-width: none;
  }

  .search-input-wrapper input {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .hero-panel span {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    padding: 11px 14px;
  }

  .section {
    width: min(100% - 24px, 1200px);
    padding: 42px 0;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .stats,
  .service-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .points-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .points-layout {
    gap: 20px;
    margin-top: 24px;
  }

  /* Móvil: mapa y tarjeta en flujo separado para evitar solapes. */
  .map-panel {
    min-height: 0;
    overflow: hidden;
    border-radius: 22px;
  }

  .map-iframe-wrapper {
    position: relative;
    inset: auto;
    width: 100%;
    height: 260px;
    z-index: 1;
  }

  .map-iframe-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
  }

  .map-detail-card {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 0;
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0 0 22px 22px;
    padding: 16px;
    box-shadow: none;
    border-color: var(--line);
    background: var(--white);
    backdrop-filter: none;
    z-index: 2;
  }

  .detail-body {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-actions {
    margin-top: 12px;
    justify-content: stretch;
  }

  .detail-actions a {
    width: 100%;
    text-align: center;
  }

  .points-list {
    max-height: min(430px, 52vh);
    overflow-y: auto;
    padding-right: 6px;
  }

  .point-card {
    min-height: 82px;
    padding: 11px 12px 11px 20px;
    border-radius: 12px;
  }

  .point-card h3 {
    font-size: 0.88rem;
  }

  .point-card p {
    font-size: 0.74rem;
    -webkit-line-clamp: 1;
  }

  .point-card span {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
  }

  .point-card:hover {
    transform: none;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.98rem;
  }

  .faq-answer-inner {
    padding: 0 20px 18px;
    font-size: 0.88rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 16px;
  }
}
