/* CIMEC Salud - Diseño Limpio y Profesional */

/* ===== RESET & BASICS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colores reales de CIMEC Salud */
  --primary: #00A9E0;      /* Azul CIMEC */
  --secondary: #7C3F96;    /* Morado CIMEC */
  --accent: #00BFA5;       /* Verde turquesa */
  --dark: #2C3E50;         /* Gris oscuro para textos */
  --light: #ECF0F1;        /* Gris muy claro */
  --white: #FFFFFF;
  --shadow: rgba(0,0,0,0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #E8F4F9;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
  border-bottom: 3px solid var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex: 1;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

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

.header-buttons {
  display: flex;
  gap: 1rem;
}

.btn-header {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.btn-cita {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-cita:hover {
  background: #0088b8;
  border-color: #0088b8;
}

.btn-portal {
  background: #FFFFFF !important;
  color: #00A9E0 !important;
  border: 2px solid #00A9E0;
}

.btn-portal:hover {
  background: #00A9E0 !important;
  color: #FFFFFF !important;
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--primary) url('/images/backgrounds/hero-hands.jpg') center/cover;
  color: var(--white);
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 169, 224, 0.90);
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  color: var(--white);
}

.hero .subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  max-width: 700px;
  margin: 1.5rem auto;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  margin-left: 1rem;
}

/* ===== SECTIONS ===== */
section {
  padding: 60px 20px;
}

section:nth-child(even) {
  background: #F8F9FA;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark);
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 1rem auto;
  border-radius: 2px;
}

.facilities-title {
  color: var(--dark) !important;
}

/* ===== CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px var(--shadow);
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  display: block;
  color: inherit;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(74,144,226,0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

/* Iconos de especialidades - NO aplicar estilos de card genérico */
.card.especialidad-card img,
.especialidad-card img {
  width: 100px !important;
  height: 100px !important;
  max-width: 100px !important;
  max-height: 100px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 auto 1.5rem !important;
  display: block !important;
}

