/* IBACMA Custom Styles */
/* Color Palette - Medical Professional */
:root {
  --ibacma-primary: #1a5276;
  --ibacma-secondary: #2e86c1;
  --ibacma-accent: #17a2b8;
  --ibacma-dark: #1c2833;
  --ibacma-light: #f4f6f7;
  --ibacma-gray: #5d6d7e;
  --ibacma-white: #ffffff;
}

/* Global */
body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--ibacma-primary);
}

a {
  color: var(--ibacma-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ibacma-primary);
}

/* ========================================
   Before / After Hero Slider
   ======================================== */
.hero-before-after {
  position: relative;
  overflow: hidden;
  background: var(--ibacma-dark);
}

.ba-slider {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider figure {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-slider figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-after {
  position: relative !important;
}

.ba-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

/* Labels */
.ba-label {
  position: absolute;
  bottom: 20px;
  padding: 6px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
}

.ba-label--before {
  left: 20px;
  background: rgba(26, 82, 118, 0.85);
}

.ba-label--after {
  right: 20px;
  background: rgba(46, 134, 193, 0.85);
}

/* Drag handle */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateX(-50%);
}

.ba-handle-line {
  flex: 1;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.ba-handle-circle {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ibacma-primary);
  font-size: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

/* Invisible range input on top for accessibility & interaction */
.ba-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 20;
  cursor: col-resize;
  -webkit-appearance: none;
  appearance: none;
}

/* Overlay text */
.ba-overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.ba-overlay-text h1 {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 0.3rem;
}

.ba-overlay-text .lead {
  color: rgba(255,255,255,0.9);
  font-size: 1.3rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Full-height variant (block: fullHeightMobile) */
@media (max-width: 767px) {
  .ba-block--full-mobile .ba-slider {
    max-height: 100svh;
    height: 100svh;
  }
  .ba-block--full-mobile .ba-after,
  .ba-block--full-mobile .ba-before,
  .ba-block--full-mobile .ba-after img,
  .ba-block--full-mobile .ba-before img {
    height: 100svh;
  }
}

@media (max-width: 767px) {
  .ba-slider {
    max-height: 400px;
  }
  .ba-overlay-text h1 {
    font-size: 2rem;
  }
  .ba-overlay-text .lead {
    font-size: 1rem;
  }
  .ba-handle-circle {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .ba-label {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
}

/* Top Bar */
.top-bar {
  background-color: var(--ibacma-dark);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}

.top-bar a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.top-bar a:hover {
  color: #fff;
}

.top-bar .social-links a {
  font-size: 16px;
  margin-left: 12px;
}

.top-bar .lang-selector a {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-bar .lang-selector a.active {
  background-color: var(--ibacma-secondary);
  color: #fff;
}

.top-bar .cita-previa {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.top-bar .cita-previa .badge {
  background-color: var(--ibacma-accent);
  font-size: 11px;
  margin-right: 6px;
}

/* Navbar */
.navbar {
  background-color: var(--ibacma-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 0;
  transition: all 0.3s;
}

.navbar .navbar-brand img {
  max-height: 60px;
  transition: max-height 0.3s;
}

.navbar .nav-link {
  color: var(--ibacma-dark) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 20px 14px !important;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 3px solid transparent;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--ibacma-secondary) !important;
  border-bottom: 3px solid var(--ibacma-secondary);
}

.navbar-toggler {
  border: none;
  padding: 8px 12px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Sticky navbar */
.navbar.scrolled {
  padding: 0;
}

.navbar.scrolled .navbar-brand img {
  max-height: 45px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--ibacma-primary) 0%, var(--ibacma-secondary) 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>') repeat;
  background-size: 200px;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.hero-section .lead {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Hero block (reusable) — same visual language as .hero-section, with height variants */
.hero-block {
  background: linear-gradient(135deg, var(--ibacma-primary) 0%, var(--ibacma-secondary) 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-block h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.hero-block .lead {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.95;
  color: #fff;
}
.hero-block--small  { min-height: 260px; padding: 60px 0; }
.hero-block--medium { min-height: 420px; padding: 80px 0; }
.hero-block--large  { min-height: 560px; padding: 100px 0 80px; }
.hero-block--fullmobile { min-height: 560px; padding: 100px 0 80px; }

@media (max-width: 767px) {
  .hero-block h1 { font-size: 2rem; }
  .hero-block .lead { font-size: 1rem; }
  .hero-block--fullmobile { min-height: 100svh; padding: 80px 0; }
}

/* Page Header (internal pages) */
.page-header {
  background: linear-gradient(135deg, var(--ibacma-primary) 0%, var(--ibacma-secondary) 100%);
  color: #fff;
  padding: 60px 0 50px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.page-header .subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  font-weight: 300;
}

/* Specialty Cards */
.specialty-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  border-top: 4px solid transparent;
}

.specialty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-top-color: var(--ibacma-secondary);
}

.specialty-card .icon {
  font-size: 2.5rem;
  color: var(--ibacma-secondary);
  margin-bottom: 15px;
}

.specialty-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.specialty-card p {
  font-size: 0.9rem;
  color: var(--ibacma-gray);
  margin-bottom: 0;
}

/* Specialties Section */
.specialties-section {
  padding: 80px 0;
  background-color: var(--ibacma-light);
}

.specialties-section .section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
}

.specialties-section .section-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--ibacma-gray);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--ibacma-primary) 0%, #1a3c5e 100%);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.cta-section a {
  color: var(--ibacma-accent);
  font-size: 1.8rem;
  font-weight: 700;
}

.cta-section a:hover {
  color: #fff;
}

/* Info Section (ferulas, terapia) */
.info-section {
  padding: 60px 0;
}

.info-section p {
  margin-bottom: 1.2rem;
}

/* Team Section */
.team-section {
  padding: 60px 0;
}

/* Category title */
.team-category-section {
  margin-bottom: 30px;
}

.team-category-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ibacma-secondary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ibacma-secondary);
  display: inline-block;
  margin-bottom: 40px;
}

/* Lead doctors - side by side, equal */
.team-lead {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  height: 100%;
  transition: box-shadow 0.3s, transform 0.3s;
}

.team-lead:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.team-lead__photo {
  overflow: hidden;
  background: var(--ibacma-light);
}

.team-lead__photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.team-lead:hover .team-lead__photo img {
  transform: scale(1.03);
}

.team-lead__info {
  padding: 28px 24px;
  border-top: 4px solid var(--ibacma-secondary);
}

.team-lead__name {
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: var(--ibacma-primary);
}

.team-lead__role {
  color: var(--ibacma-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.team-lead__credentials {
  font-size: 0.8rem;
  color: var(--ibacma-gray);
  background: var(--ibacma-light);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.team-lead__credentials a {
  font-weight: 600;
}

.team-lead__bio {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
}

.team-lead__bio p {
  margin-bottom: 5px;
}

.team-lead__social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.team-lead__social a {
  color: var(--ibacma-gray);
  transition: color 0.3s, transform 0.3s;
}

.team-lead__social a:hover {
  color: var(--ibacma-secondary);
  transform: translateY(-2px);
}

/* Member card - half-page (col-lg-6), photo side-by-side with info */
.team-member {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  margin-bottom: 0;
  transition: box-shadow 0.3s;
  height: 100%;
}

.team-member--grid {
  display: flex;
  align-items: stretch;
}
.team-member--grid-reverse {
  flex-direction: row-reverse;
}
.team-member--grid .team-member__photo {
  flex: 0 0 42%;
  max-width: 42%;
  aspect-ratio: auto;
  position: relative;
}
.team-member--grid .team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-member--grid .team-member__placeholder {
  height: 100%;
  min-height: 0;
}
.team-member--grid .team-member__info {
  flex: 1 1 58%;
  padding: 22px 22px;
  height: auto;
}

/* Stack on small screens so neither side gets cramped */
@media (max-width: 575px) {
  .team-member--grid { flex-direction: column; }
  .team-member--grid .team-member__photo {
    flex: 0 0 auto;
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }
  .team-member--grid .team-member__info { flex: 1; }
}

.team-member:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Photo */
.team-member__photo {
  position: relative;
  overflow: hidden;
  background: var(--ibacma-light);
}

.team-member__photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.team-member:hover .team-member__photo img {
  transform: scale(1.03);
}

.team-member__placeholder {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e8e8 0%, #d5d5d5 100%);
  color: #999;
}

/* Accent bar on the text side */
.team-member--img-left .team-member__info {
  border-left: 4px solid var(--ibacma-secondary);
}

.team-member--img-right .team-member__info {
  border-right: 4px solid var(--ibacma-secondary);
}

/* Info */
.team-member__info {
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.team-member__name {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--ibacma-primary);
}

.team-member__role {
  color: var(--ibacma-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.team-member__credentials {
  font-size: 0.82rem;
  color: var(--ibacma-gray);
  background: var(--ibacma-light);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.team-member__credentials a {
  font-weight: 600;
}

.team-member__bio {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.team-member__bio p {
  margin-bottom: 6px;
}

.team-member__social {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.team-member__social a {
  color: var(--ibacma-gray);
  transition: color 0.3s, transform 0.3s;
}

.team-member__social a:hover {
  color: var(--ibacma-secondary);
  transform: translateY(-2px);
}

/* Mobile: stack vertically */
@media (max-width: 991px) {
  .team-member__photo {
    min-height: 280px;
    max-height: 350px;
  }

  .team-member__info {
    border-left: none !important;
    border-right: none !important;
    border-top: 4px solid var(--ibacma-secondary);
    padding: 25px 20px;
  }
}

/* Articles Section */
.articles-section {
  padding: 60px 0;
}

.article-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-card .card-img-top {
  height: 200px;
  object-fit: cover;
  background-color: #e8e8e8;
}

.article-card .card-body {
  padding: 20px;
}

.article-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card .date {
  font-size: 0.8rem;
  color: var(--ibacma-gray);
  margin-bottom: 10px;
}

.article-card .excerpt {
  font-size: 0.9rem;
  color: #555;
}

.article-card .btn-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Links Section */
.links-section {
  padding: 60px 0;
}

.link-card {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  transition: transform 0.3s;
  border-left: 4px solid var(--ibacma-secondary);
}

.link-card:hover {
  transform: translateX(5px);
}

.link-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.link-card .url {
  font-size: 0.85rem;
  color: var(--ibacma-gray);
}

/* Contact Section */
.contact-section {
  padding: 60px 0;
}

.contact-info {
  background: #fff;
  border-radius: 8px;
  padding: 35px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  height: 100%;
}

.contact-info .icon-box {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-info .icon-box i {
  font-size: 1.5rem;
  color: var(--ibacma-secondary);
  margin-right: 15px;
  margin-top: 3px;
}

.contact-info .icon-box h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-info .icon-box p {
  color: var(--ibacma-gray);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  height: 100%;
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--ibacma-dark);
  color: #aab7c4;
  padding: 56px 0 20px;
  font-size: 0.9rem;
}

.footer a {
  color: #aab7c4;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

.footer__heading {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer__tagline {
  color: #aab7c4;
  line-height: 1.55;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer-main {
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-nav a {
  display: block;
  padding: 3px 0;
  font-size: 0.88rem;
}

.footer-schedule {
  display: flex;
  align-items: flex-start;
}

.footer-schedule i {
  padding-top: 4px;
}

.footer-schedule__text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s, transform 0.15s;
}

.footer .social-links a:hover {
  background: var(--ibacma-secondary, #2e86c1);
  transform: translateY(-2px);
  color: #fff;
}

/* Credentials row (WMA + partner clinic) */
.footer-creds {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-creds__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.7) !important;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.footer-creds__item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-creds__img {
  height: auto;
  width: auto;
  display: block;
}

.footer-creds__img--wma {
  max-height: 60px;
  max-width: 140px;
}

.footer-creds__img--clinic {
  max-height: 52px;
  max-width: 240px;
}

.footer-creds__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

/* Medical disclaimer */
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  text-align: center;
  padding: 20px 0 12px;
  max-width: 880px;
  margin: 0 auto;
}

.footer-disclaimer p {
  margin: 0 0 6px;
}

/* Bottom bar (copyright + legal links) */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom a {
  color: rgba(255,255,255,0.7);
}

.footer-bottom .sep {
  opacity: 0.4;
  margin: 0 6px;
}

.footer-bottom__right a {
  margin-left: 2px;
}

/* Partner clinic logo block (used on team / contact pages) */
.clinic-logo-block__img {
  max-width: 220px;
  max-height: 70px;
  width: auto;
  height: auto;
  opacity: 0.95;
  transition: opacity 0.15s, transform 0.15s;
}

.clinic-logo-block__link:hover .clinic-logo-block__img {
  opacity: 1;
  transform: scale(1.02);
}

.clinic-logo-block__link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.clinic-logo-block__label {
  color: var(--ibacma-gray);
}

/* Mobile */
@media (max-width: 768px) {
  .footer { padding: 40px 0 16px; }
  .footer-main { padding-bottom: 24px; }
  .footer-creds { gap: 32px; padding: 24px 0; }
  .footer-creds__img--wma { max-height: 48px; max-width: 110px; }
  .footer-creds__img--clinic { max-height: 40px; max-width: 180px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom__left,
  .footer-bottom__right { width: 100%; text-align: center; }
}

/* Responsive */
@media (max-width: 991px) {
  .navbar .nav-link {
    padding: 10px 15px !important;
    border-bottom: none;
  }
  
  .navbar .nav-link:hover,
  .navbar .nav-link.active {
    border-bottom: none;
    background-color: var(--ibacma-light);
    border-radius: 4px;
  }

  .hero-section {
    padding: 60px 0 50px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .top-bar .cita-previa {
    font-size: 11px;
  }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: var(--ibacma-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
}

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, #e8e8e8 0%, #d5d5d5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
}

/* Logos Section */
.logos-section {
  padding: 50px 0;
}

.logos-section .section-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ibacma-gray);
}

.logo-partner {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.logo-partner:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* CTA Section */
.cta-section {
  background: var(--ibacma-primary);
  color: #fff;
  padding: 30px 0;
}

.cta-section h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.cta-section a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.cta-section a:hover {
  color: var(--ibacma-light);
}

/* Televisit Section */
.televisit-section {
  padding: 60px 0;
}

.televisit-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.televisit-benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--ibacma-light);
  border-radius: 10px;
  transition: transform 0.2s;
}

.benefit-item:hover {
  transform: translateX(4px);
}

.benefit-item i {
  font-size: 1.5rem;
  color: var(--ibacma-secondary);
  margin-top: 2px;
  flex-shrink: 0;
}

.benefit-item strong {
  display: block;
  color: var(--ibacma-primary);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.benefit-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ibacma-gray);
}

.televisit-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  border-top: 4px solid var(--ibacma-secondary);
}

.televisit-form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.televisit-form-card .form-desc {
  color: var(--ibacma-gray);
  font-size: 0.9rem;
}

.televisit-form-card .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ibacma-primary);
}

.televisit-form-card .btn-primary {
  background: var(--ibacma-secondary);
  border-color: var(--ibacma-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px;
  transition: background 0.3s, transform 0.2s;
}

.televisit-form-card .btn-primary:hover {
  background: var(--ibacma-primary);
  border-color: var(--ibacma-primary);
  transform: translateY(-1px);
}

.televisit-success {
  text-align: center;
  padding: 40px 20px;
  color: var(--ibacma-primary);
}

.televisit-success i {
  color: #4caf50;
}

.televisit-success h3 {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #555;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ibacma-dark);
  color: #e0e0e0;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

/* ---- Article telemedicine CTA ---- */
.article-televisit-cta {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ibacma-primary) 0%, var(--ibacma-secondary) 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(26, 82, 118, 0.25);
  position: relative;
  overflow: hidden;
}
.article-televisit-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% -20%, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}
.article-televisit-cta__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.article-televisit-cta__title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}
.article-televisit-cta__text {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
}
.btn--televisit {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--ibacma-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn--televisit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  color: var(--ibacma-primary);
}
.btn--televisit i.fa-arrow-right {
  transition: transform 0.15s;
}
.btn--televisit:hover i.fa-arrow-right { transform: translateX(3px); }

@media (max-width: 767px) {
  .article-televisit-cta {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px;
  }
  .article-televisit-cta__icon {
    margin: 0 auto;
    width: 60px; height: 60px; font-size: 26px;
  }
  .btn--televisit { justify-content: center; }
}
