/* ==========================================================
   TEALONC - Terapias Alternativas Oncológicas
   Hoja de Estilos Principal (CSS)
   Inspirado en la estética médica moderna y colores de marca
   ========================================================== */

:root {
  --teal-dark: #073046;
  --teal-deep: #0B4564;
  --teal-primary: #179796;
  --teal-secondary: #22A39F;
  --teal-accent: #2EC4B6;
  --teal-light: #E7F7F6;
  --teal-lighter: #F2FBF9;
  --teal-glow: rgba(34, 163, 159, 0.25);
  --dark-text: #0F172A;
  --body-text: #475569;
  --muted-text: #64748B;
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
  --card-border: rgba(23, 151, 150, 0.12);
  --shadow-sm: 0 4px 12px rgba(7, 48, 70, 0.05);
  --shadow-md: 0 10px 25px rgba(7, 48, 70, 0.08);
  --shadow-lg: 0 18px 40px rgba(7, 48, 70, 0.12);
  --shadow-teal: 0 10px 25px rgba(23, 151, 150, 0.22);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ───────── RESET & BASE ───────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background-color: #FFFFFF;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
  touch-action: pan-y pinch-zoom;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--teal-dark);
  font-weight: 700;
  line-height: 1.25;
}

.text-justify, .p-justify {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto;
}

a {
  text-decoration: none;
  color: var(--teal-primary);
  transition: var(--transition);
}
a:hover {
  color: var(--teal-deep);
}

img {
  max-width: 100%;
  height: auto;
}

/* ───────── TOP BAR ───────── */
.top-bar {
  background: var(--teal-dark);
  color: #E2E8F0;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar a {
  color: #E2E8F0;
}
.top-bar a:hover {
  color: var(--teal-accent);
}
.top-bar-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(46, 196, 182, 0.18);
  color: var(--teal-accent);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}
.top-bar-dot {
  width: 7px;
  height: 7px;
  background-color: #22C55E;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ───────── NAVBAR ───────── */
.navbar-custom {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(7, 48, 70, 0.06);
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: var(--transition);
}
.navbar-custom.scrolled {
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(7, 48, 70, 0.1);
}

.navbar-brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}
.navbar-custom.scrolled .navbar-brand-logo {
  height: 46px;
}

.nav-link-custom {
  font-family: var(--font-heading);
  color: var(--teal-dark) !important;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 16px !important;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}
.nav-link-custom:hover {
  color: var(--teal-primary) !important;
  background-color: var(--teal-lighter);
}
.nav-link-custom.active {
  color: var(--teal-primary) !important;
}
.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--teal-primary), var(--teal-accent));
  border-radius: 2px;
}

/* ───────── BUTTONS ───────── */
.btn {
  max-width: 100%;
  white-space: normal;
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal-primary), var(--teal-secondary));
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 600;
  border: none;
  padding: 11px 26px;
  border-radius: 50px;
  box-shadow: var(--shadow-teal);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.btn-teal:hover {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-primary));
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(23, 151, 150, 0.32);
}