/* Iconos del carousel */
.carousel-item img {
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.card p {
  color: #666;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 20px 1rem;
  text-align: center;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info h4 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-info a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-info a:hover {
  color: var(--accent);
}

.footer-info nav p {
  margin: 0.5rem 0;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.footer-legal a {
  color: var(--light);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

.copyright {
  margin-top: 1rem;
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}


/* ===== MOBILE MENU TOGGLE BUTTON ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop menu layout */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Mobile menu overlay */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: 80px 2rem 2rem;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .nav-links li {
    border-bottom: 1px solid var(--light);
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }
  
  .header-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .btn-header {
    padding: 12px 20px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
  }
  
  nav {
    justify-content: space-between;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .btn-secondary {
    margin-left: 0;
    margin-top: 1rem;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== CONTENT PAGES ===== */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 20px;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 2rem 0;
}

.content h1 {
  color: var(--primary);
  margin-bottom: 2rem;
}

.content h2 {
  text-align: left;
  font-size: 1.8rem;
  margin-top: 2rem;
}

.content h2::after {
  margin: 1rem 0;
}

.content a {
  color: var(--primary);
  font-weight: 600;
}

.content a:hover {
  color: var(--secondary);
}

/* ===== PROFESSIONAL CARDS ===== */
.professional-grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.professional-card {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px var(--shadow);
}

.professional-header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.professional-header h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.professional-header .position {
  color: var(--secondary);
  font-weight: 600;
  margin: 0.5rem 0;
}

.professional-header .college-number {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.professional-content h4 {
  color: var(--dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.professional-content h4::after {
  content: none !important;
  display: none !important;
}

.professional-card h3 {
  color: var(--primary);
}

.professional-card h3::after {
  content: none !important;
  display: none !important;
}

.professional-card h4::after {
  content: none !important;
  display: none !important;
}

.professional-content ul {
  list-style: none;
  padding-left: 0;
}

.professional-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
  color: #666;
}

.professional-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.blog-post-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 169, 224, 0.2);
}

.blog-category {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.blog-date {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-post-card h3 {
  color: var(--dark);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* ===== SPECIALTY ICONS GRID ===== */
.specialty-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.specialty-icon-card {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.specialty-icon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 169, 224, 0.15);
  border-color: var(--primary);
}

.specialty-icon-card img {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  display: block;
}

.specialty-icon-card p {
  margin: 0;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.4;
}

.blog-post-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-post-card .btn {
  align-self: flex-start;
}

/* ===== INSURERS GRID ===== */
.insurers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
  align-items: center;
  justify-items: center;
}

.insurer-logo {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: all 0.3s;
}

.insurer-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 169, 224, 0.2);
}

.insurer-logo img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

/* ===== CTA CONTACT ===== */
.cta-contact {
  text-align: center;
  margin-top: 3rem;
  background: var(--primary);
  color: white;
  padding: 3rem;
  border-radius: 15px;
}

.cta-contact h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.cta-contact p {
  margin: 1.5rem 0;
  font-size: 1.1rem;
  color: white;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cta-contact .btn {
  background: white;
  color: var(--primary);
}

.cta-contact .btn:hover {
  background: var(--light);
}

.cta-contact .btn-secondary {
  background: var(--secondary);
  color: white;
}

.cta-contact .btn-secondary:hover {
  background: #6a2f82;
}

/* ===== IMPROVED MARKDOWN CONTENT ===== */
main img {
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

main h1, main h2, main h3, main h4, main h5, main h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

main h1 {
  font-size: 2.5rem;
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.5rem;
}

main h2 {
  font-size: 2rem;
  color: var(--secondary);
}

main h3 {
  font-size: 1.5rem;
}

main ul, main ol {
  margin: 1rem 0 1rem 2rem;
  line-height: 1.8;
}

main li {
  margin: 0.5rem 0;
}

main p {
  margin: 1rem 0;
  line-height: 1.8;
}

main strong {
  color: var(--primary);
  font-weight: 600;
}

main em {
  color: var(--secondary);
}

main blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

main code {
  background: var(--light);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

main pre {
  background: var(--dark);
  color: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

main pre code {
  background: none;
  padding: 0;
}

/* ===== PROFESSIONAL CONTENT FIX ===== */
.professional-content h4 {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.professional-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.professional-content li {
  margin: 0.5rem 0;
  line-height: 1.6;
  color: #555;
}

/* ===== MARKDOWN CONTENT STYLING ===== */
.content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #333;
}

.content ul, .content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  line-height: 1.8;
}

.content li {
  margin-bottom: 0.8rem;
  color: #333;
}

.content li strong {
  color: var(--primary);
}

.content h3 {
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.content h4 {
  color: var(--dark);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

/* Team sections grid */
.team-section {
  margin: 3rem 0;
  text-align: center;
}

.team-section img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 4px 12px var(--shadow);
}

.team-section h3 {
  color: var(--primary);
  font-size: 1.75rem;
  margin: 1rem 0 0.75rem;
  font-weight: 600;
}

.team-section p {
  color: #666;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* CTA Contact buttons */
@media (max-width: 768px) {
  .team-section h3 {
    font-size: 1.5rem;
  }
  
  .cta-contact .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-contact .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ===== LEGAL PAGES STYLING ===== */
.content h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary);
}

.content h2 {
  color: var(--dark);
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.content ul, .content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.content a {
  color: var(--primary);
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

.content strong {
  color: var(--dark);
  font-weight: 600;
}

/* ===== HOME PAGE SECTIONS ===== */
.section-specialties,
.section-facilities {
  padding: 60px 20px;
  background: transparent;
}

.section-specialties {
  background: #F8F9FA;
}

.section-subtitle {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.3rem;
}

.facilities-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
  color: #666;
}

.facilities-content p {
  margin-top: 1.5rem;
}

.section-buttons {
  text-align: center;
  margin-top: 3rem;
}

/* ===== CARD IMPROVEMENTS ===== */
.card img {
  display: block;
  margin: 0 auto 1.5rem;
}

/* ===== ACCESSIBILITY ===== */
a:focus,
button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background: var(--primary);
  color: white;
}

.skip-to-main:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

/* ===== CAROUSEL ESPECIALIDADES ===== */
.carousel-wrapper {
  overflow: hidden;
  position: relative;
  margin: 2rem 0;
  background: transparent;
  padding: 1.5rem 0;
}

.carousel-track {
  display: flex;
  gap: 3rem;
  animation: scroll-carousel 40s linear infinite;
  width: fit-content;
  align-items: center;
  background: transparent;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-item {
  flex: 0 0 auto;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: transparent !important;
  padding: 1.5rem 0;
  border: none;
  min-height: 160px;
}

.carousel-item:hover {
  transform: scale(1.15);
  background: transparent !important;
}

.carousel-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: grayscale(0%);
  transition: all 0.3s ease;
  background: transparent !important;
  mix-blend-mode: normal;
  border: none;
  box-shadow: none;
}

.carousel-item:hover img {
  filter: drop-shadow(0 4px 8px rgba(0, 169, 224, 0.4));
}

.carousel-label {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 1;
  transition: opacity 0.3s ease;
  max-width: 120px;
  text-align: center;
  line-height: 1.2;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item:hover .carousel-label {
  opacity: 1;
  font-weight: 700;
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive carousel */
@media (max-width: 768px) {
  .carousel-item img {
    width: 60px;
    height: 60px;
  }
  
  .carousel-label {
    font-size: 0.7rem;
    max-width: 100px;
    min-height: 28px;
  }
  
  .carousel-track {
    gap: 2.5rem;
  }
  
  .carousel-item {
    min-height: 110px;
  }
}

/* ===== PÁGINA DE ESPECIALIDADES ===== */
.section-especialidades-list {
  padding: 5rem 0;
  background: white;
}

.section-especialidades-list h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--secondary);
}

.especialidad-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  color: #212121;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.especialidad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 169, 224, 0.2);
}

.especialidad-card img {
  width: auto !important;
  height: 100px !important;
  max-width: 100px !important;
  margin-bottom: 1.5rem;
  background: transparent !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  filter: none !important;
  box-shadow: none !important;
}

.especialidad-card h3 {
  color: var(--primary);
  margin-top: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.especialidad-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.cta-description {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
.especialidad-card img {
  background: transparent !important;
}

/* Forzar transparencia en círculos SVG */
.carousel-item img svg circle,
.card img svg circle,
.especialidad-card img svg circle {
  fill: transparent !important;
  stroke: none !important;
}

/* Asegurar que todo el SVG sea transparente */
svg {
  background: transparent !important;
}

svg circle[class*="st0"] {
  fill: none !important;
  stroke-opacity: 0 !important;
}
