/* CSS para la página de Especialidades Médicas */
    :root {
      --primary: #182F5C;
      --secondary: #182F5C;
      --accent: #B02222;
      --light: #f8f9fa;
      --dark: #212529;
      --light-blue: #e6f2ff;
      --card-hover-shadow: 0 15px 40px rgba(13, 91, 209, 0.3);
    }
    
    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
      color: #333;
      padding-top: 1px;
      overflow-x: hidden;
    }
    
    /* Header */
    .top-header {
      background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
      padding: px 0;
      font-size: 0.9rem;
      z-index: 1030;
    }
    
    .navbar {
      background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
      padding: 15px 0;
    }
    
    .navbar-brand {
      font-weight: 700;
      font-size: 1.5rem;
      letter-spacing: 0.5px;
    }
    
    .navbar-brand img {
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    
    .nav-link {
      color: white !important;
      font-weight: 500;
      padding: 12px 18px !important;
      border-radius: 50px;
      transition: all 0.3s ease;
    }
    
    .nav-link:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    
    .consultas-btn {
      background: linear-gradient(135deg, #B02222 0%, #B02222 100%);
      color: #ffffff !important;
      font-weight: 600;
      border-radius: 50px;
      padding: 10px 20px !important;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .consultas-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    }
    
    /* Hero Especialidades */
    .hero-especialidades {
      background: linear-gradient(rgba(13, 91, 209, 0), rgba(13, 91, 209, 0)), url('https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
      background-size: cover;
      background-position: center;
      min-height: 300px;
      display: flex;
      align-items: center;
      color: white;
      text-shadow: 0 2px 4px rgba(0,0,0,0.2);
      padding: 80px 0;
      margin-top: 0px;
      position: relative;
      overflow: hidden;
    }
    
    .hero-especialidades::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('https://images.unsplash.com/photo-1581595219319-5cb3b55e3c58?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
      background-size: cover;
      background-position: center;
      opacity: 0.2;
      z-index: -1;
    }
    
    .hero-especialidades h1 {
      font-size: 3.5rem;
      font-weight: 800;
      margin-bottom: 20px;
      animation: fadeInDown 1s ease-out;
    }
    
    .hero-especialidades .breadcrumb {
      background: transparent;
      padding: 0;
    }
    
    .hero-especialidades .breadcrumb-item a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
    }
    
    .hero-especialidades .breadcrumb-item.active {
      color: var(--accent);
    }
    
    .hero-content {
      position: relative;
      z-index: 2;
    }
    
    /* Sección de Especialidades */
    .specialties-section {
      padding: 80px 0;
    }
    
    .section-header {
      text-align: center;
      margin-bottom: 50px;
    }
    
    .section-header h2 {
      font-weight: 800;
      color: var(--secondary);
      position: relative;
      display: inline-block;
      padding-bottom: 15px;
    }
    
    .section-header h2:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 4px;
      background: var(--accent);
      border-radius: 10px;
    }
    
    .section-header p {
      font-size: 1.1rem;
      max-width: 700px;
      margin: 20px auto 0;
      color: #555;
    }
    
    /* Tarjetas de Especialidades */
    .specialty-card {
      background: rgb(255, 255, 255);
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08);
      overflow: hidden;
      transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      height: 100%;
      position: relative;
      transform: translateY(0);
      margin-bottom: 30px;
    }
    
    .specialty-card:hover {
      transform: translateY(-15px) rotate(1deg);
      box-shadow: var(--card-hover-shadow);
      z-index: 10;
    }
    
    .specialty-card:hover .specialty-icon {
      transform: scale(1.15) rotate(5deg);
      color: var(--primary);
    }
    
    .specialty-card:hover .specialty-image {
      transform: scale(1.1);
    }
    
    .specialty-image {
      height: 200px;
      overflow: hidden;
      transition: all 0.5s ease;
    }
    
    .specialty-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 0.5s ease;
    }
    
    .specialty-content {
      padding: 30px;
      position: relative;
      z-index: 200;
      background: white;
    }
    
    .specialty-icon {
      position: absolute;
      top: -30px;
      right: 30px;
      background: white;
      width: 70px;
      height: 70px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      color: var(--secondary);
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      z-index: 3;
    }
    
    .specialty-title {
      font-weight: 700;
      color: var(--secondary);
      margin-bottom: 15px;
      font-size: 1.5rem;
    }
    
    .specialty-description {
      color: #555;
      margin-bottom: 20px;
      min-height: 80px;
    }
    
    .specialty-features {
      margin-bottom: 25px;
    }
    
    .feature-item {
      display: flex;
      margin-bottom: 10px;
      align-items: flex-start;
    }
    
    .feature-icon {
      color: var(--accent);
      margin-right: 10px;
      flex-shrink: 0;
      font-size: 1.1rem;
      margin-top: 4px;
    }
    
    .feature-text {
      color: #555;
    }
    
    .specialty-btn {
      background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      color: white;
      border: none;
      border-radius: 50px;
      padding: 10px 25px;
      font-weight: 600;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      text-decoration: none; /* Esta línea elimina el subrayado */
    }
    
    .specialty-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(13, 91, 209, 0.4);
    }
    
    .specialty-tag {
      display: inline-block;
      background: rgba(13, 91, 209, 0.1);
      color: var(--secondary);
      padding: 5px 15px;
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 15px;
    }   
    
    /* Banner de Promoción */
    .promo-banner {
      background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
      color: white;
      padding: 50px 0;
      margin: 80px 0;
      border-radius: 15px;
      position: relative;
      overflow: hidden;
    }
    
    .promo-banner::before {
      content: "";
      position: absolute;
      top: -20px;
      right: -20px;
      width: 200px;
      height: 200px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
    }
    
    .promo-banner::after {
      content: "";
      position: absolute;
      bottom: -30px;
      left: -30px;
      width: 250px;
      height: 250px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 50%;
    }
    
    .promo-content {
      position: relative;
      z-index: 2;
      text-align: center;
    }
    
    .promo-content h2 {
      font-weight: 700;
      font-size: 2.5rem;
      margin-bottom: 20px;
    }
    
    .promo-content p {
      font-size: 1.2rem;
      max-width: 800px;
      margin: 0 auto 30px;
    }
    
    .promo-btn {
      background: white;
      color: var(--primary);
      font-weight: 700;
      border: none;
      border-radius: 50px;
      padding: 12px 35px;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .promo-btn:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
    
    /* Footer */
    .footer {
      background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
      color: white;
      padding: 40px 0 20px;
      margin-top: 80px;
    }
    
    .footer h5 {
      font-weight: 700;
      margin-bottom: 20px;
    }
    
    .footer p {
      color: rgba(255,255,255,0.8);
    }
    
    .copyright {
      border-top: 1px solid rgba(255,255,255,0.1);
      padding-top: 20px;
      margin-top: 30px;
      text-align: center;
      color: rgba(255,255,255,0.7);
    }
    
    /* Animaciones */
    @keyframes fadeInDown {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    @keyframes float {
      0% {
        transform: translateY(0px);
      }
      50% {
        transform: translateY(-15px);
      }
      100% {
        transform: translateY(0px);
      }
    }
    
    .floating {
      animation: float 6s ease-in-out infinite;
    }
    
    /* Responsive */
    @media (max-width: 992px) {
      .hero-especialidades h1 {
        font-size: 2.8rem;
      }
      
      .specialty-card:hover {
        transform: translateY(-8px);
      }
    }
    
    @media (max-width: 768px) {
      .hero-especialidades {
        min-height: 250px;
      }
      
      .hero-especialidades h1 {
        font-size: 2.3rem;
      }
      
      .section-header h2 {
        font-size: 1.8rem;
      }
      
      .specialty-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
        top: -25px;
      }
    }
    
    @media (max-width: 576px) {
      .hero-especialidades h1 {
        font-size: 2rem;
      }
    }
