/* ==========================================================================
   LABORATORIO DELGADO ESPECIALIZADO S.A. - ESTILOS PERSONALIZADOS BOOTSTRAP 5
   ========================================================================== */

:root {
  /* [TEXTO PRINCIPAL] Almost Black */
  --bs-body-color: #0b0a0a;
  --text: #0b0a0a;

  /* [FONDO GENERAL] Soft Off-white cálido higiénico */
  --bs-body-bg: #f9f6f6;
  --background: #f9f6f6;

  /* [COLOR PRINCIPAL DOMINANTE] Rojo Vivo Emblemático */
  --bs-primary: #e21224;
  --bs-primary-rgb: 226, 18, 36;
  --primary: #e21224;

  /* [COLOR SECUNDARIO] Tono Pastel Cálido */
  --bs-secondary-color: #555555;
  --secondary: #ea938b;
  --bs-secondary-bg-subtle: #fde8e6;

  /* [COLOR DE ACENTO / CTA] Carmesí Medio */
  --bs-accent: #dc6f78;
  --bs-accent-rgb: 220, 111, 120;
  --bs-success: #e21224;
  --bs-success-rgb: 226, 18, 36;
  --accent: #dc6f78;

  /* Tarjetas y Sombras */
  --card-bg-custom: #ffffff;
  --card-border-custom: #f2d3d0;
  --shadow-custom: 0 0.125rem 0.25rem rgba(226, 18, 36, 0.08);
  --shadow-hover: 0 0.5rem 1.5rem rgba(226, 18, 36, 0.18);
}

[data-bs-theme="dark"] {
  --bs-body-bg: #140809;
  --bs-body-color: #f9f6f6;
  --bs-secondary-color: #d1a5a0;
  --card-bg-custom: #221214;
  --card-border-custom: #442226;
  --shadow-custom: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 0.5rem 1.5rem rgba(226, 18, 36, 0.3);
}

/* Botón de Acción Principal (CTA Acento del Logo) */
.btn-accent {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #ffffff;
  font-weight: 700;
  border-radius: 50rem;
  padding: 0.65rem 1.6rem;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 14px rgba(226, 18, 36, 0.3);
}

.btn-accent:hover, .btn-accent:focus {
  background-color: #b80c1b;
  border-color: #b80c1b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(226, 18, 36, 0.4);
}

.btn-primary-custom {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: 50rem;
  padding: 0.65rem 1.6rem;
  transition: all 0.25s ease-in-out;
}