.btn-outline-teal {
  background: transparent;
  color: var(--teal-primary) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  border: 2px solid var(--teal-primary);
  padding: 10px 24px;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.btn-outline-teal:hover {
  background: var(--teal-primary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-dark-teal {
  background: var(--teal-dark);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 600;
  border: none;
  padding: 11px 26px;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.btn-dark-teal:hover {
  background: var(--teal-deep);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background: #FFFFFF;
  color: var(--teal-dark) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.btn-white:hover {
  background: var(--teal-light);
  color: var(--teal-dark) !important;
  transform: translateY(-2px);
}

/* ───────── BADGES & PILLS ───────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  color: var(--teal-primary);
  border: 1px solid rgba(23, 151, 150, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.section-badge i {
  font-size: 0.95rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--muted-text);
  max-width: 680px;
  margin-bottom: 0;
}

/* ───────── HERO SLIDER / BANNER ───────── */
.hero-slider-section {
  position: relative;
  background: #061c2d;
  overflow: hidden;
}

.hero-slider-picture {
  display: block;
  width: 100%;
}

.hero-slider-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 280px;
  max-height: 640px;
}

/* Hero Content Overlay (Optional or integrated) */
.hero-banner-wrap {
  position: relative;
}

/* ───────── FLOATING HIGHLIGHTS ROW ───────── */
.floating-highlights-wrap {
  position: relative;
  z-index: 10;
  margin-top: -50px;
  margin-bottom: 40px;
}
@media (max-width: 767.98px) {
  .floating-highlights-wrap {
    margin-top: -30px;
    margin-bottom: 25px;
  }
}

.floating-highlights-bar {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 45px rgba(7, 48, 70, 0.12);
  border: 1px solid var(--card-border);
  padding: 24px 30px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-right: 1px solid #E2E8F0;
  transition: var(--transition);
}
.highlight-item:last-child {
  border-right: none;
}
.highlight-item:hover {
  transform: translateY(-2px);
}

.highlight-icon-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: var(--teal-light);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition);
}
.highlight-item:hover .highlight-icon-box {
  background: var(--teal-primary);
  color: #FFFFFF;
}

.highlight-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 2px;
}
.highlight-desc {
  font-size: 0.84rem;
  color: var(--muted-text);
  margin-bottom: 0;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .highlight-item {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding: 14px 6px;
  }
  .highlight-item:last-child {
    border-bottom: none;
  }
}

/* ───────── ABOUT / CLINIC SECTION ───────── */
.about-visual-container {
  position: relative;
  padding: 15px;
}
.about-main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.about-floating-card {
  position: absolute;
  bottom: -15px;
  right: 0px;
  width: 250px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 16px 36px rgba(7, 48, 70, 0.15);
  border: 1px solid var(--card-border);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.check-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.check-list-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--teal-light);
  color: var(--teal-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 3px;
}

/* ───────── SERVICES / QUÉ HACEMOS CARDS ───────── */
.service-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-primary), var(--teal-accent));
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(23, 151, 150, 0.35);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--teal-light);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 22px;
  transition: var(--transition);
}
.service-card:hover .service-icon-box {
  background: var(--teal-primary);
  color: #FFFFFF;
  transform: scale(1.06);
}

.service-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.94rem;
  color: var(--body-text);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ───────── VIRUS ONCOLÍTICOS SPOTLIGHT ───────── */
