/* === Estilos Personalizados para la Veterinaria === */
:root {
    --primary-color: #2c7a7b;
    --secondary-color: #4fd1c5;
    --accent-color: #f6ad55;
    --light-bg: #f0fff4;
    --dark-text: #2d3748;
    --light-text: #f7fafc;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  /* === Tipografía y Generales === */
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-text);
    line-height: 1.6;
  }
  
  .text-accent {
    color: var(--accent-color) !important;
  }
  
  /* === Hero Section Mejorado === */
  .hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5f61 100%);
    position: relative;
    overflow: hidden;
  }
  
  .hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../img/pattern.png") repeat;
    opacity: 0.1;
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  .hero-stats .stat-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
  }
  
  .animate-float {
    animation: float 3s ease-in-out infinite;
  }
  
  @keyframes float {
    0%,
    100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-20px);
    }
  }
  
  /* === Navbar Mejorado === */
  .navbar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: var(--transition);
  }
  
  .navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
  }
  
  .navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    transition: var(--transition);
  }
  
  .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
  }
  
  .nav-link:hover,
  .nav-link.active {
    background-color: var(--light-bg);
    color: var(--primary-color) !important;
  }
  
  /* === Cards de Servicios === */
  .service-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
  
  .card-img-wrapper {
    position: relative;
    overflow: hidden;
  }
  
  .card-img-wrapper img {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
  }
  
  /* Efecto hover para las tarjetas de módulos en el dashboard */
  .modulo-card-hover {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-color: var(--bs-primary) !important; /* Asegurarse de que el borde se mantenga */
  }
  
  .modulo-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-color: var(--bs-primary) !important; /* Asegurarse de que el borde se mantenga */
  }

  .modulo-card-hover:hover .card-body {
    background-color: rgba(0, 123, 255, 0.05); /* Fondo azul muy claro al hacer hover */
  }

  .modulo-card-hover:hover i {
    color: #0056b3 !important; /* Icono más oscuro al hacer hover */
  }

  .modulo-card-hover:hover h6 {
    color: #0056b3 !important; /* Título más oscuro al hacer hover */
  }
  
  /* Asegurar que el enlace no tenga subrayado */
  .modulo-card-hover a {
    text-decoration: none !important;
  }
  
  .service-card:hover .card-img-wrapper img {
    transform: scale(1.1);
  }
  
  .service-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(44, 122, 123, 0.3);
  }
  
  /* === Features Section === */
  .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
  }
  
  .floating-card {
    position: absolute;
    bottom: 20px;
    right: 20px;
    animation: float 2s ease-in-out infinite;
  }
  
  /* === Testimonios === */
  .testimonial-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
  }
  
  .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .stars i {
    font-size: 0.9rem;
  }
  
  /* === CTA Section === */
  .cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
  }
  
  .cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../img/pattern.png") repeat;
    opacity: 0.1;
  }
  
  /* === Botones === */
  .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
  }
  
  .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }
  
  .btn:hover::before {
    left: 100%;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1a5f61);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(44, 122, 123, 0.3);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 122, 123, 0.4);
  }
  
  /* Added cart counter and loading button styles */
  #cart-count {
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
  
  .btn-loading {
    pointer-events: none;
  }
  
  .spinner-border-sm {
    width: 1rem;
    height: 1rem;
  }
  
  /* === Footer === */
  .footer {
    background: linear-gradient(135deg, #1a202c 0%, var(--dark-text) 100%);
  }
  
  .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
  }
  
  .social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
  }
  
  /* === Formularios === */
  .form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .form-control,
  .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    transition: var(--transition);
  }
  
  .form-control:focus,
  .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(79, 209, 197, 0.25);
  }
  
  /* === Tablas === */
  .table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
  }
  
  .table th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
  }
  
  .table-hover tbody tr:hover {
    background-color: rgba(79, 209, 197, 0.1);
  }
  
  /* === Animaciones === */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in {
    animation: fadeIn 0.8s ease-out forwards;
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
  }
  
  /* === Responsive === */
  @media (max-width: 992px) {
    .hero-section {
      padding: 3rem 0;
    }
  
    .hero-content h1 {
      font-size: 2.5rem;
    }
  
    .navbar-collapse {
      background: white;
      margin-top: 1rem;
      border-radius: 10px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      padding: 1rem;
    }
  
    .floating-card {
      position: static;
      margin-top: 2rem;
    }
  }
  
  @media (max-width: 768px) {
    .hero-content h1 {
      font-size: 2rem;
    }
  
    .hero-stats .row {
      text-align: center;
    }
  
    .btn {
      padding: 0.5rem 1.5rem;
      font-size: 0.9rem;
    }
  }
  
  /* === Utilidades === */
  .page-title {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
  }
  
  .page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
  }
  
  .text-center .page-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .text-start .page-title::after {
    left: 0;
    transform: none;
  }
  
  /* Estilos para los botones de acción en la tabla */
  .btn-action {
    width: 36px; /* Ancho fijo para todos los botones */
    height: 36px; /* Alto fijo para todos los botones */
    padding: 0; /* Eliminar padding interno */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; /* Tamaño de fuente para el ícono */
    line-height: 1; /* Alinear verticalmente el ícono */
    border-radius: 0.25rem; /* Redondeo suave, opcional */
}

/* Ajuste específico para el botón "Ver Detalles" si es necesario */
.btn-action.btn-outline-primary {
    /* Puedes ajustar el padding aquí si el ícono no está centrado perfectamente */
    padding: 0.25rem 0.5rem;
}

/* Para el grupo de botones, asegurar que no haya espacio extra */
.btn-group.btn-group-sm .btn-action {
    margin: 0 0.125rem; /* Espacio entre botones */
}