.btn-primary-custom:hover {
  background-color: #b80c1b;
  border-color: #b80c1b;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   ESTILO HERO BANNER INSTITUCIONAL (TARJETA CONTENEDORA + BARRA FLOTANTE)
   -------------------------------------------------------------------------- */

/* Tarjeta Principal Hero */
.hero-main-card {
  background: linear-gradient(135deg, #4F4367 0%, #7A283C 50%, #e21224 100%);
  border-radius: 2.25rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1rem 3rem rgba(79, 67, 103, 0.25);
}

.hero-main-card::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-main-card::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(226, 18, 36, 0.25) 0%, rgba(226, 18, 36, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Botón Blanco Pill Destacado */
.btn-hero-pill {
  background-color: #ffffff;
  color: #e21224;
  font-weight: 700;
  border-radius: 50rem;
  padding: 0.75rem 2rem;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border: none;
}

.btn-hero-pill:hover {
  background-color: #f9f6f6;
  color: #b80c1b;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Marco Portada Fotográfica de la Laboratorista */
.hero-img-wrapper {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-img-main {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 991.98px) {
  .hero-img-main {
    height: 260px;
  }
}

/* Barra de Búsqueda Flotante Solapada */
.floating-bar-container {
  position: relative;
  z-index: 10;
  margin-top: -3rem;
}

@media (max-width: 767.98px) {
  .floating-bar-container {
    margin-top: -1.5rem;
  }
}

.floating-search-bar {
  background-color: var(--card-bg-custom);
  border: 1px solid var(--card-border-custom);
  border-radius: 100rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
  padding: 0.85rem 2rem;
}

@media (min-width: 768px) {
  .border-end-md {
    border-right: 1px solid var(--card-border-custom);
  }
}

@media (max-width: 991.98px) {
  .floating-search-bar {
    border-radius: 1.75rem;
    padding: 1.25rem 1.5rem;
  }
}

/* Banner de Textura Minimalista para Nosotros.html */
.nosotros-banner-section {
  position: relative;
  background-image: url('../imagenes/nosotros_banner.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 320px;
}

.nosotros-overlay-gradient {
  background: linear-gradient(135deg, 
    rgba(249, 246, 246, 0.95) 0%, 
    rgba(249, 246, 246, 0.85) 50%, 
    rgba(249, 246, 246, 0.40) 100%);
}

[data-bs-theme="dark"] .nosotros-overlay-gradient {
  background: linear-gradient(135deg, 
    rgba(20, 8, 9, 0.96) 0%, 
    rgba(20, 8, 9, 0.88) 50%, 
    rgba(20, 8, 9, 0.45) 100%);
}

/* --------------------------------------------------------------------------
   ESTILO DE TARJETA CON MARCO BLANCO Y RELLENO PASTEL (SIN SOMBRAS PESADAS)
   -------------------------------------------------------------------------- */
.bento-card {
  background-color: var(--card-bg-custom);
  border: 1px solid var(--card-border-custom);
  border-radius: 1.75rem !important;
  padding: 0.65rem;
  transition: all 0.25s ease-in-out;
  box-shadow: none !important;
}

.bento-card .card-body {
  background: linear-gradient(135deg, rgba(253, 232, 230, 0.45) 0%, rgba(253, 232, 230, 0.2) 100%);
  border-radius: 1.35rem !important;
  padding: 1.5rem !important;
}

[data-bs-theme="dark"] .bento-card .card-body {
  background: linear-gradient(135deg, rgba(68, 34, 38, 0.4) 0%, rgba(45, 22, 25, 0.3) 100%);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 18, 36, 0.4);
  box-shadow: none !important;
}

/* Tarjeta destacada con relleno pastel soft ligeramente más cálido */
.bento-card-highlight {
  background-color: var(--card-bg-custom);
  border: 1.5px solid rgba(226, 18, 36, 0.25);
  border-radius: 1.75rem !important;
  padding: 0.65rem;
  transition: all 0.25s ease-in-out;
  box-shadow: none !important;
}

.bento-card-highlight .card-body {
  background: linear-gradient(135deg, rgba(253, 232, 230, 0.65) 0%, rgba(253, 232, 230, 0.35) 100%);
  border-radius: 1.35rem !important;
  padding: 1.5rem !important;
}

[data-bs-theme="dark"] .bento-card-highlight .card-body {
  background: linear-gradient(135deg, rgba(78, 38, 43, 0.6) 0%, rgba(55, 25, 28, 0.4) 100%);
}

.bento-card-highlight:hover {
  transform: translateY(-4px);
  border-color: var(--bs-primary);
  box-shadow: none !important;
}

/* Insignia Esquina Superior Derecha Estilo Referencia ($49/m) */
.card-top-corner-badge {
  background-color: rgba(226, 18, 36, 0.12);
  color: var(--bs-primary);
  font-weight: 700;
  border-radius: 50rem;
  padding: 0.35rem 1rem;
  font-size: 0.825rem;
}

/* Ícono de Check Circular Estilo Referencia (✓) */
.feature-check-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(226, 18, 36, 0.15);
  color: var(--bs-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
}

.badge-accent {
  background-color: rgba(226, 18, 36, 0.12);
  color: var(--bs-primary);
  border: 1px solid rgba(226, 18, 36, 0.25);
  font-weight: 600;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--bs-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(226, 18, 36, 0.7);
  animation: pulse-ring 1.8s infinite;
}

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

/* --------------------------------------------------------------------------
   FOOTER CURVADO DE MARCA EN GRADIENTE (COHESIÓN TOTAL CON EL HERO)
   -------------------------------------------------------------------------- */
.footer-brand-card {
  background: linear-gradient(135deg, #4F4367 0%, #7A283C 50%, #e21224 100%);
  border-radius: 2.25rem 2.25rem 0 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -1rem 3rem rgba(79, 67, 103, 0.15);
}

.footer-brand-card::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-brand-card a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.2s ease-in-out;
}

.footer-brand-card a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}