.oncolytic-spotlight {
  background: linear-gradient(135deg, #072B3E 0%, #0C4662 50%, #0F5E7B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(7, 43, 62, 0.25);
}
.oncolytic-spotlight::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.25) 0%, rgba(46, 196, 182, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.oncolytic-spotlight .section-badge {
  background: rgba(46, 196, 182, 0.2);
  color: #5EEAD4;
  border-color: rgba(94, 234, 212, 0.3);
}

.oncolytic-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.oncolytic-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.oncolytic-img-wrapper:hover .oncolytic-img {
  transform: scale(1.04);
}

/* ───────── PROPÓSITO: LLEGAR A TIEMPO ───────── */
.proposito-card {
  background: linear-gradient(135deg, #F0FDFB, #E6F7F6);
  border: 1px solid rgba(23, 151, 150, 0.25);
  border-radius: var(--radius-xl);
  padding: 50px 45px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.proposito-quote-mark {
  font-size: 3.8rem;
  color: var(--teal-primary);
  opacity: 0.2;
  line-height: 1;
  position: absolute;
  top: 30px;
  right: 40px;
}

/* ───────── VALUES CARDS ───────── */
.value-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
  height: 100%;
}
.value-card:hover {
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.value-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.value-card:hover .value-icon {
  background: var(--teal-primary);
  color: #FFFFFF;
}

/* ───────── LOCATION & CONTACT (LOS PINOS STYLE) ───────── */
.contact-info-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
  height: 100%;
}

.map-container-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #E2E8F0;
  height: 100%;
  min-height: 380px;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ───────── FOOTER ───────── */
.footer-corporate {
  background: #061A28;
  color: #94A3B8;
  padding-top: 65px;
  border-top: 3px solid var(--teal-primary);
}
.footer-title {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 8px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--teal-accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}
.footer-links a i {
  color: var(--teal-accent);
  font-size: 0.8rem;
}

.footer-bottom {
  background: #030F18;
  padding: 20px 0;
  margin-top: 50px;
  font-size: 0.84rem;
  color: #64748B;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.libro-reclamaciones-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: var(--transition);
}
.libro-reclamaciones-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* ───────── FLOATING WHATSAPP BUTTON ───────── */
.btn-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  transition: var(--transition);
  animation: wa-pulse 2.2s infinite;
}
.btn-whatsapp-float:hover {
  transform: scale(1.12);
  background: #20BA5A;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ───────── INNER PAGES HEADER BANNER ───────── */
.page-hero-banner {
  background: linear-gradient(135deg, #072B3E 0%, #0C4662 60%, #179796 100%);
  padding: 75px 0 65px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.page-hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: #FFFFFF;
  clip-path: ellipse(50% 100% at 50% 100%);
}
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.page-hero-breadcrumb {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.page-hero-breadcrumb a {
  color: var(--teal-accent);
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .oncolytic-spotlight {
    padding: 36px 24px;
  }
  .proposito-card {
    padding: 32px 24px;
  }
}

/* ───────── BOTÓN ESTILO BLOG EN EL NAVBAR ───────── */
.nav-link-blog-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(23, 151, 150, 0.12), rgba(46, 196, 182, 0.22));
  color: var(--teal-dark) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 18px !important;
  border-radius: 50px;
  border: 1.5px solid rgba(23, 151, 150, 0.4);
  transition: var(--transition);
  margin-left: 4px;
  margin-right: 4px;
}
.nav-link-blog-btn:hover {
  background: var(--teal-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--teal-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(23, 151, 150, 0.35);
}
.nav-link-blog-btn.active {
  background: var(--teal-dark) !important;
  color: #FFFFFF !important;
  border-color: var(--teal-dark);
}
.badge-blog-tag {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ───────── ESTILOS DE BLOG (INSPIRADO EN REFERENCIA) ───────── */
.blog-tabs-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.blog-tabs-nav::-webkit-scrollbar {
  display: none;
}
.blog-tab-item {
  white-space: nowrap;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.blog-tab-item:hover {
  background: var(--teal-light);
  color: var(--teal-primary);
  border-color: rgba(23, 151, 150, 0.3);
}
.blog-tab-item.active {
  background: var(--teal-dark);
  color: #FFFFFF;
  border-color: var(--teal-dark);
  box-shadow: 0 4px 12px rgba(7, 48, 70, 0.18);
}

/* HERO DEL BLOG */
.blog-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 12px 35px rgba(7, 48, 70, 0.15);
  transition: var(--transition);
  background-color: var(--teal-dark);
}
.blog-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(7, 48, 70, 0.22);
}
.blog-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-hero-card:hover .blog-hero-img {
  transform: scale(1.04);
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 48, 70, 0.15) 0%, rgba(7, 48, 70, 0.65) 50%, rgba(7, 48, 70, 0.96) 100%);
}
.blog-hero-content {
  position: relative;
  z-index: 2;
  padding: 44px;
  color: #FFFFFF;
  width: 100%;
}
.blog-hero-badge {
  display: inline-block;
  background: #E11D48;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
}
.blog-hero-title {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.25;
}
.blog-hero-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-hero-controls {
  position: absolute;
  bottom: 36px;
  right: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 50px;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
}
.blog-hero-controls button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.blog-hero-controls button:hover {
  background: var(--teal-primary);
}

/* SECCIÓN ÚLTIMOS ARTÍCULOS (2 COLUMNAS) */
.blog-featured-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 340px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 8px 24px rgba(7, 48, 70, 0.08);
  transition: var(--transition);
  background-color: var(--teal-dark);
}
.blog-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(7, 48, 70, 0.16);
}
.blog-featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.blog-featured-card:hover .blog-featured-img {
  transform: scale(1.06);
}
.blog-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 48, 70, 0.2) 0%, rgba(7, 48, 70, 0.7) 48%, rgba(7, 48, 70, 0.96) 100%);
}
.blog-featured-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  color: #FFFFFF;
  width: 100%;
}
.blog-featured-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 10px 0 8px;
  line-height: 1.35;
  transition: var(--transition);
}
.blog-featured-card:hover .blog-featured-title {
  color: var(--teal-accent);
}

