/* ============================================
  UI/UX Paleta de Colores
  ============================================ */
/* ===== Tipografía ===== */
:root {
  --primary-color: #800000;
  --primary-light: #a0002f;
  --primary-dark: #6b0020;
  --secondary-color: #600000;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-bg: #f8f9fa;
  --dark-text: #2c3e50;
  --border-color: #e0e0e0;
  --text-light: #666;
  --text-dark: #333;
  --text-muted: ##d8d8d8;
  --color-white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

body {
  font-family: "Oswald", Helvetica, Arial, Lucida, sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.spinner-content {
  text-align: center;
}

.spinner {
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner-content p {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* ========================================
  HEADER - TITULOS PRINCIPALES 
  (Dashboard, Análisis, etc) 
  ======================================== */
.header-global {
  margin-bottom: 40px;
  text-align: center;
  padding: 30px 0;
  border-bottom: 2px solid var(--primary-color);
}

.header-global h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.header-global h1 i {
  color: var(--primary-color);
  font-size: 1.7rem;
}

.header-global p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
  font-weight: 300;
}

/* ── Responsive ─────────────────────────────────────────────── */
/* @media (max-width: 768px) {
  .header-global h1 {
    font-size: 1.5rem;
  }
} */

@media (max-width: 480px) {
  .header-global h1 {
    font-size: 1.5rem;
  }
}


/* ========================================
  KPI CARDS
  ======================================== */
.kpi-section {
  margin-bottom: 2rem;
}

.kpi-section .subtitle {
  font-size: 1.3rem;
  color: #6c757d;
  font-weight: 600;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.kpi-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--primary-color);
  transition: var(--transition);
  position: relative;
}

.kpi-section-custom {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.kpi-header-custom {
  margin-bottom: 15px;
}

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.kpi-icon.kp1 {
  background: rgba(128, 0, 0, 0.1);
  color: var(--primary-color);
}
.kpi-icon.kp2 {
  background: rgba(40, 167, 69, 0.1);
  color: #155724;
}
.kpi-icon.kp3 {
  background: rgba(255, 193, 7, 0.12);
  color: #856404;
}
.kpi-icon.kp4 {
  background: rgba(13, 110, 253, 0.1);
  color: #084298;
}

.kpi-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.kpi-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 7px 0;
  word-break: break-word;
}

.kpi-subtitle {
  /* es parráfo */
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
}

/* ========================================
  RESPONSIVE DESIGN
  ======================================== */
@media (max-width: 1024px) {
  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .kpi-row {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .kpi-card {
    padding: 15px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .kpi-card {
    border-left: 2px solid var(--primary-color);
    padding: 8px;
  }

  .kpi-icon {
    width: 33px;
    height: 33px;
    font-size: 1rem;
  }

  .kpi-value {
    font-size: 1rem;
  }

  .kpi-title {
    font-size: 0.75rem;
  }
}

/* ============================================
  NAVBAR + SIDEBAR DESLIZABLE 
  ============================================ */
/* ===== NAVBAR SUPERIOR ===== */
.navbar-dicop {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  padding: 1.3rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* ===== LOGO & MARCA ===== */
.navbar-brand-dicop {
  transition: all 0.3s ease;
}

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

.navbar-brand-dicop img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ===== NAVBAR ACTIONS (Derecha) ===== */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-user:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.navbar-user-name {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.navbar-user-name .user-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-user-name .user-greeting {
  font-size: 0.9rem;
  font-weight: 600;
}

.navbar-toggler-dicop {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-toggler-dicop:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.navbar-toggler-dicop i {
  font-size: 1.25rem;
}

/* ===== SIDEBAR OFFCANVAS ===== */
.offcanvas-dicop {
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
  border: none;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3);
}

.offcanvas-dicop .offcanvas-header {
  border-bottom: 2px solid var(--primary-color);
  padding: 1.5rem;
}

.offcanvas-dicop .offcanvas-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: white;
}

.offcanvas-dicop .offcanvas-title img {
  height: 40px;
  /* filter: brightness(0) invert(1); */
}

.offcanvas-dicop .offcanvas-title .sidebar-brand {
  display: flex;
  letter-spacing: 0.5px;
  align-items: end;
  gap: 0.75rem;
}

.offcanvas-dicop .offcanvas-title .sidebar-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.offcanvas-dicop .btn-close {
  background-color: rgba(255, 255, 255, 0.6);
  opacity: 0.8;
  border-radius: 4px;
  width: 0.7em;
  height: 0.7em;
}

.offcanvas-dicop .btn-close:hover {
  opacity: 1;
}

/* ===== SIDEBAR BODY ===== */
.offcanvas-dicop .offcanvas-body {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== MENU ITEMS ===== */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-menu-item {
  margin: 0;
  padding: 0;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  position: relative;
  border-radius: 8px;
  margin: 0px 0.1rem;
}

.sidebar-menu-link i {
  font-size: 1.25rem;
  color: var(--primary-light);
  transition: all 0.3s ease;
}

.sidebar-menu-link:hover {
  background: rgba(160, 0, 47, 0.2);
  color: white;
  border-left-color: var(--primary-light);
  /* padding-left: 1.75rem; */
}

/* .sidebar-menu-link:hover i {
  transform: translateX(4px) scale(1.1);
} */

.sidebar-menu-link.active {
  background: rgba(160, 0, 47, 0.3);
  color: white;
  border-left-color: var(--primary-light);
  font-weight: 600;
}

.sidebar-menu-link.active i {
  color: var(--primary-light);
}

/* ===== DIVIDER ===== */
.sidebar-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(160, 0, 47, 0.3),
    transparent
  );
  margin: 1rem 0;
}

/* ===== SIDEBAR FOOTER (Usuario + Logout) ===== */
.sidebar-footer {
  margin-top: auto;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(160, 0, 47, 0.3);
}

.sidebar-user-card {
  background: rgba(160, 0, 47, 0.15);
  border: 1px solid rgba(160, 0, 47, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 0 1rem 1rem;
}

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

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  border: 2px solid var(--primary-light);
}

.sidebar-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sidebar-user-details .user-name {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.sidebar-user-details .user-role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.2),
    rgba(220, 53, 69, 0.1)
  );
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b7a;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
}

.sidebar-logout-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.3),
    rgba(220, 53, 69, 0.2)
  );
  border-color: rgba(220, 53, 69, 0.5);
  color: white;
  /* transform: translateY(-2px); */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .offcanvas-dicop {
    max-width: 325px;
  }

  .offcanvas-header {
    align-items: start;
  }
}

