/* ==========================================================================
   FARMACIA FARMANORTE - ESTILOS PRINCIPALES
   Precios Bajos Todos los Días | Sedes: Condell 480 & Manuel Montt 712
   ========================================================================== */

:root {
  /* Paleta de Colores Oficial FarmaNorte */
  --color-primary: #393D96;
  --color-primary-dark: #242767;
  --color-primary-light: #5056BE;
  --color-primary-subtle: #EEF0FB;
  
  --color-success: #10B981;
  --color-success-dark: #059669;
  --color-success-light: #ECFDF5;
  
  --color-accent: #0EA5E9;
  --color-accent-dark: #0284C7;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-danger-subtle: #FEF2F2;

  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5D;

  /* Colores de Fondo y Texto */
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;

  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  /* Bordes y Sombras */
  --border-color: #E2E8F0;
  --border-focus: #393D96;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(57, 61, 150, 0.06);
  --shadow-md: 0 8px 24px rgba(57, 61, 150, 0.08);
  --shadow-lg: 0 16px 36px rgba(57, 61, 150, 0.12);
  --shadow-hover: 0 20px 40px rgba(57, 61, 150, 0.18);

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar {
  background-color: var(--color-primary-dark);
  color: var(--text-white);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-pill {
  display: inline-block;
  background: var(--color-danger);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E0E7FF;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.top-bar-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

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

.logo-img {
  height: 44px;
  width: auto;
  transition: transform var(--transition-bounce);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.sedes-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1.05rem;
}

.btn-xl {
  padding: 16px 32px;
  font-size: 1.15rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(57, 61, 150, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(57, 61, 150, 0.4);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary-subtle);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-header {
  background-color: #25D366;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-header:hover {
  background-color: var(--color-whatsapp-dark);
  transform: translateY(-1px);
}

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

.icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-inline {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
  color: var(--color-primary);
}

/* Menú Móvil */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  padding: 20px;
  border-bottom: 2px solid var(--border-color);
  gap: 12px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 0 80px 0;
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F4FD 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.shape-1 {
  top: -10%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: #393D96;
}

.shape-2 {
  bottom: -20%;
  left: 5%;
  width: 350px;
  height: 350px;
  background: #10B981;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #D7DBFA;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-primary-dark);
  margin-bottom: 18px;
  letter-spacing: -0.8px;
}

.highlight-underline {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.highlight-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background: rgba(16, 185, 129, 0.35);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Buscador en Hero */
.hero-search-box {
  position: relative;
  margin-bottom: 28px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.search-input-wrapper:focus-within {
  box-shadow: 0 0 0 4px rgba(57, 61, 150, 0.2);
}

.search-icon {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  margin-right: 12px;
}

.search-input-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text-main);
  background: transparent;
  padding: 8px 0;
}

.clear-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer;
  display: none;
  padding: 0 6px;
}

.clear-btn.visible {
  display: block;
}

/* Dropdown de Búsqueda Instantánea */
.search-dropdown-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-height: 360px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-dropdown-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--color-primary-subtle);
}

.search-item-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.search-item-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.search-item-price {
  text-align: right;
}

.search-price-now {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.search-price-old {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--text-light);
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.trust-icon {
  width: 20px;
  height: 20px;
}

.text-success { color: var(--color-success); }
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent-dark); }

/* Floating Card de Comparación en Hero */
.floating-promo-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 2px solid #E2E8F0;
  position: relative;
  overflow: hidden;
}

.floating-promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-success));
}

.promo-pill {
  display: inline-block;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.promo-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.floating-promo-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.comparison-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--bg-alt);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.comp-col {
  text-align: center;
}

.comp-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.comp-price {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
}

.price-high {
  color: var(--text-light);
  text-decoration: line-through;
}

.price-low {
  color: var(--color-success-dark);
}

.comp-sub {
  font-size: 0.75rem;
  color: var(--text-light);
}

.comp-tag {
  display: inline-block;
  background: var(--color-success);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.comp-vs {
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--text-light);
}

