/* ============================================
   VARIABLES
   ============================================ */
:root {
  --verde-menta: #B6EBD9;
  --azul-oscuro: #052A4F;
  --gris-claro: #F3F4F6;
  --mostaza: #FFBF47;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.main-body {
  background: var(--gris-claro);
  padding: 0;
  min-height: calc(100vh - 200px);
}

/* ============================================
   SHARED LAYOUT COMPONENTS
   ============================================ */

/* Page Container - Used in internal pages */
.page-container {
  padding: 2rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  color: var(--azul-oscuro);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.page-subtitle {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

/* Card Grid Layout - Used in Facturacion, Mascotas, etc. */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card-block {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-block h3 {
  color: var(--azul-oscuro);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Dashboard Statistics Cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card-mint {
  background: var(--verde-menta);
}

.stat-card-warning {
  background: var(--mostaza);
}

.stat-card-gray {
  background: #E5E7EB;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--azul-oscuro);
  opacity: 0.8;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--azul-oscuro);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--azul-oscuro);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-buttons .btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-buttons .btn-light,
.action-buttons .btn.btn-light {
  background-color: white !important;
  border: 2px solid var(--azul-oscuro) !important;
  color: var(--azul-oscuro) !important;
}

.action-buttons .btn-light:hover,
.action-buttons .btn.btn-light:hover {
  background-color: var(--gris-claro) !important;
}

@media (max-width: 768px) {
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons .btn {
    width: 100%;
  }
}

/* Estado Badges */
.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.badge-programada {
  background-color: var(--verde-menta);
  color: var(--azul-oscuro);
}

.badge-completada {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.badge-cancelada {
  background-color: #FEE2E2;
  color: #991B1B;
}

.badge-confirmada {
  background-color: #D1FAE5;
  color: #065F46;
}

.badge-default {
  background-color: #F3F4F6;
  color: #374151;
}

/* CRUD Buttons Styling */
.crud-buttons {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--gris-claro);
  border-radius: 8px;
}

.crud-btn {
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.crud-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.crud-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.crud-btn-new {
  background-color: var(--azul-oscuro) !important;
  border-color: var(--azul-oscuro) !important;
  color: white !important;
}

.crud-btn-edit {
  background-color: white !important;
  border: 2px solid var(--azul-oscuro) !important;
  color: var(--azul-oscuro) !important;
}

.crud-btn-cancel {
  background-color: var(--mostaza) !important;
  border-color: var(--mostaza) !important;
  color: var(--azul-oscuro) !important;
}

.crud-btn-delete {
  background-color: #EF4444 !important;
  border-color: #EF4444 !important;
  color: white !important;
}

/* ============================================
   DATEPICKER (FLATPICKR) STYLES
   ============================================ */

/* Enhanced DatePicker styling with modern color scheme */
.flatpickr-calendar {
  background-color: white !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  z-index: 9999 !important;
}

.flatpickr-months {
  background-color: var(--azul-oscuro) !important;
  border-radius: 8px 8px 0 0 !important;
}

.flatpickr-current-month {
  color: white !important;
}

.flatpickr-monthDropdown-months, .numInputWrapper .numInput {
  background-color: var(--azul-oscuro) !important;
  color: white !important;
  border: none !important;
}

.flatpickr-monthDropdown-months:hover, .numInputWrapper .numInput:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.flatpickr-weekday {
  color: var(--azul-oscuro) !important;
  font-weight: 600 !important;
}

.flatpickr-day {
  color: #374151 !important;
  border: none !important;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
  background-color: rgba(182, 235, 217, 0.3) !important;
  color: var(--azul-oscuro) !important;
  border: none !important;
}

.flatpickr-day.selected {
  background-color: var(--verde-menta) !important;
  color: var(--azul-oscuro) !important;
  border: none !important;
  font-weight: 600 !important;
}

.flatpickr-day.today {
  border: 2px solid var(--verde-menta) !important;
  background-color: transparent !important;
}

.flatpickr-day.today:hover {
  background-color: rgba(182, 235, 217, 0.3) !important;
}

.flatpickr-time input {
  color: var(--azul-oscuro) !important;
  font-weight: 600 !important;
}

.flatpickr-am-pm {
  color: var(--azul-oscuro) !important;
}

/* ============================================
   AGENDA/CALENDAR STYLES
   ============================================ */

/* Agenda header with mint green background */
.agenda-header {
  background-color: var(--verde-menta);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.agenda-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agenda-title {
  color: var(--azul-oscuro);
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Bloquear horario button - mustard yellow */
.btn-bloquear {
  background-color: var(--mostaza) !important;
  border-color: var(--mostaza) !important;
  color: var(--azul-oscuro) !important;
  font-weight: 600;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-bloquear:hover {
  background-color: #E5AB3F !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Calendar navigation section */
.calendar-nav-section {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.calendar-nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.view-selector {
  min-width: 150px;
  padding: 0.5rem;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background-color: white;
  color: var(--azul-oscuro);
  font-size: 0.95rem;
}

.nav-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Navigation buttons styling */
.btn-nav {
  background-color: white !important;
  border: 2px solid var(--azul-oscuro) !important;
  color: var(--azul-oscuro) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-nav:hover {
  background-color: var(--azul-oscuro) !important;
  color: white !important;
}

.btn-today {
  font-weight: 600;
}

.date-selector {
  min-width: 150px;
}

.action-section {
  display: flex;
  gap: 0.5rem;
}

.btn-eliminar {
  background-color: var(--gris-claro) !important;
  border: 1px solid #D1D5DB !important;
  color: var(--azul-oscuro) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
}

.btn-eliminar:hover:not(:disabled) {
  background-color: #E5E7EB !important;
}

.btn-eliminar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Calendar wrapper */
.calendar-wrapper {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Calendar table styling */
.calendar-wrapper table {
  width: 100%;
  border-collapse: collapse;
}

.calendar-wrapper th {
  background-color: var(--azul-oscuro) !important;
  color: white !important;
  padding: 1rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-wrapper td {
  padding: 0.5rem;
  border: 1px solid #E5E7EB;
  vertical-align: top;
  min-height: 80px;
  background-color: white;
}

/* Calendar task/appointment blocks */
.calendar-wrapper .task-block,
.calendar-wrapper .calendar-task,
.calendar-wrapper .hour-task,
.calendar-wrapper .day-task {
  background-color: var(--verde-menta) !important;
  color: var(--azul-oscuro) !important;
  padding: 0.5rem;
  border-radius: 6px;
  margin: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #9FD9C4;
}

.calendar-wrapper .task-block:hover,
.calendar-wrapper .calendar-task:hover,
.calendar-wrapper .hour-task:hover,
.calendar-wrapper .day-task:hover {
  background-color: #9FD9C4 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Task info card */
.task-info-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--verde-menta);
}

.task-info-header {
  background-color: var(--verde-menta);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
}

.task-info-header i {
  color: var(--azul-oscuro);
  font-size: 1.25rem;
}

.task-info-header h5 {
  color: var(--azul-oscuro);
  font-weight: 600;
}

.task-info-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-info-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: start;
}

.task-info-row strong {
  color: var(--azul-oscuro);
  font-weight: 600;
}

.task-info-row span {
  color: #374151;
}

/* ============================================
   DATAGRID STYLES
   ============================================ */

/* DataGrid hover effect - light mint green */
.table-hover > tbody > tr:hover {
  background-color: rgba(182, 235, 217, 0.3) !important;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */

/* Main Navbar Bar */
.main-navbar {
  border-bottom: 2px solid var(--verde-menta);
}

/* Brand Link */
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--azul-oscuro);
}

.brand-link:hover {
  text-decoration: none;
  color: var(--azul-oscuro);
}

.brand-logo {
  height: 40px;
  margin-right: 0.5rem;
}

.brand-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--azul-oscuro);
}

/* Bar Navigation Link Styles */
.b-bar-item .b-bar-link {
  color: var(--azul-oscuro) !important;
  font-weight: 400;
  font-size: 1rem;
  font-style: normal !important;
  transition: color 0.2s ease;
}

.b-bar-item .b-bar-link:hover {
  color: var(--verde-menta) !important;
  background-color: transparent !important;
}

.b-bar-dropdown-toggle {
  color: var(--azul-oscuro) !important;
  font-weight: 400;
  font-size: 1rem;
  font-style: normal !important;
}

.b-bar-dropdown-toggle:hover {
  color: var(--verde-menta) !important;
}

/* Login CTA Button */
.login-cta-btn {
  font-weight: 500;
  padding: 0.5rem 1.5rem;
}

.b-bar-dropdown-item {
  color: var(--azul-oscuro);
}

.b-bar-dropdown-item:hover {
  background-color: var(--verde-menta) !important;
  color: white !important;
}

/* ============================================
   BLAZORISE MESSAGE/MODAL CUSTOMIZATION
   ============================================ */

/* Modal backdrop */
.modal-backdrop {
  background-color: rgba(5, 42, 79, 0.5) !important;
}

/* Modal content */
.modal-content {
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Modal header */
.modal-header {
  background: linear-gradient(135deg, var(--verde-menta) 0%, #9FE0CC 100%) !important;
  border-bottom: none !important;
  padding: 1.5rem 1.5rem 1.25rem 1.5rem !important;
  border-radius: 12px 12px 0 0 !important;
}

.modal-title {
  color: var(--azul-oscuro) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
}

/* Modal close button */
.btn-close {
  filter: brightness(0) saturate(100%) invert(12%) sepia(47%) saturate(2851%) hue-rotate(190deg) brightness(97%) contrast(102%) !important;
}

/* Modal body */
.modal-body {
  padding: 1.5rem !important;
  color: #374151 !important;
}

/* Modal footer */
.modal-footer {
  border-top: 1px solid #E5E7EB !important;
  padding: 1rem 1.5rem !important;
  background: #F9FAFB !important;
  border-radius: 0 0 12px 12px !important;
}

/* Message modal buttons */
.modal-footer .btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 0.625rem 1.5rem !important;
}

.modal-footer .btn-primary {
  background-color: var(--azul-oscuro) !important;
  border-color: var(--azul-oscuro) !important;
}

.modal-footer .btn-primary:hover {
  background-color: #041f3a !important;
  border-color: #041f3a !important;
}

.modal-footer .btn-secondary {
  background-color: var(--gris-claro) !important;
  border-color: var(--gris-claro) !important;
  color: var(--azul-oscuro) !important;
}

.modal-footer .btn-secondary:hover {
  background-color: #E5E7EB !important;
  border-color: #E5E7EB !important;
}

/* Success icon customization */
.modal-body .text-success {
  color: #10B981 !important;
}

/* User Welcome Section */
.user-welcome {
  margin-right: 1rem;
  color: var(--azul-oscuro);
  display: flex;
  align-items: center;
}

/* Logo (Legacy - keeping for compatibility) */
.logo {
  height: 40px;
  margin-right: 0.5rem;
}

.brand-name {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--azul-oscuro);
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer {
  background: var(--azul-oscuro);
  color: white;
  padding: 3rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.footer-copy {
  opacity: 0.8;
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================
   AUTHENTICATION PAGES (LOGIN & REGISTER)
   ============================================ */
.auth-page {
  min-height: 100vh;
  background: var(--gris-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-container {
  max-width: 480px;
  width: 100%;
}

.auth-container-wide {
  max-width: 900px;
}

.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.auth-header {
  background: var(--gris-claro);
  padding: 2rem 2rem 1.5rem 2rem;
  text-align: center;
}

.auth-main-title {
  color: var(--azul-oscuro);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #E5E7EB;
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  color: #6B7280;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.auth-tab:hover {
  background: #F9FAFB;
}

.auth-tab-active {
  background: var(--verde-menta);
  color: var(--azul-oscuro);
  font-weight: 600;
  border-bottom-color: var(--verde-menta);
}

.auth-form-container {
  padding: 2.5rem 2rem;
}

.auth-form-register {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

.auth-input {
  padding: 0.875rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
}

.auth-input:focus {
  border-color: var(--verde-menta);
  outline: none;
  box-shadow: 0 0 0 3px rgba(182, 235, 217, 0.15);
}

.auth-input::placeholder {
  color: #9CA3AF;
}

.auth-submit-btn {
  padding: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  font-size: 1rem;
  background-color: var(--mostaza) !important;
  border-color: var(--mostaza) !important;
  color: var(--azul-oscuro) !important;
}

.auth-submit-btn:hover {
  background-color: #F5B03C !important;
  border-color: #F5B03C !important;
}

.auth-footer-link {
  text-align: center;
  margin-top: 1rem;
}

.forgot-password-link {
  color: var(--azul-oscuro);
  font-size: 0.95rem;
  text-decoration: none;
}

.forgot-password-link:hover {
  text-decoration: underline;
  color: var(--verde-menta);
}

@media (max-width: 768px) {
  .auth-form-container {
    padding: 1.5rem 1rem;
  }
  
  .auth-header {
    padding: 1.5rem 1rem 1rem 1rem;
  }
  
  .auth-main-title {
    font-size: 1.25rem;
  }
  
  .auth-tab {
    font-size: 0.9rem;
    padding: 0.875rem;
  }
}

/* ============================================
   REGISTRATION PAGE
   ============================================ */
.register-page {
  min-height: 100vh;
  background: var(--gris-claro);
  padding: 2rem 0;
}

.register-card {
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  margin-bottom: 2rem;
}

.register-header {
  background: linear-gradient(135deg, var(--verde-menta) 0%, #9FE0CC 100%);
  padding: 2.5rem 2rem;
  border-bottom: none;
}

.register-logo {
  max-width: 70px;
  height: auto;
}

.register-title {
  color: var(--azul-oscuro);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.register-subtitle {
  color: var(--azul-oscuro);
  opacity: 0.8;
  margin-bottom: 0;
}

.register-body {
  padding: 2.5rem 2rem;
}

.register-body .divider {
  margin: 2rem 0 1.5rem 0;
}

.register-body .divider .divider-text {
  color: var(--azul-oscuro);
  font-weight: 600;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .register-page {
    padding: 1rem 0;
  }
  
  .register-header {
    padding: 2rem 1.5rem;
  }
  
  .register-body {
    padding: 1.5rem 1rem;
  }
}

/* ============================================
   HOME PAGE (INDEX)
   ============================================ */

/* Hero Section */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 4rem;
  background: var(--verde-menta);
  margin: 0;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    padding: 2rem;
    text-align: center;
  }
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 3rem;
  color: var(--azul-oscuro);
  font-weight: 800;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--azul-oscuro);
  margin-bottom: 2rem;
}

.contact-btn {
  background: var(--mostaza);
  border: none;
  padding: 0.8rem 2rem;
  font-weight: bold;
  color: var(--azul-oscuro);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 420px;
  width: 100%;
  height: auto;
}

/* Store Section */
.store-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 4rem;
  background: var(--azul-oscuro);
  color: white;
  margin: 0;
}

@media (max-width: 768px) {
  .store-section {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem;
  }
}

.store-title {
  font-size: 2.2rem;
  margin: 0 0 0.5rem 0;
}

.store-subtitle {
  opacity: 0.9;
  margin: 0;
}

.tienda-btn {
  background: var(--mostaza);
  border: none;
  font-weight: bold;
  color: var(--azul-oscuro);
}

/* ============================================
   CONTACTO PAGE
   ============================================ */
.contact-section {
  padding: 4rem;
  background: var(--gris-claro);
}

@media (max-width: 768px) {
  .contact-section {
    padding: 2rem 1rem;
  }
}

.contact-title {
  font-size: 2.5rem;
  color: var(--azul-oscuro);
  margin-top: 0;
}

.contact-subtitle {
  margin-bottom: 2rem;
  color: #666;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.grid-span {
  grid-column: 1 / -1;
}

.contact-btn-2 {
  background: var(--mostaza);
  border: none;
  color: var(--azul-oscuro);
  font-weight: bold;
  margin-top: 1.5rem;
}

/* ============================================
   SERVICIOS PAGE
   ============================================ */
.section-services {
  padding: 4rem 2rem;
  background: var(--gris-claro);
}

.services-title {
  font-size: 2.5rem;
  color: var(--azul-oscuro);
  text-align: center;
  margin: 0 0 1rem 0;
}

.services-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   SOBRE (ABOUT) PAGE
   ============================================ */
.about-section {
  padding: 4rem 2rem;
  background: var(--gris-claro);
  max-width: 1000px;
  margin: 0 auto;
}

.about-title {
  font-size: 2.5rem;
  color: var(--azul-oscuro);
  text-align: center;
  margin: 0 0 2rem 0;
}

.about-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.about-photo {
  max-width: 300px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

/* ============================================
   TIENDA (STORE CATALOG) PAGE
   ============================================ */
.store-catalog {
  padding: 3rem 2rem;
  background: var(--gris-claro);
}

.catalog-title {
  font-size: 2.5rem;
  color: var(--azul-oscuro);
  text-align: center;
  margin: 0 0 1rem 0;
}

.catalog-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-card {
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
}

.catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CITAS PAGE
   ============================================ */
.citas-page {
  background: var(--gris-claro);
}

.citas-header {
  background: var(--azul-oscuro);
  color: white;
  padding: 1rem;
}

.citas-card {
  background: var(--verde-menta);
  border-radius: 12px;
  padding: 1rem;
}

.citas-btn-primary {
  background: var(--mostaza);
  border: none;
  color: var(--azul-oscuro);
  font-weight: bold;
}

/* ============================================
   MASCOTAS PAGE
   ============================================ */
.mascotas-page {
  background: var(--gris-claro);
  min-height: 100vh;
}

.mascotas-header {
  color: white;
  padding: 1rem;
}

.mascotas-card {
  background: var(--verde-menta);
  border-radius: 12px;
  padding: 1rem;
}

.mascotas-btn-primary {
  background: var(--mostaza) !important;
  border: none !important;
  color: var(--azul-oscuro) !important;
  font-weight: bold !important;
}

.mascotas-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.mascota-photo-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #B6EBD9;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mascota-photo-icon {
  color: #6B7280;
}

/* Clean DataGrid styling for mascotas */
.mascotas-page .table thead th {
  background: white !important;
  color: #6B7280 !important;
  font-weight: 600 !important;
  border-bottom: 2px solid #E5E7EB !important;
  text-transform: none !important;
}

.mascotas-page .table {
  background: white;
}

.mascotas-page .table tbody tr {
  border-bottom: 1px solid #E5E7EB;
}

.mascotas-page .table tbody tr:hover {
  background-color: #F9FAFB;
}

/* Responsive styles for Mascotas */
@media (max-width: 768px) {
  .page-container {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 0.875rem;
  }

  /* Make action buttons stack vertically on mobile */
  .mascota-photo-placeholder {
    width: 50px;
    height: 50px;
  }

  /* Adjust button sizing on mobile */
  .card-block .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }

  /* Make DataGrid scroll horizontally if needed */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.25rem;
  }

  .mascota-photo-placeholder {
    width: 40px;
    height: 40px;
  }

  .mascota-photo-icon {
    font-size: 1rem !important;
  }

  /* Stack action buttons on very small screens */
  .card-block .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Make inline action buttons smaller on mobile */
  .table .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  /* Hide action column icons on very small screens, show text only */
  .table .btn-sm .icon {
    display: none;
  }
}

/* Utility class for responsive button groups */
.action-buttons-responsive {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .action-buttons-responsive {
    flex-direction: column;
  }

  .action-buttons-responsive .btn {
    width: 100%;
  }
}

/* ============================================
   FACTURACION PAGE
   ============================================ */
.facturacion-page {
  background: var(--gris-claro);
}

.facturacion-header {
  background: var(--azul-oscuro);
  color: white;
  padding: 1rem;
}

.facturacion-card {
  background: var(--verde-menta);
  border-radius: 12px;
  padding: 1rem;
}

.facturacion-btn-primary {
  background: var(--mostaza);
  border: none;
  color: var(--azul-oscuro);
  font-weight: bold;
}

/* ============================================
   HISTORIAL PAGE
   ============================================ */
.historial-page {
  background: var(--gris-claro);
}

.historial-header {
  background: var(--azul-oscuro);
  color: white;
  padding: 1rem;
}

.historial-card {
  background: var(--verde-menta);
  border-radius: 12px;
  padding: 1rem;
}

.historial-btn-primary {
  background: var(--mostaza);
  border: none;
  color: var(--azul-oscuro);
  font-weight: bold;
}

/* ============================================
   INVENTARIO PAGE
   ============================================ */
.inventario-page {
  background: var(--gris-claro);
}

.inventario-header {
  background: var(--azul-oscuro);
  color: white;
  padding: 1rem;
}

.inventario-card {
  background: var(--verde-menta);
  border-radius: 12px;
  padding: 1rem;
}

.inventario-btn-primary {
  background: var(--mostaza);
  border: none;
  color: var(--azul-oscuro);
  font-weight: bold;
}

/* ============================================
   NOTIFICACIONES PAGE
   ============================================ */
.notificaciones-page {
  background: var(--gris-claro);
}

.notificaciones-header {
  background: var(--azul-oscuro);
  color: white;
  padding: 1rem;
}

.notificaciones-card {
  background: var(--verde-menta);
  border-radius: 12px;
  padding: 1rem;
}

.notificaciones-btn-primary {
  background: var(--mostaza);
  border: none;
  color: var(--azul-oscuro);
  font-weight: bold;
}

/* ============================================
   RECORDATORIOS PAGE
   ============================================ */
.recordatorios-page {
  background: var(--gris-claro);
}

.recordatorios-header {
  background: var(--azul-oscuro);
  color: white;
  padding: 1rem;
}

.recordatorios-card {
  background: var(--verde-menta);
  border-radius: 12px;
  padding: 1rem;
}

.recordatorios-btn-primary {
  background: var(--mostaza);
  border: none;
  color: var(--azul-oscuro);
  font-weight: bold;
}

/* ============================================
   USUARIOS PAGE
   ============================================ */
.usuarios-page {
  background: var(--gris-claro);
}

.usuarios-header {
  background: var(--azul-oscuro);
  color: white;
  padding: 1rem;
}

.usuarios-card {
  background: var(--verde-menta);
  border-radius: 12px;
  padding: 1rem;
}

.usuarios-btn-primary {
  background: var(--mostaza);
  border: none;
  color: var(--azul-oscuro);
  font-weight: bold;
}

/* ============================================
   RESPONSIVE DESIGN - AGENDA
   ============================================ */

@media (max-width: 768px) {
  /* Header adjustments for mobile */
  .agenda-header {
    padding: 1.5rem 0;
  }
  
  .agenda-header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
    text-align: center;
  }
  
  .agenda-title {
    font-size: 1.75rem;
  }
  
  .btn-bloquear {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  /* Navigation section adjustments */
  .calendar-nav-section {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  
  .calendar-nav-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .view-selector {
    width: 100%;
  }
  
  .nav-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-nav {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  
  .date-selector {
    width: 100%;
  }
  
  .action-section {
    width: 100%;
  }
  
  .btn-eliminar {
    width: 100%;
    padding: 0.75rem;
  }
  
  /* Calendar wrapper adjustments */
  .calendar-wrapper {
    padding: 0.75rem;
    overflow-x: auto;
  }
  
  /* Make calendar scrollable on mobile */
  .calendar-wrapper table {
    min-width: 600px;
  }
  
  /* Smaller font sizes for mobile calendar */
  .calendar-wrapper th,
  .calendar-wrapper td {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }
  
  .calendar-wrapper .hour-task,
  .calendar-wrapper .day-task {
    font-size: 0.75rem;
    padding: 0.25rem;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  .agenda-title {
    font-size: 1.5rem;
  }
  
  .btn-bloquear {
    font-size: 0.9rem;
  }
  
  .btn-nav {
    font-size: 0.85rem;
    padding: 0.65rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.ms-2 {
  margin-left: 0.5rem;
}

.ms-4 {
  margin-left: 1.5rem;
}

/* ============================================
   DETALLES MASCOTA PAGE STYLES
   ============================================ */
.detalles-page {
  padding: 2rem 1rem;
}

.detalles-header {
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, #063d6f 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.detalles-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.detalles-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.mascota-photo-large {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gris-claro);
  border: 2px solid #e0e0e0;
  margin: 0 auto 1rem;
}

.mascota-photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mascota-photo-icon-large {
  font-size: 80px;
  color: #9e9e9e;
}

.detail-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gris-claro);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row strong {
  color: var(--azul-oscuro);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-row span,
.detail-row p {
  color: #333;
  font-size: 1rem;
}

/* Responsive adjustments for Detalles page */
@media (max-width: 768px) {
  .detalles-page {
    padding: 1rem 0.5rem;
  }

  .detalles-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .detalles-title {
    font-size: 1.25rem;
  }

  .mascota-photo-large {
    width: 150px;
    height: 150px;
  }

  .mascota-photo-icon-large {
    font-size: 60px;
  }
}

@media (max-width: 480px) {
  .detalles-header {
    padding: 0.75rem;
  }

  .detalles-title {
    font-size: 1.1rem;
  }

  .mascota-photo-large {
    width: 120px;
    height: 120px;
  }

  .mascota-photo-icon-large {
    font-size: 50px;
  }

  .detail-row {
    padding: 0.5rem 0;
  }
}

/* ============================================
   VACUNACION PAGE STYLES
   ============================================ */
.vacunacion-page {
  padding: 2rem 1rem;
}

.vacunacion-header {
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, #063d6f 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.vacunacion-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.vacunacion-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.vacunacion-btn-primary {
  background-color: var(--mostaza);
  border-color: var(--mostaza);
  color: #333;
  font-weight: 600;
}

.vacunacion-btn-primary:hover {
  background-color: #e6ab3a;
  border-color: #e6ab3a;
}

.vacunacion-datagrid table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.vacunacion-datagrid thead {
  background-color: var(--gris-claro);
}

/* Responsive adjustments for Vacunacion page */
@media (max-width: 768px) {
  .vacunacion-page {
    padding: 1rem 0.5rem;
  }

  .vacunacion-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .vacunacion-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .vacunacion-header {
    padding: 0.75rem;
  }

  .vacunacion-title {
    font-size: 1.1rem;
  }
}

/* ============================================
   DESPARASITACION PAGE STYLES
   ============================================ */
.desparasitacion-page {
  padding: 2rem 1rem;
}

.desparasitacion-header {
  background: linear-gradient(135deg, #6a4c93 0%, #4a3571 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.desparasitacion-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.desparasitacion-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.desparasitacion-btn-primary {
  background-color: var(--mostaza);
  border-color: var(--mostaza);
  color: #333;
  font-weight: 600;
}

.desparasitacion-btn-primary:hover {
  background-color: #e6ab3a;
  border-color: #e6ab3a;
}

.desparasitacion-datagrid table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.desparasitacion-datagrid thead {
  background-color: var(--gris-claro);
}

/* Responsive adjustments for Desparasitacion page */
@media (max-width: 768px) {
  .desparasitacion-page {
    padding: 1rem 0.5rem;
  }

  .desparasitacion-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .desparasitacion-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .desparasitacion-header {
    padding: 0.75rem;
  }

  .desparasitacion-title {
    font-size: 1.1rem;
  }
}

/* ============================================
   CITAS MASCOTA PAGE STYLES
   ============================================ */
.citas-mascota-page {
  padding: 2rem 1rem;
}

.citas-mascota-header {
  background: linear-gradient(135deg, #2d9da8 0%, #1e6f7a 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.citas-mascota-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.citas-mascota-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.citas-mascota-datagrid table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.citas-mascota-datagrid thead {
  background-color: var(--gris-claro);
}

/* Responsive adjustments for Citas Mascota page */
@media (max-width: 768px) {
  .citas-mascota-page {
    padding: 1rem 0.5rem;
  }

  .citas-mascota-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .citas-mascota-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .citas-mascota-header {
    padding: 0.75rem;
  }

  .citas-mascota-title {
    font-size: 1.1rem;
  }
}

/* ============================================
   EXAMENES MEDICOS PAGE STYLES
   ============================================ */
.examenes-page {
  padding: 2rem 1rem;
}

.examenes-header {
  background: linear-gradient(135deg, #16a085 0%, #0e6655 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.examenes-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.examenes-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.examenes-btn-primary {
  background-color: var(--mostaza);
  border-color: var(--mostaza);
  color: #333;
  font-weight: 600;
}

.examenes-btn-primary:hover {
  background-color: #e6ab3a;
  border-color: #e6ab3a;
}

.examenes-datagrid table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.examenes-datagrid thead {
  background-color: var(--gris-claro);
}

/* Responsive adjustments for Examenes Medicos page */
@media (max-width: 768px) {
  .examenes-page {
    padding: 1rem 0.5rem;
  }

  .examenes-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .examenes-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .examenes-header {
    padding: 0.75rem;
  }

  .examenes-title {
    font-size: 1.1rem;
  }
}

/* ============================================
   INFORME MEDICO PAGE STYLES
   ============================================ */
.informe-page {
  padding: 2rem 1rem;
}

.informe-header {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.informe-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.informe-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.informe-btn-primary {
  background-color: var(--mostaza);
  border-color: var(--mostaza);
  color: #333;
  font-weight: 600;
}

.informe-btn-primary:hover {
  background-color: #e6ab3a;
  border-color: #e6ab3a;
}

.informe-datagrid table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.informe-datagrid thead {
  background-color: var(--gris-claro);
}

/* Responsive adjustments for Informe Medico page */
@media (max-width: 768px) {
  .informe-page {
    padding: 1rem 0.5rem;
  }

  .informe-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .informe-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .informe-header {
    padding: 0.75rem;
  }

  .informe-title {
    font-size: 1.1rem;
  }
}

/* ============================================
   SHOPPING CART OFFCANVAS STYLES
   ============================================ */
.cart-offcanvas {
  width: 420px;
}

.cart-offcanvas-header {
  background: linear-gradient(135deg, #052A4F 0%, #0a4d8f 100%);
  color: white;
  padding: 1.5rem;
}

.cart-offcanvas-title {
  color: white;
  margin: 0;
}

.cart-offcanvas-body {
  padding: 1.5rem;
}

/* Empty cart state */
.cart-empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.cart-empty-icon {
  color: #ccc;
  margin-bottom: 1rem;
}

.cart-empty-title {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cart-empty-subtitle {
  color: #999;
  font-size: 0.9rem;
}

/* Cart items */
.cart-items-container {
  margin-bottom: 1.5rem;
}

.cart-item-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.cart-item-card .card-body {
  padding: 1rem;
}

.cart-item-image {
  max-height: 60px;
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #f0f0f0;
  padding: 4px;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--azul-oscuro);
}

.cart-item-price {
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.cart-item-total {
  color: var(--mostaza);
  font-weight: 700;
  font-size: 1rem;
}

.cart-item-delete-btn {
  border-radius: 50%;
  padding: 0.4rem 0.6rem;
}

/* Cart divider */
.cart-divider {
  border-top: 2px solid #e0e0e0;
}

/* Cart total */
.cart-total-card {
  background: var(--gris-claro);
  border: none;
  margin-bottom: 1rem;
}

.cart-total-card .card-body {
  padding: 1rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--azul-oscuro);
}

.cart-total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul-oscuro);
}

/* Cart action buttons */
.cart-checkout-btn {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cart-clear-btn {
  font-weight: 600;
}

/* Responsive adjustments for cart offcanvas */
@media (max-width: 768px) {
  .cart-offcanvas {
    width: 100%;
    max-width: 420px;
  }
}
/* ============================================
   CHECKOUT PAGE STYLES
   ============================================ */
.checkout-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkout-card-header {
  background: var(--gris-claro);
  color: var(--azul-oscuro);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid #e0e0e0;
}

/* Order summary items */
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
}

.checkout-item-image-wrapper {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.checkout-item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  padding: 2px;
  background: white;
}

.checkout-item-details {
  flex-grow: 1;
  min-width: 0;
}

.checkout-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--azul-oscuro);
  margin-bottom: 0.25rem;
}

.checkout-item-quantity {
  font-size: 0.85rem;
  color: #6c757d;
}

.checkout-item-total {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--azul-oscuro);
}

/* Summary rows */
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--gris-claro);
  border-radius: 6px;
  margin-top: 0.5rem;
}

.checkout-total-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--azul-oscuro);
}

.checkout-total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul-oscuro);
}

/* Delivery options */
.checkout-delivery-option {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.checkout-delivery-option:hover {
  background: #f8f9fa;
  border-color: var(--azul-oscuro);
}

.checkout-delivery-cost {
  color: var(--mostaza);
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Confirm button */
.checkout-confirm-btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

/* Responsive adjustments for checkout */
@media (max-width: 768px) {
  .checkout-item {
    flex-wrap: wrap;
  }

  .checkout-item-total {
    width: 100%;
    text-align: right;
    margin-top: 0.5rem;
  }

  .checkout-total-label {
    font-size: 1rem;
  }

  .checkout-total-amount {
    font-size: 1.25rem;
  }
}

/* ============================================
   INVENTARIO MODULE - SHARED STYLES
   ============================================ */

/* Empty state icon */
.empty-state-icon {
  color: #ccc;
}

/* Tienda product image */
.tienda-product-image {
  height: 200px;
  object-fit: cover;
  padding: 1rem;
}

/* Inventario thumbnail */
.inventario-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tienda-product-image {
    height: 150px;
  }
}

/* ============================================
   HISTORIAL MEDICO STYLES
   ============================================ */
.historial-item {
  padding: 0.75rem 0;
}

.historial-item p {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.detalle-card {
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.detalle-item {
  margin-bottom: 1rem;
}

.detalle-item strong {
  display: block;
  color: var(--azul-oscuro);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.detalle-item > div {
  color: #374151;
  line-height: 1.6;
  padding-left: 0.5rem;
}

/* List item default styling */
.list-group-item {
  color: #374151;
}

/* Header section - white text */
.list-group-item .historial-fecha,
.list-group-item .historial-fecha strong,
.list-group-item .historial-fecha .b-icon {
  color: #ffffff !important;
}

/* Body content - keep readable colors */
.list-group-item .consultation-detail {
  color: #374151;
}

.list-group-item .consultation-detail strong {
  color: #1f2937;
}

.list-group-item .consultation-detail p {
  color: #4b5563;
}

.list-group-item:hover {
  cursor: pointer;
}

/* Selected list item styling for better readability */
.list-group-item.active,
.list-group-item.active .historial-item {
  background-color: #e0f2fe !important;
  border-color: #0ea5e9;
}

/* Keep header white even when selected */
.list-group-item.active .historial-fecha,
.list-group-item.active .historial-fecha strong,
.list-group-item.active .historial-fecha .b-icon {
  color: #ffffff !important;
}

/* Body content in selected state */
.list-group-item.active .consultation-detail strong {
  color: #052A4F !important;
}

.list-group-item.active p {
  color: #052A4F !important;
}

/* Pet summary card */
.pet-summary-card {
  border: 2px solid var(--verde-menta);
  border-radius: 8px;
  background: linear-gradient(to right, #ffffff 0%, #f8fcfb 100%);
}

.pet-photo {
  width: 100%;
  max-width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--gris-claro);
}

.pet-photo-placeholder {
  width: 150px;
  height: 150px;
  background: var(--gris-claro);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.pet-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pet-info-item {
  display: flex;
  align-items: center;
  color: #374151;
  font-size: 0.9rem;
}

.pet-info-item strong {
  margin-right: 0.25rem;
}

/* Enhanced historial items */
.historial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.historial-fecha {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--azul-oscuro) !important;
  font-size: 1.1rem;
}

.historial-fecha strong {
  color: var(--azul-oscuro) !important;
  font-weight: 600;
}

.historial-fecha .b-icon {
  color: var(--azul-oscuro) !important;
}

.historial-badges {
  display: flex;
  gap: 0.5rem;
}

.consultation-detail {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.detail-icon {
  color: var(--azul-oscuro);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.consultation-detail strong {
  color: var(--azul-oscuro);
  display: block;
  margin-bottom: 0.25rem;
}

.consultation-detail p {
  color: #374151;
  line-height: 1.5;
}

.future-fields {
  border-top: 1px dashed #d1d5db;
  padding-top: 0.75rem;
}

/* Responsive adjustments for pet card */
@media (max-width: 768px) {
  .pet-photo,
  .pet-photo-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .pet-info-grid {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .consultation-detail {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    padding: 60px 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    color: #0f172a;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: #475569;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

    .hero-image img {
        max-width: 420px;
        width: 100%;
        height: auto;
    }

.contact-btn {
    background-color: #fbbf24 !important;
    color: #0f172a !important;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .contact-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
    }

/* Services Section */
.services-section {
    background-color: #f1f5f9;
    padding: 60px 20px;
}

.section-title-center {
    color: #0f172a;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

.service-icon {
    color: #0f172a;
    margin-bottom: 15px;
}

.service-title {
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* About Section */
.about-section {
    background-color: #f8fafc;
    padding: 80px 20px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.about-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-icon {
    color: #0f172a;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-title {
    color: #0f172a;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.about-text {
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title-center,
    .about-title {
        font-size: 2rem;
    }

    .hero-container,
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        flex: 0 0 200px;
    }
}


/* ============================================
   CITAS USUARIO - CLIENT VIEW
   ============================================ */

.citas-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.citas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.citas-title {
    color: var(--azul-oscuro);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.citas-subtitle {
    color: #6B7280;
    font-size: 1rem;
    margin: 0;
}

.btn-nueva-cita {
    background-color: var(--mostaza) !important;
    border-color: var(--mostaza) !important;
    color: var(--azul-oscuro) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.btn-nueva-cita:hover {
    background-color: #e6ac3a !important;
    border-color: #e6ac3a !important;
}

.citas-section {
    margin-bottom: 3rem;
}

.section-title {
    color: var(--azul-oscuro);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.citas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.cita-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cita-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cita-card.upcoming {
    border-left: 4px solid var(--verde-menta);
}

.cita-card.past {
    opacity: 0.85;
    border-left: 4px solid #9CA3AF;
}

.cita-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.cita-pet-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pet-icon {
    color: var(--azul-oscuro);
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.cita-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
}

.detail-item i {
    width: 20px;
    color: var(--azul-oscuro);
}

.cita-motivo {
    background: #F9FAFB;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #4B5563;
}

.cita-fee {
    color: var(--mostaza);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cita-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.cita-actions button {
    flex: 1;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .citas-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-nueva-cita {
        width: 100%;
    }

    .citas-grid {
        grid-template-columns: 1fr;
    }

    .cita-actions {
        flex-direction: column;
    }
}

/* ============================================
   MIS MASCOTAS - CLIENT VIEW
   ============================================ */

.mascotas-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.mascotas-header {
    margin-bottom: 2rem;
}

.mascotas-title {
    color: var(--azul-oscuro) !important;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mascotas-subtitle {
    color: #6B7280;
    font-size: 1rem;
    margin: 0;
}

.mascotas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.mascota-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.mascota-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mascota-photo-section {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 3px solid var(--verde-menta);
}

.mascota-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mascota-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-oscuro);
    opacity: 0.3;
}

.mascota-info {
    padding: 1.5rem;
}

.mascota-name {
    color: var(--azul-oscuro);
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    font-size: 1.75rem;
}

.mascota-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E5E7EB;
    color: #374151;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-icon {
    color: var(--azul-oscuro);
    min-width: 20px;
}

.mascota-observaciones {
    background: #F9FAFB;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #4B5563;
}

.mascota-actions {
    padding-top: 1rem;
    border-top: 2px solid #E5E7EB;
}

.mascota-actions button {
    width: 100%;
    font-weight: 600;
    padding: 0.75rem;
}

@media (max-width: 768px) {
    .mascotas-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MIS FINANZAS - CLIENT VIEW
   ============================================ */

.finance-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.finance-card:hover {
    transform: translateY(-4px);
}

.finance-card .card-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.finance-card-success {
    border-left: 4px solid #10b981;
}

.finance-card-warning {
    border-left: 4px solid #f59e0b;
}

.finance-card-info {
    border-left: 4px solid #3b82f6;
}

.finance-icon {
    opacity: 0.7;
}

.finance-card-success .finance-icon {
    color: #10b981;
}

.finance-card-warning .finance-icon {
    color: #f59e0b;
}

.finance-card-info .finance-icon {
    color: #3b82f6;
}

.finance-info {
    flex: 1;
}

.finance-label {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.finance-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--azul-oscuro);
}