@media (max-width: 480px) {
  .navbar-dicop {
    padding: 0.6rem 0;
  }

  .navbar-actions {
    gap: 1rem;
  }

  .navbar-toggler-dicop {
    padding: 0.4rem 0.6rem;
  }

  .navbar-toggler-dicop i {
    font-size: 1.1rem;
  }

  .navbar-user {
    padding: 0.4rem 0.75rem;
  }

  .navbar-user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .offcanvas-dicop {
    max-width: 280px;
  }

  .sidebar-menu-link {
    padding: 0.75rem 1.25rem;
  }

  .sidebar-user-card {
    padding: 0.875rem 1rem;
  }
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
.offcanvas-dicop .offcanvas-body {
  overflow-y: auto;
  max-height: calc(100vh - 115px);
}

/* ===== TEMA OSCURO ===== */
/* @media (prefers-color-scheme: dark) {
  .navbar-dicop {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4a0000 100%) !important;
  }

  .offcanvas-dicop {
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
  }
} */

/* ============================================
  DataTables - Custom
  ============================================ */
table.dataTable thead > tr > th.sorting_asc:before {
  opacity: 1 !important;
}

table.dataTable thead > tr > th.sorting_desc:after {
  opacity: 1 !important;
}

/* ========================================
  DataTables - Dashboard - Reportes 
  (Dashboard, Análisis, etc) 
  ======================================== */
.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  overflow-x: auto;
}

.table-container .section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-container .section-title i {
  color: var(--primary-color);
}

#facturas-table {
  width: 100% !important;
  white-space: nowrap;
}

#facturas-table thead th {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--color-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  border: none;
}

#facturas-table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

/*
#facturas-table tbody tr:hover {
  background-color: rgba(128, 0, 0, 0.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra que simula el levantamiento 
  transform: translateY(-1px); /* Eleva ligeramente la fila
  z-index: 1;
} */

#facturas-table tbody td {
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
  font-size: 0.88rem;
  text-align: center;
}

#facturas-table tbody td:nth-child(2) {
  text-align: left;
}

/* ===== Badges de Estado ===== */
.badge-estado {
  padding: 0.5rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-emitido {
  background-color: rgba(40, 167, 69, 0.15);
  color: #155724;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.badge-requiere-inspeccion {
  background-color: rgba(255, 193, 7, 0.15);
  color: #856404;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-subsanada {
  background-color: rgba(220, 53, 69, 0.15);
  color: #721c24;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.badge-sin-enviar {
  background-color: rgba(108, 117, 125, 0.12);
  color: #495057;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.badge-pendiente {
  background-color: rgba(13, 110, 253, 0.10);
  color: #084298;
  border: 1px solid rgba(13, 110, 253, 0.3);
}

/* ── Badge correo ───────────────────────────────────────────── */
.badge-correo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-correo.ok {
  background: rgba(40, 167, 69, 0.12);
  color: #155724;
  border: 1px solid rgba(40, 167, 69, 0.3);
}
.badge-correo.err {
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--border-color);
  display: block;
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

/* ===== Botones de Acciones ===== */
.btn-action {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-action.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
}

.btn-action.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.25);
}