.promo-footer {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

/* ==========================================================================
   SECCIÓN DE LAS 2 SEDES (ANIMACIONES AL HACER SCROLL)
   ========================================================================== */
.sedes-section {
  padding: 90px 0;
  background: #FFFFFF;
  position: relative;
}

.section-header {
  margin-bottom: 50px;
}

.text-center { text-align: center; }

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-description {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Grilla interactiva de las dos sedes */
.sedes-interactive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.sede-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 2px solid #E2E8F0;
  box-shadow: var(--shadow-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.sede-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.sede-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sede-number-badge {
  background: var(--color-primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.sede-title-group {
  flex-grow: 1;
}

.sede-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.sede-address {
  font-size: 1rem;
  color: var(--text-muted);
}

.status-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-indicator.open {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}

.sede-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  background: var(--bg-alt);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.sede-info-list {
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}

.info-label {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.info-val {
  color: var(--text-main);
  font-weight: 600;
}

.info-phone {
  color: var(--color-primary);
}

.info-phone:hover {
  text-decoration: underline;
}

.info-wa {
  color: var(--color-whatsapp-dark);
  font-weight: 700;
}

.info-wa:hover {
  text-decoration: underline;
}

.sede-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sede-map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #E2E8F0;
}

.sede-map-container iframe {
  display: block;
}

.quick-contact-strip {
  background: linear-gradient(135deg, var(--color-primary-subtle) 0%, #FFFFFF 100%);
  border: 1.5px solid #D7DBFA;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.strip-text {
  display: flex;
  align-items: center;
  gap: 16px;
}

.strip-icon {
  font-size: 2rem;
}

.strip-text strong {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.strip-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   ANIMACIONES DE SCROLL (REVEAL ON SCROLL)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-from-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-from-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Animaciones de entrada en carga */
.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SECCIÓN BIOEQUIVALENTES Y COMPARADOR
   ========================================================================== */
.bioequivalentes-section {
  padding: 90px 0;
  background: var(--bg-body);
}

.section-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.section-intro {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.bio-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit-icon {
  width: 36px;
  height: 36px;
  background: var(--color-success-light);
  color: var(--color-success-dark);
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Tabla de Precios */
.table-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.table-card-header {
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.badge-isp {
  background: #FBBF24;
  color: #78350F;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th {
  background: var(--bg-alt);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
}

.comp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.sub-indicacion {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-old {
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 600;
}

.price-fn {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.05rem;
}

.saving-badge {
  background: var(--color-success-light);
  color: var(--color-success-dark);
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.table-card-footer {
  padding: 12px 20px;
  background: var(--bg-alt);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CATÁLOGO DE PRODUCTOS Y OFERTAS
   ========================================================================== */
.catalogo-section {
  padding: 90px 0;
  background: #FFFFFF;
}

.filter-pills-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-pill {
  background: var(--bg-alt);
  color: var(--text-main);
  border: 1.5px solid transparent;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.filter-pill.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(57, 61, 150, 0.25);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-badge-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.prod-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.prod-tag.bio {
  background: #FEF08A;
  color: #854D0E;
}

.prod-tag.cosmetica {
  background: #FCE7F3;
  color: #9D174D;
}

.prod-tag.vitamina {
  background: #DCFCE7;
  color: #166534;
}

.prod-tag.dolor {
  background: #E0E7FF;
  color: #3730A3;
}

.prod-saving {
  background: var(--color-danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.product-icon-visual {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-primary);
}

.price-reference {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.custom-quote-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.quote-text h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.quote-text p {
  color: #D7DBFA;
  font-size: 1rem;
}

/* ==========================================================================
   SECCIÓN RECETA MÉDICA
   ========================================================================== */
.receta-section {
  padding: 90px 0;
  background: var(--bg-body);
}

.receta-card {
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 50px 40px;
}

.receta-header {
  margin-bottom: 40px;
}

.receta-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-top: 10px;
  margin-bottom: 10px;
}

.receta-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.step-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  position: relative;
}

.step-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.step-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.receta-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.branch-select-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.form-select {
  padding: 10px 18px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--color-primary-dark);
  background: #ffffff;
  cursor: pointer;
  outline: none;
  font-size: 1rem;
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.servicios-section {
  padding: 90px 0;
  background: #FFFFFF;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
}

.service-icon-wrap svg {
  width: 30px;
  height: 30px;
}

.bg-blue { background: #EEF2FF; color: var(--color-primary); }
.bg-green { background: var(--color-success-light); color: var(--color-success-dark); }
.bg-teal { background: #E0F2FE; color: var(--color-accent-dark); }
.bg-purple { background: #F3E8FF; color: #7E22CE; }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-section {
  padding: 90px 0;
  background: var(--bg-body);
}

.faq-container {
  max-width: 860px;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  padding: 18px 24px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-chevron {
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--color-primary);
  border-bottom: 2.5px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.accordion-item[open] .accordion-chevron {
  transform: rotate(-135deg);
}

.accordion-body {
  padding: 0 24px 20px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.accordion-body ul {
  margin-top: 10px;
  padding-left: 20px;
}

.accordion-body li {
  margin-bottom: 6px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: var(--color-primary-dark);
  color: #FFFFFF;
  padding-top: 70px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 18px;
}

.footer-motto {
  font-size: 0.92rem;
  color: #D7DBFA;
  margin-bottom: 18px;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: #D7DBFA;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  padding: 24px 0;
  font-size: 0.82rem;
  color: #A5B4FC;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 62px;
  height: 62px;
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.wa-icon {
  width: 34px;
  height: 34px;
}

.wa-tooltip {
  position: absolute;
  right: 74px;
  background: var(--text-main);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.floating-wa:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   RESPONSIVIDAD Y MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .section-grid-2col {
    grid-template-columns: 1fr;
  }
}

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

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .sedes-interactive-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .custom-quote-banner {
    flex-direction: column;
    text-align: center;
  }

  .quick-contact-strip {
    flex-direction: column;
    text-align: center;
  }

  .strip-text {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }
}