/* SECCIÓN MÁS ARTÍCULOS (GRID 3 COLUMNAS) */
.blog-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 6px 20px rgba(7, 48, 70, 0.06);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(7, 48, 70, 0.13);
  border-color: rgba(23, 151, 150, 0.4);
}
.blog-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #F1F5F9;
}
.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.07);
}
.blog-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.badge-salud { background: #E11D48; color: #FFFFFF; }
.badge-terapia { background: #0D9488; color: #FFFFFF; }
.badge-investigacion { background: #2563EB; color: #FFFFFF; }
.badge-bienestar { background: #7C3AED; color: #FFFFFF; }
.badge-prevencion { background: #D97706; color: #FFFFFF; }
.badge-ciencia { background: #0891B2; color: #FFFFFF; }

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  transition: var(--transition);
}
.blog-card:hover .blog-card-title {
  color: var(--teal-primary);
}
.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--body-text);
  margin-bottom: 18px;
  line-height: 1.65;
  flex-grow: 1;
  text-align: justify;
  text-justify: inter-word;
}
.blog-card-footer {
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted-text);
}
.btn-blog-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: var(--teal-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-blog-more:hover {
  background: var(--teal-dark);
  color: #FFFFFF;
  border-color: var(--teal-dark);
  box-shadow: 0 6px 20px rgba(7, 48, 70, 0.15);
  transform: translateY(-2px);
}


/* ───────── BLOG: AJUSTES RESPONSIVOS ───────── */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.blog-toolbar .blog-tabs-nav {
  flex: 1 1 auto;
  min-width: 0;          /* permite el scroll horizontal sin ensanchar la página */
  max-width: 100%;
}
.blog-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.blog-hero-content .blog-hero-excerpt {
  max-width: 820px;
  font-size: 1.05rem;
}
.blog-hero-meta {
  flex-wrap: wrap;
  row-gap: 8px;
}
.blog-hero-title a:hover {
  color: var(--teal-accent) !important;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-img-wrap {
  height: auto;
  aspect-ratio: 16 / 10;
}
.blog-card-footer {
  gap: 10px;
  flex-wrap: wrap;
}
.blog-video-play {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenido del artículo: evita desbordes por imágenes, tablas, iframes o URLs largas */
.article-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.article-content iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: left;
}
.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
}
.article-featured-img {
  aspect-ratio: 16 / 9;
  max-height: 520px;
  object-fit: cover;
}
.article-share-bar .btn {
  white-space: nowrap;
}

/* Tablet */
@media (max-width: 991.98px) {
  .blog-hero-card {
    min-height: 380px;
  }
  .blog-hero-content {
    padding: 32px;
  }
}

/* Móvil */
@media (max-width: 767.98px) {
  .page-hero-banner {
    padding: 48px 0 44px;
  }
  .blog-hero-card {
    min-height: 0;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .blog-hero-card:hover,
  .blog-card:hover {
    transform: none;
  }
  /* En móvil la imagen va arriba y el texto debajo, sin superponerse */
  .blog-hero-img {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .blog-hero-overlay {
    display: none;
  }
  .blog-hero-content {
    padding: 20px 20px 24px;
    background: var(--teal-dark);
  }
  .blog-hero-badge {
    margin-bottom: 10px;
    font-size: 0.68rem;
    padding: 5px 12px;
  }
  .blog-hero-meta {
    font-size: 0.82rem;
    gap: 6px 10px;
  }
  .blog-hero-meta .blog-hero-sep {
    display: none;
  }
  .blog-hero-meta .blog-hero-cta {
    flex-basis: 100%;
    text-align: center;
    margin-top: 6px;
  }
  .blog-tab-item {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .blog-card {
    border-radius: 16px;
  }
  .blog-card-body {
    padding: 18px;
  }
  .blog-card-title {
    font-size: 1.05rem;
  }
  .blog-card-excerpt,
  .article-content,
  .article-content p,
  .blog-cta-box .text-justify,
  .article-page .text-justify {
    text-align: left !important;
  }
  .btn-blog-more {
    width: 100%;
    justify-content: center;
  }
  .article-content {
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }
  .article-share-bar > div:last-child {
    width: 100%;
  }
  .article-share-bar .btn {
    flex: 1 1 auto;
  }
  .blog-cta-box .btn {
    width: 100%;
  }
}

/* ───────── SOCIO ESTRATÉGICO: FARVET S.A.C. ───────── */
.partner-farvet-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FBF9 50%, #FFFFFF 100%);
  border-top: 1px solid rgba(23, 151, 150, 0.08);
  border-bottom: 1px solid rgba(23, 151, 150, 0.08);
  position: relative;
}

.partner-card {
  background: #FFFFFF;
  border: 1px solid rgba(23, 151, 150, 0.16);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 12px 35px rgba(7, 48, 70, 0.07);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #76BC21, var(--teal-primary), #003893);
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(7, 48, 70, 0.12);
  border-color: rgba(23, 151, 150, 0.32);
}

.partner-logo-wrapper {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7, 48, 70, 0.06);
  box-shadow: 0 4px 15px rgba(7, 48, 70, 0.03);
  margin-bottom: 20px;
  min-height: 140px;
}

.partner-logo-img {
  max-height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo-img {
  transform: scale(1.04);
}

.partner-disciplines-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.partner-discipline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(23, 151, 150, 0.22);
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(7, 48, 70, 0.04);
  transition: var(--transition);
}

.partner-discipline-pill i {
  color: var(--teal-primary);
  font-size: 1rem;
}

.partner-discipline-pill:hover {
  background: var(--teal-light);
  border-color: var(--teal-primary);
  color: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 151, 150, 0.18);
}

.partner-vision-box {
  background: linear-gradient(135deg, rgba(23, 151, 150, 0.08), rgba(46, 196, 182, 0.15));
  border-left: 4px solid var(--teal-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.partner-vision-text {
  font-style: italic;
  font-size: 1.02rem;
  color: var(--teal-dark);
  line-height: 1.65;
  margin-bottom: 0;
  font-weight: 500;
}

@media (max-width: 767.98px) {
  /* Prevenir desborde horizontal de filas y contenedores */
  .container,
  .container-fluid {
    padding-left: 14px !important;
    padding-right: 14px !important;
    max-width: 100% !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .row > * {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .row.g-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .row.g-0 > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Hero Slider Banner Móvil */
  .hero-slider-section,
  .hero-banner-wrap,
  .hero-slider-picture {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .hero-slider-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Tarjeta flotante en sección Quiénes somos */
  .about-visual-container {
    padding: 0 !important;
  }
  .about-floating-card {
    position: static !important;
    width: 100% !important;
    margin-top: 15px !important;
    animation: none !important;
    box-shadow: var(--shadow-sm) !important;
  }

  /* Sección Virus Oncolíticos Spotlight */
  .oncolytic-spotlight {
    padding: 30px 18px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }
  .oncolytic-spotlight::before {
    display: none !important;
  }
  .oncolytic-img {
    height: 230px !important;
  }

  /* Propósito Card */
  .proposito-card {
    padding: 26px 18px !important;
    border-radius: 18px !important;
  }
  .proposito-quote-mark {
    display: none !important;
  }

  /* Barra flotante de destacados */
  .floating-highlights-wrap {
    margin-top: -24px !important;
    margin-bottom: 24px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .floating-highlights-bar {
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }
  .highlight-item {
    gap: 12px !important;
    padding: 10px 4px !important;
  }

  /* Socio Estratégico: FARVET */
  .partner-card {
    padding: 24px 16px !important;
  }
  .partner-logo-wrapper {
    padding: 14px !important;
    min-height: 100px !important;
  }
  .partner-logo-img {
    max-height: 80px !important;
  }
  .partner-discipline-pill {
    font-size: 0.82rem !important;
    padding: 6px 12px !important;
    white-space: normal !important;
  }
  .partner-disciplines-grid {
    gap: 8px !important;
  }

  /* Botones adaptables al 100% en pantallas móviles */
  .btn,
  .btn-teal,
  .btn-outline-teal,
  .btn-dark-teal,
  .btn-white {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 11px 18px !important;
    font-size: 0.95rem !important;
  }

  .d-flex.flex-wrap.gap-3,
  .d-flex.gap-3 {
    flex-direction: column !important;
    width: 100% !important;
  }

  /* Títulos responsivos */
  .section-title {
    font-size: 1.65rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  .section-subtitle {
    font-size: 0.95rem !important;
  }

  /* WhatsApp Flotante en Móvil */
  .btn-whatsapp-float {
    bottom: 20px !important;
    right: 18px !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 28px !important;
  }
}

