/* Variables de color */
:root {
  --primary: #1976d2;
  --primary-light: #e3f0ff;
  --primary-dark: #1565c0;
  --success: #38b000;
  --success-light: #e6f5ea;
  --purple: #7c3aed;
  --purple-light: #f1e6f5;
  --danger: #ef4444;
  --warning: #f59e0b;
  --neutral-bg: #f6f7fb;
  --card-bg: #fff;
  --border: #e5e7eb;
  --muted: #525c6d;
  --shadow: 0 4px 36px 0 rgba(22, 119, 255, 0.09);
  --dark: #1e293b;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--neutral-bg);
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px 0 rgba(22, 119, 255, 0.05);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--primary) !important;
  transition: transform 0.2s;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

/* Cards principales */
.main-card {
  background: var(--card-bg);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  margin: 3rem auto 2rem auto;
  max-width: 1200px;
}

.card-section {
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(22, 119, 255, 0.07);
  background: var(--card-bg);
  border: none;
}

/* Títulos */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  color: var(--primary);
}

.text-muted {
  color: var(--muted) !important;
}

/* Botones */
.btn {
  border-radius: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Hero image */
.hero-img {
  width: 100%;
  max-width: 500px;
  border-radius: 1.5rem;
  box-shadow: 0 8px 48px 0 rgba(22, 119, 255, 0.1);
  object-fit: cover;
}

/* Feature cards */
.feature-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.card-feature {
  background: var(--card-bg);
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(22, 119, 255, 0.09);
  border: none;
  padding: 2rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 250px;
  max-width: 350px;
  flex: 1 1 250px;
}

.card-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px 0 rgba(22, 119, 255, 0.16);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  box-shadow: 0 2px 8px 0 rgba(22, 119, 255, 0.09);
}

.icon-blue {
  background: var(--primary-light);
  color: var(--primary);
}

.icon-green {
  background: var(--success-light);
  color: var(--success);
}

.icon-purple {
  background: var(--purple-light);
  color: var(--purple);
}