.btn-action.btn-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
  color: white;
}

.btn-action.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.btn-action.btn-warning {
  background: linear-gradient(135deg, #e6a817 0%, #ffc107 100%);
  color: #212529;
}

.btn-action.btn-warning:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-action.btn-enviado {
  background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
  color: white;
}

.btn-action.btn-subsanada {
  color: #721c24;
}

/* ===== Controles DataTables ===== */
.dataTables_wrapper {
  display: flex;
  flex-direction: column;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dataTables_wrapper .dataTables_length label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.dataTables_wrapper .dataTables_length select {
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.dataTables_wrapper .dataTables_filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dataTables_wrapper .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.dataTables_wrapper .dataTables_filter input {
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
  min-width: 250px;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
  outline: none;
}

.dataTables_wrapper .paginate_button.current {
  background: rgba(128, 0, 0, 0.1) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

.dataTables_wrapper .paginate_button:hover:not(.disabled) {
  background: rgba(128, 0, 0, 0.1) !important;
  color: var(--primary-color) !important;
}

.bottom{
  margin-top: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  #facturas-table tbody td:nth-child(2) {
    text-align: center;
  }

  .top{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #facturas-table {
    white-space: normal;
  }

  #facturas-table thead {
    display: none;
  }

  #facturas-table tbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  #facturas-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
  }

  #facturas-table tbody td {
    display: block;
    padding: 0.5rem 0.2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
  }

  #facturas-table tbody td:last-child {
    border-bottom: none;
  }

  #facturas-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
  }
}

@media (max-width: 480px) {
  #facturas-table tbody td:nth-child(2) {
    text-align: center;
  }
  
  #facturas-table tbody {
    display: table-row-group;
  }
}

/* ===== Tema Oscuro (opcional) ===== */
/* @media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  .kpi-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-color: #444;
  }

  .table-container {
    background: #2a2a2a;
  }

  #facturas-table {
    width: auto !important;
  }

  #facturas-table tbody tr {
    border-color: #444;
  }

  #facturas-table tbody tr:hover {
    background-color: rgba(128, 0, 0, 0.15);
  }

  .dashboard-header {
    border-color: var(--primary-light);
  }
} */


/* ============================================
   FOOTER
   ============================================ */
/* ===== FOOTER GENERAL ===== */
footer.footer-dicop {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  border-top: 3px solid var(--primary-color);
  letter-spacing: 0.5px;
}

footer.footer-dicop a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer.footer-socials a:hover {
  color: var(--primary-light);
}

.footer-dicop p {
  letter-spacing: 0.3px;
  font-size: 0.9rem;
}

/* ===== SECCIÓN EMPRESA (BRANDING) ===== */
.footer-logo {
  -webkit-text-fill-color: transparent;
}

/* ===== REDES SOCIALES ===== */
.footer-socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(160, 0, 47, 0.2);
  border: 1px solid rgba(160, 0, 47, 0.4);
  border-radius: 50%;
  font-size: 1.1rem;
}

.social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
  color: #fff;
}

/* ===== CONTACTO ===== */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact h4 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-light);
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(160, 0, 47, 0.3);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.25rem;
  color: var(--primary-light);
  margin-top: 0.25rem;
  min-width: 25px;
}

.contact-item span {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.contact-item a:hover {
  color: var(--primary-light);
}

/* ===== SEPARADOR ===== */
.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(160, 0, 47, 0.5),
    transparent
  );
  margin: 2rem 0;
}

/* ===== FOOTER BOTTOM (COPYRIGHT) ===== */
.footer-bottom {
  border-top: 1px solid rgba(160, 0, 47, 0.3);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-version {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(160, 0, 47, 0.15);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(160, 0, 47, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  footer.footer-dicop {
    padding: 2rem 0 1rem;
  }

  .footer-contact {
    width: 34.3%;
  }

  .footer-contact address {
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-contact {
    width: 100%;
  }

  .footer-socials {
    margin-bottom: 1.8rem;
  }

  .footer-divider {
    margin: 1.5rem 0;
  }

  .contact-item {
    gap: 0.75rem;
  }

  .contact-item i {
    font-size: 1.1rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ===== TEMA OSCURO (OPCIONAL) ===== */
/* @media (prefers-color-scheme: dark) {
  footer.footer-dicop {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  }

  .footer-section h4 {
    color: var(--primary-light);
  }

  .footer-section p {
    color: rgba(255, 255, 255, 0.75);
  }
} */