/* Steps */
.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* Forms */
.form-control,
.form-select {
  border-radius: 0.8rem;
  border: 2px solid var(--border);
  padding: 0.75rem 1rem;
  transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.invalid-feedback {
  display: none;
  font-size: 0.875rem;
  color: var(--danger);
  margin-top: 0.25rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-check-input:invalid ~ .invalid-feedback {
  display: block;
}

.was-validated .form-control:invalid {
  border-color: var(--danger);
}

.was-validated .form-control:valid {
  border-color: var(--success);
}

/* Login page */
.login-page {
  background: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  max-width: 450px;
  width: 100%;
}

.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, var(--primary), var(--success));
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.login-header i {
  font-size: 60px;
  margin-bottom: 15px;
}

.login-header h2 {
  margin: 0;
  font-weight: 600;
  color: white;
}

.login-body {
  padding: 40px 30px;
}

.input-group-text {
  background: white;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.btn-login {
  background: linear-gradient(135deg, var(--primary), var(--success));
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  color: white;
  transition: transform 0.2s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.users-demo {
  background: #f8fafc;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.users-demo h6 {
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.user-demo-item {
  background: white;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}

.user-demo-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-demo-item small {
  display: block;
  color: #64748b;
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
}

/* Progress bar */
.progress {
  background: #e9edf5;
  height: 16px;
  border-radius: 8px;
}

.progress-bar {
  background: var(--primary);
  border-radius: 8px;
}

/* Badges */
.badge {
  padding: 0.5em 1em;
  border-radius: 0.8rem;
  font-weight: 600;
}

/* Timeline */
.timeline-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
}

 .user-profile {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-avatar-circle {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #2563eb;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 16px;
        }

        .user-info-text {
            text-align: right;
        }

        .user-info-text .name {
            font-weight: 700;
            color: #1e293b;
            font-size: 14px;
            margin: 0;
        }

        .user-info-text .role {
            font-size: 12px;
            color: #64748b;
            text-transform: uppercase;
            margin: 0;
        }

/* Responsive */
@media (max-width: 768px) {
  .main-card {
    padding: 1.5rem 1rem;
    margin: 1rem auto;
  }

  .feature-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .card-feature {
    max-width: 100%;
  }

  .hero-img {
    max-width: 100%;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .main-card {
    border-radius: 1rem;
    padding: 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-card {
  animation: fadeIn 0.5s ease;
}

/* ========== ESTILOS PARA MÓDULOS ADMINISTRATIVOS ========== */

/* App Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.user-info-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--success));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.user-role {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filters Container */
.filters-container {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.filter-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.8rem;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.filter-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.btn-refresh {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-refresh:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* Cards Container */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* Pedido Card */
.pedido-card {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.pedido-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.15);
  border-color: var(--primary);
}

.pedido-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.pedido-id {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.badge-urgente {
  background: #fee2e2;
  color: #dc2626;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.badge-normal {
  background: #dbeafe;
  color: #2563eb;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.badge-baja {
  background: #f3f4f6;
  color: #6b7280;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.pedido-info {
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
}

.info-value {
  font-weight: 600;
  color: var(--dark);
  text-align: right;
  font-size: 0.9rem;
}

.pedido-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pedido-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 4rem;
  color: var(--muted);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.empty-text {
  color: var(--muted);
  font-size: 1rem;
}

/* Form Container */
.form-container {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

/* Responsive para módulos administrativos */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .user-info-inline {
    width: 100%;
    justify-content: center;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

  .filters-container {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .btn-refresh {
    width: 100%;
  }
}

/* Screen Container - Terminal Style */
.screen-container {
  background: #1a1a2e;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.screen-header {
  background: linear-gradient(135deg, #0f3460, #16213e);
  padding: 1.5rem;
  border-bottom: 3px solid #00d9ff;
}

.screen-title {
  color: #00d9ff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.user-info {
  background: #16213e;
  padding: 1rem 1.5rem;
  color: #00ff88;
  font-weight: 600;
  border-bottom: 1px solid #2a3f5f;
  font-family: "Courier New", monospace;
}

.screen-content {
  padding: 2rem 1.5rem;
  background: #0f0f23;
}

/* Info Box */
.info-box {
  background: #16213e;
  border: 2px solid #00d9ff;
  border-radius: 0.8rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.info-box-title {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a3f5f;
}

.badge-urgencia {
  background: #00ff88;
  color: #0f0f23;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-box .info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #1a2332;
}

.info-box .info-row:last-child {
  border-bottom: none;
}

.info-box .info-label {
  color: #00d9ff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-box .info-value {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

/* Form Controls Custom */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: #00d9ff;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.form-label.required::after {
  content: " *";
  color: #ff4757;
}

.form-control-custom {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #16213e;
  border: 2px solid #2a3f5f;
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
  font-family: "Courier New", monospace;
}

.form-control-custom:focus {
  outline: none;
  border-color: #00d9ff;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
  background: #1a2840;
}

.form-control-custom::placeholder {
  color: #5a6f8f;
}

.input-group-custom {
  display: flex;
  gap: 0.5rem;
}

.input-group-custom .form-control-custom {
  flex: 1;
}

/* Validation Message */
.validation-message {
  margin-top: 0.5rem;
  color: #00ff88;
  font-size: 0.85rem;
  font-weight: 500;
}

.validation-message i {
  margin-right: 0.25rem;
}

/* Alert Box */
.alert-box {
  background: #2a1a4e;
  border: 2px solid #7c3aed;
  border-radius: 0.8rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.alert-title {
  color: #a78bfa;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.alert-message {
  color: #c4b5fd;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Success Box */
.success-box {
  background: #1a3a2e;
  border: 2px solid #00ff88;
  border-radius: 0.8rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  text-align: center;
}

.success-title {
  color: #00ff88;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.success-icon {
  font-size: 2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.status-badge {
  display: inline-block;
  background: #00ff88;
  color: #0f0f23;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

/* Custom Buttons */
.btn-custom {
  padding: 0.875rem 1.75rem;
  background: #2a3f5f;
  color: #ffffff;
  border: 2px solid #3a5f8f;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Segoe UI", sans-serif;
}

.btn-custom:hover {
  background: #3a5f8f;
  border-color: #4a7faf;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(58, 95, 143, 0.4);
}

.btn-primary-custom {
  background: linear-gradient(135deg, #00d9ff, #00a8cc);
  border-color: #00d9ff;
  color: #0f0f23;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #00a8cc, #007a99);
  border-color: #00a8cc;
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.5);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.form-actions .btn-custom {
  flex: 1;
  min-width: 150px;
}

/* Responsive for screen container */
@media (max-width: 768px) {
  .screen-container {
    border-radius: 0;
  }

  .screen-content {
    padding: 1.5rem 1rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn-custom {
    width: 100%;
  }

  .info-box {
    padding: 1rem;
  }

  .success-box {
    padding: 1.5rem 1rem;
  }

  .success-title {
    font-size: 1.1rem;
    flex-direction: column;
  }
}

/* ========== ESTILOS PARA MÓDULOS DE FARMACIA Y LOGÍSTICA ========== */

/* Pharmacy Header */
.pharmacy-header {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.pharmacy-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.pharmacy-logo svg {
  color: #2563eb;
}

.pharmacy-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pharmacy-user .user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.pharmacy-user .user-info {
  display: flex;
  flex-direction: column;
}

.pharmacy-user .user-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.2;
}

.pharmacy-user .user-role {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Pharmacy Container */
.pharmacy-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Pharmacy Tabs */
.pharmacy-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pharmacy-tab {
  flex: 1;
  min-width: 200px;
  background: white;
  border: none;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pharmacy-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pharmacy-tab.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.pharmacy-tab svg {
  width: 20px;
  height: 20px;
}

/* Pharmacy Filters */
.pharmacy-filters {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
}

/* Pharmacy Cards */
.pharmacy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pharmacy-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.pharmacy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #2563eb;
}

.pharmacy-card-info {
  margin-bottom: 1.5rem;
}

.pharmacy-card-info .info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.pharmacy-card-info .info-row:last-child {
  border-bottom: none;
}

.pharmacy-card-info .info-label {
  font-weight: 600;
  color: #64748b;
  font-size: 0.85rem;
}

.pharmacy-card-info .info-value {
  font-weight: 700;
  color: #1e293b;
  text-align: right;
  font-size: 0.9rem;
}

/* Pharmacy Badges */
.pharmacy-badge {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pharmacy-badge-urgente {
  background: #fee2e2;
  color: #dc2626;
}

.pharmacy-badge-normal {
  background: #dbeafe;
  color: #2563eb;
}

.pharmacy-badge-baja {
  background: #d1fae5;
  color: #059669;
}

/* Pharmacy Button */
.pharmacy-btn {
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pharmacy-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pharmacy-btn svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .pharmacy-header {
    flex-direction: column;
    text-align: center;
  }

  .pharmacy-tabs {
    flex-direction: column;
  }

  .pharmacy-tab {
    min-width: 100%;
  }

  .pharmacy-cards {
    grid-template-columns: 1fr;
  }
}
