/*!***********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/components/Header.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************/
/* Header.css - Styling para el Header refactorizado */

.modern-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1rem 1.5rem;
    width: 100%;
}

/* Columna Centro: Faena + Navegación */
.modern-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1;
    max-width: 900px;
}

/* Wrapper del selector en el header */
.header-faena-wrapper {
    width: 100%;
    max-width: 300px;
    /* Ancho máximo controlado */
}

/* Selector Compacto Refactorizado */
.faena-selector-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    width: 100%;
}

.select-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.select-icon {
    position: absolute;
    left: 10px;
    z-index: 10;
    font-size: 1rem;
    pointer-events: none;
}

.header-select {
    width: 100%;
    -moz-appearance: none;
         appearance: none;
    -webkit-appearance: none;
    background: rgba(15, 23, 42, 0.6);
    /* Fondo oscuro semitransparente */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.5rem 2.5rem 0.5rem 2.5rem;
    /* Espacio para icono y flecha */
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-select:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.header-select option {
    background-color: #1e293b;
    /* SLATE-800 para el dropdown */
    color: white;
    padding: 10px;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Indicadores de estado minimalistas */
.loading-dot {
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.error-dot {
    width: 18px;
    height: 18px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: help;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Estilos de navegación independientes del selector */
.header-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #a0aec0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Responsive: Mobile */
@media (max-width: 1024px) {
    .modern-header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .modern-header-center {
        order: 1;
        width: 100%;
    }

    .modern-header-brand {
        order: 0;
    }

    .modern-header-user {
        order: 2;
        width: 100%;
        justify-content: space-between;
    }

    .header-faena-wrapper {
        max-width: 100%;
    }

    .header-nav {
        width: 100%;
        gap: 0.25rem;
    }

    .nav-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Extra small screens */
@media (max-width: 640px) {
    .nav-btn {
        flex: 1 1;
        min-width: 80px;
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem;
    }
}

.modern-user-pendientes {
    color: #10b981;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.modern-user-pendientes:hover {
    color: #34d399;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[7].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[7].use[3]!./src/components/trabajos-faenas/SanidadHistoricos.module.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************/
/* SanidadHistoricos.module.css */
.SanidadHistoricos_paginationControls__tcx_9 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.SanidadHistoricos_paginationInfo__e3r6Z {
  flex: 1 1;
  text-align: center;
}

@media (max-width: 600px) {
  .SanidadHistoricos_paginationControls__tcx_9 {
    flex-direction: column;
    align-items: stretch;
  }

  .SanidadHistoricos_paginationInfo__e3r6Z {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .SanidadHistoricos_paginationControls__tcx_9 button {
    width: 100%;
  }
}

.SanidadHistoricos_sanidadSection__TIzXi {
  scroll-margin-top: 4rem;
}

.SanidadHistoricos_hideScrollbar__9hJjt {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.SanidadHistoricos_hideScrollbar__9hJjt::-webkit-scrollbar {
  display: none;
}

/* ---- Modal (al apretar ubicación) ---- */

/* Overlay centrado */
.SanidadHistoricos_bsOverlay__nThQf {
  overscroll-behavior: contain;
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  padding: 0 16px;
}

/* Caja del modal */
.SanidadHistoricos_bsSheet__5tmMh {
  background: #fff;
  width: min(640px, calc(100% - 32px));
  max-height: 80vh;
  overflow: auto;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 420px) {
  .SanidadHistoricos_bsSheet__5tmMh {
    width: 94vw;
    max-height: 86vh;
  }
}

@keyframes SanidadHistoricos_modalIn__BdsMC {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* (el resto se mantiene igual) */
.SanidadHistoricos_bsHeader__LyB_x {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.SanidadHistoricos_bsUbic__7qm5w {
  font-size: 16px;
  font-weight: 800;
  color: #1a1f2c;
}

.SanidadHistoricos_bsLabel___9j7D {
  font-size: 14px;
  opacity: 0.8;
  color: #1a1f2c;
}

.SanidadHistoricos_bsSectionTitle__UZJy2 {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.7;
  color: #1a1f2c;
}

.SanidadHistoricos_bsBody__cEst9 {
  margin-top: 6px;
  font-size: 15px;
  color: #1a1f2c;
  white-space: pre-wrap;
  word-break: break-word;
}

.SanidadHistoricos_bsCloseBtn__UxaoT {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  color: #1a1f2c;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/components/trabajos-faenas/BuscarInfo.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************/
/* Overlay */
.moda-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.5rem;
  z-index: 1000;
}

/* Contenedor del modal */
.moda-content {
  background: #1e293b;
  border-radius: 8px;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.moda-header {
  background: #334155;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 600;
}

.moda-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* Body */
.moda-body {
  padding: 1rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.moda-body ul {
  margin: 0;
  padding-left: 1.2rem;
}

.moda-body code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0 0.3rem;
  border-radius: 3px;
}

/* Footer */
.moda-footer {
  padding: 0.75rem 1rem;
  background: #334155;
  text-align: right;
  border-top: 1px solid #2a3b4c;
}

.moda-ok {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Botón de ayuda junto al título */
.header-with-help {
  position: relative;
  margin-bottom: 1rem;
}

.help-button {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: gold;
  cursor: pointer;
  line-height: 1;
}

/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/components/tablets/tablets.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
/* Tablets Module Styles */

.tablets-page {
  padding: 1.5rem;
}

.tablets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tablets-header h2 {
  margin: 0;
  color: #fff;
}

.tablets-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a0aec0;
  font-size: 0.875rem;
  cursor: pointer;
}

.switch-label input {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.refresh-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.refresh-btn:hover {
  opacity: 0.9;
}

.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Faena Tabs */
.faena-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faena-tab {
  background: rgba(255, 255, 255, 0.05);
  color: #a0aec0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.faena-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.faena-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

/* Datalogger Grid */
.datalogger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

/* Datalogger Card */
.datalogger-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.datalogger-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Time-based color coding */
.datalogger-card.time-warning {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.datalogger-card.time-danger {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.datalogger-card.time-warning .datalogger-info small.text-muted {
  color: #f59e0b;
}

.datalogger-card.time-danger .datalogger-info small.text-muted {
  color: #ef4444;
}

.datalogger-image-container {
  height: 200px;
  background: #1a1a2e;
  cursor: pointer;
  overflow: hidden;
}

.datalogger-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.datalogger-image-container:hover .datalogger-image {
  transform: scale(1.05);
}

.datalogger-no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #667;
}

.datalogger-no-image .icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.datalogger-body {
  padding: 1rem;
}

.datalogger-title {
  margin: 0 0 0.25rem 0;
  color: #667eea;
  font-size: 1.1rem;
}

.datalogger-id {
  display: block;
  color: #667;
  margin-bottom: 0.75rem;
}

.datalogger-tunel-btn {
  width: 100%;
  background: rgba(99, 179, 237, 0.1);
  color: #63b3ed;
  border: 1px solid rgba(99, 179, 237, 0.3);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.datalogger-tunel-btn:hover {
  background: rgba(99, 179, 237, 0.2);
  border-color: #63b3ed;
}

.datalogger-info {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.datalogger-info small {
  color: #a0aec0;
}

/* Loading & Error States */
.loading-state,
.error-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #a0aec0;
}

.loading-state .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-state {
  color: #fc8181;
}

.error-state span,
.empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Modal XL for iframe */
.modal-xl {
  max-width: 95vw;
  width: 1200px;
}

/* Modal LG para imágenes de regadores — ocupa ~60% de la pantalla */
.modal-lg {
  width: 65vw !important;
  max-width: 1200px !important;
  min-width: 300px !important;
  max-height: 85vh !important;
}

/* Modal Close Button - X grande y visible */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(239, 68, 68, 0.9);
  border: 2px solid #f87171;
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 2px;
  transition: all 0.2s;
  z-index: 10001;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.modal-close:hover {
  background: #dc2626;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .tablets-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tablets-controls {
    width: 100%;
    justify-content: space-between;
  }

  .datalogger-grid {
    grid-template-columns: 1fr;
  }
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/components/SharedNavbar.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************/
/* SharedNavbar Styles - Fully Responsive */

.shared-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background-color: #1e293b;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1 1;
    min-width: 0;
}

.nav-tab-btn {
    padding: 0.6rem 1rem;
    border-radius: 0.375rem;
    border: none;
    background-color: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
}

.nav-tab-btn:hover {
    background-color: rgba(59, 130, 246, 0.2);
    color: white;
}

.nav-tab-btn.active {
    background-color: #3b82f6;
    color: white;
    font-weight: bold;
}

.nav-tab-icon {
    font-size: 1.2rem;
}

.nav-tab-label {
    font-size: 0.85rem;
}

.btn-volver {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-volver:hover {
    background-color: #dc2626;
}

/* Tablet - pantallas medianas */
@media (max-width: 900px) {
    .nav-tab-btn {
        padding: 0.5rem 0.75rem;
        min-width: 60px;
        font-size: 0.85rem;
    }

    .nav-tab-label {
        font-size: 0.75rem;
    }

    .btn-volver {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Mobile - pantallas pequeñas */
@media (max-width: 600px) {
    .shared-navbar {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .nav-tabs {
        width: 100%;
        justify-content: center;
        order: 2;
    }

    .nav-tab-btn {
        flex: 1 1 auto;
        min-width: 60px;
        max-width: 80px;
        padding: 0.4rem 0.3rem;
    }

    .nav-tab-icon {
        font-size: 1.1rem;
    }

    .nav-tab-label {
        font-size: 0.65rem;
    }

    .btn-volver {
        order: 1;
        width: 100%;
        justify-content: center;
        padding: 0.6rem;
        margin-bottom: 0.25rem;
    }
}

/* Extra small - teléfonos muy pequeños */
@media (max-width: 380px) {
    .nav-tab-btn {
        min-width: 50px;
        padding: 0.35rem 0.2rem;
    }

    .nav-tab-icon {
        font-size: 1rem;
    }

    .nav-tab-label {
        font-size: 0.6rem;
    }
}
/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/components/tareas/tareas.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
.tareas-page {
  padding: 20px;
}

.tareas-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tareas-header h2 {
  color: #fff;
  margin: 0;
}

.tareas-controls button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.tareas-controls button:hover {
  opacity: 0.9;
}

.tareas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.tarea-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tarea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tarea-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.tarea-card h3 {
  margin: 0;
  color: #63b3ed;
  font-size: 1.1rem;
  line-height: 1.3;
}

.tarea-status {
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.tarea-status.pendiente {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.tarea-status.finalizada {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.tarea-date {
  color: #a0aec0;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.tarea-desc-preview {
  color: #cbd5e1;
  font-size: 0.9rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tarea-card footer button {
  width: 100%;
  background: rgba(99, 179, 237, 0.1);
  color: #63b3ed;
  border: 1px solid rgba(99, 179, 237, 0.3);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.tarea-card footer button:hover {
  background: rgba(99, 179, 237, 0.2);
  border-color: #63b3ed;
}

/* Modal Especial Tareas */
.tarea-modal-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tarea-richtext {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  color: #e2e8f0;
  white-space: pre-wrap;
  font-size: 0.95rem;
}

.tarea-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tarea-form-group label {
  color: #a0aec0;
  font-size: 0.9rem;
}

.tarea-textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem;
  color: white;
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.tarea-textarea:focus {
  outline: none;
  border-color: #63b3ed;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.tarea-save-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 1rem;
}

.tarea-save-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.tarea-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.loading-state, .error-state, .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #a0aec0;
}

/* ===== TASKIT UPGRADE STYLES ===== */

/* Badge colores dinámicos */
.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}
.badge-primary {
  background: rgba(99, 179, 237, 0.2);
  color: #63b3ed;
}
.badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.badge-secondary {
  background: rgba(160, 174, 192, 0.2);
  color: #a0aec0;
}
.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.tarea-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: bold;
  white-space: nowrap;
}

/* Card meta info */
.tarea-card-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.tarea-card-footer-info {
  color: #a0aec0;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Modal 2 columnas */
.tarea-modal-2col {
  display: flex;
  gap: 1.5rem;
}

.tarea-modal-left {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.tarea-modal-right {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tarea-modal-panel {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tarea-modal-panel-label {
  color: #718096;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.tarea-modal-panel-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.tarea-modal-panel-row span.label {
  color: #718096;
  min-width: 60px;
}

/* Botones cambiar estado/prioridad */
.tarea-action-btn {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.tarea-action-btn:hover {
  opacity: 0.85;
}

.tarea-action-btn.btn-estado {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.tarea-action-btn.btn-prioridad {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

/* Dropdown inline */
.tarea-dropdown-wrapper {
  position: relative;
}

.tarea-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1a202c;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  z-index: 100;
  overflow: hidden;
}

.tarea-dropdown-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  transition: background 0.15s;
}

.tarea-dropdown-item:hover {
  background: rgba(255,255,255,0.08);
}

/* Equipo asignado */
.tarea-team-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tarea-team-member {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.85rem;
}

.tarea-team-member .member-name {
  color: #e2e8f0;
  font-weight: 600;
}

.tarea-team-member .member-email {
  color: #718096;
  font-size: 0.78rem;
}

/* Adjuntos */
.tarea-adjuntos-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #a0aec0;
}

/* Lista simple para móvil */
.tarea-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tarea-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s;
}

.tarea-list-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tarea-list-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.tarea-list-item:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-bottom: none;
}

.tarea-list-main {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tarea-list-title {
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tarea-list-responsable {
  color: #f5d0a9;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tarea-list-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tarea-meta-label {
  color: #718096;
  font-size: 0.75rem;
  font-weight: 500;
}

.tarea-list-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.tarea-list-date {
  color: #718096;
  font-size: 0.75rem;
}

.tarea-list-chevron {
  color: #4a5568;
  font-size: 1.2rem;
}

.tarea-list-item:hover .tarea-list-chevron {
  color: #63b3ed;
}

.tarea-load-more-btn {
  background: rgba(99, 179, 237, 0.1);
  color: #63b3ed;
  border: 1px solid rgba(99, 179, 237, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.tarea-load-more-btn:hover {
  background: rgba(99, 179, 237, 0.2);
  border-color: #63b3ed;
}

.tarea-mis-tareas-btn {
  background: rgba(160, 174, 192, 0.15);
  color: #a0aec0;
  border: 1px solid rgba(160, 174, 192, 0.25);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  margin-right: 0.5rem;
}

.tarea-mis-tareas-btn:hover {
  background: rgba(160, 174, 192, 0.25);
  border-color: rgba(160, 174, 192, 0.4);
}

.tarea-mis-tareas-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: transparent;
}

.tarea-mis-tareas-btn.active:hover {
  opacity: 0.9;
}

.tarea-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

.tarea-pagination-btn {
  background: rgba(99, 179, 237, 0.1);
  color: #63b3ed;
  border: 1px solid rgba(99, 179, 237, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.tarea-pagination-btn:hover:not(:disabled) {
  background: rgba(99, 179, 237, 0.2);
}

.tarea-pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tarea-pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tarea-pagination-page {
  background: transparent;
  color: #a0aec0;
  border: 1px solid transparent;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.tarea-pagination-page:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.tarea-pagination-page.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

.tarea-pagination-ellipsis {
  color: #4a5568;
  padding: 0 0.25rem;
}

/* Responsive */
@media (max-width: 640px) {
  .tarea-modal-2col {
    flex-direction: column;
  }
  .tarea-modal-right {
    flex: unset;
  }
  .tarea-list-item {
    padding: 0.7rem 0.75rem;
  }
  .tarea-list-title {
    font-size: 0.9rem;
  }
}

/* Tareas modal scroll fix */
.modal-content .modal-body {
  overflow-y: auto;
  max-height: calc(90vh - 60px);
}

/*!**************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/components/Dashboard.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************/
/* Dashboard Styles */

.persistent-faena-selector {
    /* Mismo ancho y padding que .trabajos-faenas para respetar márgenes */
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Estilos del tema oscuro para FaenaSelector cuando está en Dashboard */
.persistent-faena-selector .faena-selector {
    background: rgba(51, 65, 85, 0.8);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.persistent-faena-selector .faena-selector .form-label {
    display: block;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.persistent-faena-selector .select-container {
    position: relative;
    max-width: 400px;
}

.persistent-faena-selector .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background-color: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.persistent-faena-selector .form-select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.persistent-faena-selector .form-select:hover:not(:focus) {
    border-color: #94a3b8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.persistent-faena-selector .form-select:disabled {
    background-color: rgba(51, 65, 85, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

.persistent-faena-selector .form-select option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 0.5rem;
}

.persistent-faena-selector .loading-spinner,
.persistent-faena-selector .error-message,
.persistent-faena-selector .warning-text {
    color: #f1f5f9;
}

/* Responsive */
@media (max-width: 768px) {
    .persistent-faena-selector .faena-selector {
        padding: 1rem;
    }
}
/*!**********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/app/modern-forms.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************/
/* Modern Form Styles - Estilos Modernos para Formularios */

/* Variables CSS para consistencia de colores y efectos - TEMA OSCURO */
:root {
  /* Paleta de colores principal - OSCURA */
  --primary-color: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-light: #1e3a8a;
  --secondary-color: #06b6d4;
  --secondary-hover: #0891b2;

  /* Gradientes modernos - OSCUROS */
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --gradient-success: linear-gradient(135deg, #065f46 0%, #047857 100%);
  --gradient-warning: linear-gradient(135deg, #92400e 0%, #b45309 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);

  /* Colores de estado - OSCUROS */
  --success-color: #10b981;
  --success-hover: #059669;
  --warning-color: #f59e0b;
  --warning-hover: #d97706;
  --error-color: #ef4444;
  --error-hover: #dc2626;

  /* Colores de superficie - OSCUROS */
  --surface-bg: #1e293b;
  --surface-elevated: #334155;
  --surface-hover: #475569;
  --border-color: #475569;
  --border-focus: #0ea5e9;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Sombras modernas */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Radianes modernos */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transiciones suaves */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* =========================== CONTENEDORES PRINCIPALES =========================== */

/* Contenedor de login moderno - TEMA OSCURO */
.modern-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.modern-login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.05"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>');
  pointer-events: none;
}

.modern-login-card {
  background: rgba(51, 65, 85, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-slow);
}

.modern-login-card:hover {
  transform: translateY(-5px);
}

.modern-login-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Estilos para el logo en el login */
.login-logo-container {
  text-align: center;
  margin-bottom: 2rem;
  animation: logoFadeIn 1s ease-out;
}

.login-logo {
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: all var(--transition-normal);
}

.login-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Contenedor de formulario moderno - TEMA OSCURO */
.modern-form-container {
  background: rgba(51, 65, 85, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: visible; /* Cambio: permitir overflow para dropdowns */
  transition: box-shadow var(--transition-normal);
  border: 1px solid var(--border-color);
  /* Asegurar que no cree stacking context para dropdowns */
  position: relative;
  z-index: auto;
}

.modern-form-container:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.modern-form-card {
  padding: 2.5rem;
  background: var(--surface-bg);
  /* Asegurar que no interfiera con dropdowns */
  position: relative;
  z-index: auto;
}

.modern-form-title {
  margin: 0 0 2rem 0;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  position: relative;
}

.modern-form-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* =========================== GRUPOS DE FORMULARIO =========================== */

.modern-form-group {
  margin-bottom: 1.5rem;
  position: relative;
  /* Asegurar que dropdowns internos funcionen correctamente */
  z-index: auto;
  overflow: visible;
}

/* Específico para campos que contienen SelectWithFilter */
.modern-form-group:has(.select-with-filter.dropdown-open) {
  z-index: 99990;
  position: relative;
  overflow: visible;
}

/* Fallback para navegadores que no soportan :has() */
.modern-form-group.form-group-dropdown-active {
  z-index: 99990;
  position: relative;
  overflow: visible;
}

.modern-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.modern-form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.modern-form-label::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* =========================== INPUTS MODERNOS =========================== */

.modern-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--surface-bg);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.modern-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), var(--shadow-md);
  transform: translateY(-1px);
}

.modern-input:hover:not(:focus) {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.modern-input:disabled {
  background-color: var(--surface-elevated);
  cursor: not-allowed;
  opacity: 0.6;
}

.modern-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Input con icono */
.modern-input-icon-container {
  position: relative;
}

.modern-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.125rem;
  z-index: 2;
}

.modern-input-with-icon {
  padding-left: 3rem;
}

/* =========================== SELECTS MODERNOS =========================== */

.modern-select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--surface-bg);
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%2364748b" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.modern-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), var(--shadow-md);
  transform: translateY(-1px);
}

.modern-select:hover:not(:focus) {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.modern-select:disabled {
  background-color: var(--surface-elevated);
  cursor: not-allowed;
  opacity: 0.6;
}

.modern-select option {
  padding: 0.5rem;
  background: var(--surface-bg);
  color: var(--text-primary);
}

/* =========================== TEXTAREA MODERNO =========================== */

.modern-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--surface-bg);
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.modern-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), var(--shadow-md);
  transform: translateY(-1px);
}

.modern-textarea:hover:not(:focus) {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.modern-textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* =========================== INPUT FILE MODERNO =========================== */

.modern-file-input {
  position: relative;
  display: inline-block;
  cursor: pointer;
  width: 100%;
}

.modern-file-input input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.modern-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.modern-file-label:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.modern-file-label::before {
  content: "📁";
  font-size: 1.25rem;
}

/* =========================== BOTONES MODERNOS =========================== */

.modern-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 48px;
}

.modern-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-slow);
}

.modern-button:hover::before {
  left: 100%;
}

.modern-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.modern-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.modern-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Variantes de botones */
.modern-button-primary {
  background: var(--gradient-primary);
  color: white;
}

.modern-button-secondary {
  background: var(--gradient-secondary);
  color: white;
}

.modern-button-success {
  background: var(--gradient-success);
  color: white;
}

.modern-button-warning {
  background: var(--gradient-warning);
  color: var(--text-primary);
}

.modern-button-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
}

.modern-button-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.modern-button-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Tamaños de botones */
.modern-button-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 36px;
}

.modern-button-xs {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  min-height: 28px;
  border-radius: var(--radius-sm);
}

.modern-button-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  min-height: 56px;
}

.modern-button-full {
  width: 100%;
}

/* =========================== DIVISORES MODERNOS =========================== */

.modern-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-color),
    transparent
  );
  margin: 2rem 0;
  position: relative;
}

.modern-divider::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* =========================== ESTADOS Y MENSAJES =========================== */

.modern-error-message {
  color: var(--error-color);
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}

.modern-error-message::before {
  content: "⚠️";
  font-size: 1.25rem;
}

.modern-success-message {
  color: var(--success-color);
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}

.modern-success-message::before {
  content: "✅";
  font-size: 1.25rem;
}

.modern-warning-message {
  color: var(--warning-color);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}

.modern-warning-message::before {
  content: "⚠️";
  font-size: 1.25rem;
}

/* =========================== PREVIEW DE IMÁGENES =========================== */

.modern-image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.modern-preview-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.modern-preview-image:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

/* =========================== LOADING STATES =========================== */

.modern-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn var(--transition-normal);
}

.modern-loading-content {
  background: rgba(51, 65, 85, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modern-loading-text {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.125rem;
}

/* =========================== RESPONSIVE DESIGN =========================== */

@media (max-width: 768px) {
  .modern-login-container {
    padding: 1rem;
  }

  .modern-login-card {
    padding: 2rem;
    max-width: 100%;
  }

  .modern-login-title {
    font-size: 1.75rem;
  }

  /* Logo responsive */
  .login-logo {
    max-width: 120px;
  }

  .modern-form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modern-form-card {
    padding: 1.5rem;
  }

  .modern-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .modern-image-preview {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .modern-preview-image {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .modern-login-card {
    padding: 1.5rem;
  }

  .modern-form-card {
    padding: 1rem;
  }

  /* Logo en móviles pequeños */
  .login-logo {
    max-width: 100px;
  }

  .login-logo-container {
    margin-bottom: 1.5rem;
  }

  .modern-button-full {
    font-size: 0.875rem;
    padding: 1rem;
  }
}

/* =========================== ANIMACIONES ADICIONALES =========================== */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.modern-form-group {
  animation: slideInUp var(--transition-normal);
  animation-fill-mode: both;
}

.modern-form-group:nth-child(1) {
  animation-delay: 0.1s;
}
.modern-form-group:nth-child(2) {
  animation-delay: 0.2s;
}
.modern-form-group:nth-child(3) {
  animation-delay: 0.3s;
}
.modern-form-group:nth-child(4) {
  animation-delay: 0.4s;
}
.modern-form-group:nth-child(5) {
  animation-delay: 0.5s;
}

.modern-button {
  animation: slideInRight var(--transition-normal);
  animation-delay: 0.6s;
  animation-fill-mode: both;
}

/* =========================== UTILIDADES =========================== */

.modern-text-center {
  text-align: center;
}
.modern-text-left {
  text-align: left;
}
.modern-text-right {
  text-align: right;
}

.modern-mt-1 {
  margin-top: 0.25rem;
}
.modern-mt-2 {
  margin-top: 0.5rem;
}
.modern-mt-3 {
  margin-top: 0.75rem;
}
.modern-mt-4 {
  margin-top: 1rem;
}

.modern-mb-1 {
  margin-bottom: 0.25rem;
}
.modern-mb-2 {
  margin-bottom: 0.5rem;
}
.modern-mb-3 {
  margin-bottom: 0.75rem;
}
.modern-mb-4 {
  margin-bottom: 1rem;
}

.modern-flex {
  display: flex;
}
.modern-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modern-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modern-w-full {
  width: 100%;
}
.modern-h-full {
  height: 100%;
}

.modern-hidden {
  display: none;
}
.modern-visible {
  display: block;
}

/* =========================== MÓDULO TRABAJOS-FAENAS OSCURO =========================== */

/* Override completo para trabajos-faenas */
.trabajos-faenas {
  background: transparent !important;
  color: var(--text-primary) !important;
}

.trabajos-faenas .trabajos-header h2 {
  color: var(--text-primary) !important;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Selector de Faena - Override completo */
.trabajos-faenas .faena-selector {
  background: rgba(51, 65, 85, 0.8) !important;
  -webkit-backdrop-filter: blur(20px) !important;
          backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.trabajos-faenas .faena-selector .form-label {
  color: var(--text-primary) !important;
}

.trabajos-faenas .form-select {
  background-color: var(--surface-bg) !important;
  color: var(--text-primary) !important;
  border: 2px solid var(--border-color) !important;
}

/* Tabs - Override completo */
.trabajos-faenas .tabs-container {
  background: rgba(30, 41, 59, 0.6) !important;
  border-bottom: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.trabajos-faenas .tab-button {
  color: var(--text-muted) !important;
  background: none !important;
}

.trabajos-faenas .tab-button:hover {
  color: var(--text-primary) !important;
  background-color: var(--surface-hover) !important;
}

.trabajos-faenas .tab-button.active {
  color: var(--primary-color) !important;
  background: var(--primary-light) !important;
  border-bottom-color: var(--primary-color) !important;
}

/* Tareas Espera - Override completo */
.trabajos-faenas .tareas-espera {
  background: rgba(51, 65, 85, 0.8) !important;
  -webkit-backdrop-filter: blur(20px) !important;
          backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.trabajos-faenas .warning-message {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%) !important;
  color: #fef3cd !important;
  border: 1px solid #d97706 !important;
}

.trabajos-faenas .action-button {
  box-shadow: var(--shadow-md) !important;
  transition: all var(--transition-normal) !important;
}

.trabajos-faenas .action-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}

.trabajos-faenas .primary-button {
  background: var(--gradient-primary) !important;
  color: white !important;
}

.trabajos-faenas .info-button {
  background: var(--gradient-secondary) !important;
  color: white !important;
}

/* Formulario de Tarea ya modernizado */

/* Revisar Tareas - Override completo */
.trabajos-faenas .revisar-tareas {
  background: transparent !important;
}

.trabajos-faenas .tareas-section {
  background: rgba(51, 65, 85, 0.8) !important;
  -webkit-backdrop-filter: blur(20px) !important;
          backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.trabajos-faenas .section-header {
  background: rgba(30, 41, 59, 0.8) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.trabajos-faenas .section-header h3 {
  color: var(--text-primary) !important;
}

.trabajos-faenas .refresh-button {
  background: var(--gradient-secondary) !important;
  color: white !important;
}

.trabajos-faenas .tareas-grid {
  background: var(--surface-bg) !important;
}

.trabajos-faenas .tarea-card {
  background: var(--surface-elevated) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

.trabajos-faenas .tarea-card:hover {
  background: var(--surface-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}

.trabajos-faenas .tarea-header h4 {
  color: var(--text-primary) !important;
}

.trabajos-faenas .tarea-details p {
  color: var(--text-secondary) !important;
}

.trabajos-faenas .estado-programada {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%) !important;
  color: #fef3cd !important;
}

.trabajos-faenas .estado-en-progreso {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
  color: #dbeafe !important;
}

.trabajos-faenas .estado-en-espera {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%) !important;
  color: #e0f2fe !important;
}

.trabajos-faenas .finish-button {
  background: var(--gradient-success) !important;
  color: white !important;
}

.trabajos-faenas .delete-button {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
}

/* Estados especiales */
.trabajos-faenas .no-data {
  background: var(--surface-bg) !important;
  color: var(--text-muted) !important;
}

.trabajos-faenas .loading {
  background: var(--surface-bg) !important;
  color: var(--text-muted) !important;
}

.trabajos-faenas .error {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%) !important;
  color: #fecaca !important;
  border: 1px solid #dc2626 !important;
}

/* Loading overlay */
.trabajos-faenas .loading-overlay {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

.trabajos-faenas .loading-spinner {
  background: rgba(51, 65, 85, 0.95) !important;
  -webkit-backdrop-filter: blur(20px) !important;
          backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

/* =========================== HEADER MODERNO - TEMA OSCURO =========================== */

.modern-header {
  background: var(--gradient-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.modern-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  gap: 2rem;
}

.modern-header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modern-header-title {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.025em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-header-badge {
  background: rgba(14, 165, 233, 0.2);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.modern-header-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Botón logout discreto */
.logout-button {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: all var(--transition-fast) !important;
}

.logout-button:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.modern-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(51, 65, 85, 0.8);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.modern-user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.modern-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.modern-user-greeting {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.modern-user-name {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* =========================== DASHBOARD MODERNO - TEMA OSCURO =========================== */

.modern-dashboard-container {
  min-height: calc(100vh - 80px);
  background: var(--gradient-dark);
  padding: 2rem;
}

.modern-dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(51, 65, 85, 0.8);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modern-dashboard-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: -0.025em;
}

.modern-dashboard-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
  text-align: center;
}

.modern-dashboard-section {
  margin-bottom: 3rem;
  animation: slideInUp var(--transition-normal);
  animation-fill-mode: both;
}

.modern-dashboard-section:nth-child(2) {
  animation-delay: 0.1s;
}
.modern-dashboard-section:nth-child(3) {
  animation-delay: 0.2s;
}
.modern-dashboard-section:nth-child(4) {
  animation-delay: 0.3s;
}

/* =========================== DATA TABLE MODERNA - TEMA OSCURO =========================== */

.modern-data-table-container {
  background: rgba(51, 65, 85, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.modern-data-table-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.modern-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid var(--border-color);
}

.modern-table-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  position: relative;
}

.modern-table-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.modern-table-wrapper {
  overflow-x: auto;
  max-height: 600px;
  overflow-y: auto;
  background: var(--surface-bg);
}

.modern-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.modern-table-header-cell {
  background: rgba(30, 41, 59, 0.9);
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.modern-table-cell {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  background: var(--surface-bg);
}

.modern-table-row {
  transition: all var(--transition-fast);
}

.modern-table-row:hover {
  background: var(--surface-hover);
  transform: scale(1.001);
}

.modern-table-row:hover .modern-table-cell {
  color: var(--text-primary);
}

/* Estados vacíos y de error modernos - TEMA OSCURO */
.modern-no-data {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface-bg);
}

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

.modern-no-data-text {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.modern-no-data-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.modern-error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem;
  background: rgba(51, 65, 85, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* =========================== ESPERAS PENDIENTES - TEMA OSCURO =========================== */

.esperas-pendientes {
  background: rgba(51, 65, 85, 0.8);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

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

.esperas-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.esperas-grid {
  display: grid;
  grid-gap: 1.5rem;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.espera-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid #f59e0b;
}

.espera-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--surface-hover);
}

.espera-card .espera-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.espera-card .espera-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
}

.espera-duracion {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.espera-details {
  margin-bottom: 1.5rem;
}

.espera-details p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

.espera-details strong {
  color: var(--text-primary);
  font-weight: 600;
}

.espera-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.finish-button {
  background: var(--gradient-success);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1;
  justify-content: center;
}

.finish-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.finish-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-section {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  background: var(--surface-bg);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-section .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--surface-elevated);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.error-message {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  color: #fecaca;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid #dc2626;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive para esperas pendientes */
@media (max-width: 768px) {
  .esperas-pendientes {
    padding: 1rem;
  }

  .esperas-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .esperas-grid {
    grid-template-columns: 1fr;
  }

  .espera-card {
    padding: 1rem;
  }

  .espera-card .espera-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .espera-duracion {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .esperas-pendientes {
    padding: 0.75rem;
  }

  .espera-card {
    padding: 0.75rem;
  }

  .finish-button {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }
}

/* =========================== RESPONSIVE DASHBOARD =========================== */

@media (max-width: 1024px) {
  .modern-dashboard-container {
    padding: 1.5rem;
  }

  .modern-dashboard-title {
    font-size: 2.5rem;
  }

  .modern-dashboard-subtitle {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .modern-header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .modern-header-brand {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .modern-header-title {
    font-size: 1.75rem;
  }

  .modern-header-user {
    flex-direction: row-reverse;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
  }

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

  .modern-dashboard-container {
    padding: 1rem;
  }

  .modern-dashboard-header {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .modern-dashboard-title {
    font-size: 2rem;
  }

  .modern-dashboard-subtitle {
    font-size: 1rem;
  }

  .modern-table-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .modern-table-header-cell,
  .modern-table-cell {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .modern-table-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .modern-header-content {
    padding: 0.75rem;
  }

  .modern-header-title {
    font-size: 1.5rem;
  }

  .modern-user-info {
    padding: 0.5rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .modern-dashboard-header {
    padding: 1rem;
  }

  .modern-dashboard-title {
    font-size: 1.75rem;
  }

  .modern-table-header {
    padding: 1rem;
  }

  .modern-table-title {
    font-size: 1.25rem;
  }
}

/* =========================== OPTIMIZACIONES HEADER MÓVILES v7.4 =========================== */

/* Header optimizado para móviles - SIEMPRE EN UNA LÍNEA */
@media (max-width: 768px) {
  .modern-header-content {
    padding: 0.75rem 1rem;
    gap: 1rem;
    /* Mantener en línea horizontal en móviles */
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
  }

  .modern-header-brand {
    gap: 0.5rem;
    /* Mantener título y badge en línea */
    flex-direction: row !important;
    align-items: center;
    flex-shrink: 0;
    text-align: left !important;
  }

  .modern-header-title {
    font-size: 1.5rem;
    /* Reducir tamaño para ahorrar espacio */
    white-space: nowrap;
  }

  .modern-header-badge {
    font-size: 0.65rem;
    padding: 0.125rem 0.5rem;
  }

  .modern-header-user {
    /* Optimizar para una línea en móviles */
    flex-direction: row !important;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 1;
    min-width: 0; /* Permitir encogimiento */
    width: auto !important;
    justify-content: flex-end !important;
  }

  .modern-user-info {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    /* Compactar información del usuario */
    min-width: 0;
    flex-shrink: 1;
    width: auto !important;
    justify-content: flex-start !important;
  }

  .modern-user-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .modern-user-details {
    /* Mantener detalles en línea */
    flex-direction: row !important;
    gap: 0.25rem;
    align-items: center;
    min-width: 0;
    text-align: left !important;
  }

  .modern-user-greeting {
    font-size: 0.75rem;
    /* Hacer texto más compacto */
    white-space: nowrap;
  }

  .modern-user-name {
    font-size: 0.875rem;
    /* Permitir truncamiento si es muy largo */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
  }

  .logout-button {
    padding: 0.375rem 0.625rem !important;
    font-size: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Versión aún más compacta para móviles pequeños */
@media (max-width: 480px) {
  .modern-header-content {
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
  }

  .modern-header-title {
    font-size: 1.25rem;
  }

  .modern-header-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
  }

  .modern-user-info {
    padding: 0.375rem 0.5rem;
    gap: 0.375rem;
  }

  .modern-user-avatar {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
  }

  .modern-user-greeting {
    font-size: 0.7rem;
  }

  .modern-user-name {
    font-size: 0.8rem;
    max-width: 100px;
  }

  .logout-button {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.7rem;
  }
}

/* Quita el punto azul de TODOS los modern-form-label dentro de SanidadHistoricos */
.sanidad-historicos label.modern-form-label::before {
  content: none !important;
}

/* (Opcional) Elimina cualquier padding/margin extra */
.sanidad-historicos label.modern-form-label {
  padding-left: 0;
  margin-left: 0;
}

/*!************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/components/trabajos-faenas/trabajos-faenas.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************/
/* Estilos para el módulo de Trabajos-Faenas - TEMA OSCURO */

/* Contenedor principal */
.trabajos-faenas {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  background: transparent;
  /* Hereda el fondo oscuro del dashboard */
}

.trabajos-header {
  margin-bottom: 2rem;
  text-align: center;
}

.trabajos-header h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Selector de Faena - TEMA OSCURO */
.faena-selector {
  background: rgba(51, 65, 85, 0.8);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.faena-selector .form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.select-container {
  position: relative;
  max-width: 400px;
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--surface-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), var(--shadow-md);
  transform: translateY(-1px);
}

.form-select:hover:not(:focus) {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-md);
}

.form-select:disabled {
  background-color: var(--surface-elevated);
  cursor: not-allowed;
  opacity: 0.6;
}

.form-select option {
  background: var(--surface-bg);
  color: var(--text-primary);
  padding: 0.5rem;
}

.loading-spinner {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Tabs - TEMA OSCURO */
.tabs-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(30, 41, 59, 0.6);
  padding: 0.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.tab-button:hover {
  color: var(--text-primary);
  background-color: var(--surface-hover);
  transform: translateY(-1px);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}

/* Tareas Espera - TEMA OSCURO */
.tareas-espera {
  background: rgba(51, 65, 85, 0.8);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.warning-message {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
  color: #fef3cd;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid #d97706;
  box-shadow: var(--shadow-sm);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  max-width: 600px;
}

/* Botones separados a cada orilla */
.actions-separated {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.action-button {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.action-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left var(--transition-slow);
}

.action-button:hover::before {
  left: 100%;
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.primary-button {
  background: var(--gradient-primary);
  color: white;
}

.info-button {
  background: var(--gradient-secondary);
  color: white;
}

.warning-button {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: 1px solid #fb923c;
}

.warning-button:hover {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Formulario de Tarea ya tiene estilos modernos aplicados */
.formulario-tarea {
  margin-top: 2rem;
}

/* Revisar Tareas - TEMA OSCURO */
.revisar-tareas {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tareas-section {
  background: rgba(51, 65, 85, 0.8);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid var(--border-color);
}

.section-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.refresh-button {
  background: var(--gradient-secondary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.refresh-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.tareas-grid {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-bg);
}

.tarea-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.tarea-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--surface-hover);
}

.tarea-programada {
  border-left: 4px solid var(--warning-color);
}

.tarea-progreso {
  border-left: 4px solid var(--primary-color);
}

.tarea-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tarea-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
}

.estado-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.estado-programada {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
  color: #fef3cd;
}

.estado-en-progreso {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #dbeafe;
}

.estado-en-espera {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: #e0f2fe;
}

.tarea-details {
  margin-bottom: 1rem;
}

.tarea-details p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.tarea-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.finish-button {
  background: var(--gradient-success);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.finish-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.delete-button {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.delete-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Estados vacíos - TEMA OSCURO */
.no-data {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-style: italic;
  background: var(--surface-bg);
  border-radius: var(--radius-md);
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  background: var(--surface-bg);
  border-radius: var(--radius-md);
}

.error {
  text-align: center;
  padding: 2rem;
  color: #fecaca;
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  border-radius: var(--radius-md);
  border: 1px solid #dc2626;
  box-shadow: var(--shadow-sm);
}

/* Mensaje de éxito */
.success-message-overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  animation: slideInRight 0.5s ease-out;
}

.success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  border: 1px solid #34d399;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  min-width: 300px;
}

/* Variante de error para notificaciones */
.success-message.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid #f87171;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.success-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.success-text {
  font-weight: 500;
  font-size: 1rem;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loading overlay - TEMA OSCURO */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Dropdown z-index fixes */
.formulario-tarea {
  /* Asegurar que el formulario no interfiera con dropdowns */
  position: relative;
  z-index: 1;
}

/* Modal estilos - TEMA OSCURO */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: rgba(51, 65, 85, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-espera {
  max-width: 450px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close-button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-button:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: scale(1.1);
}

.modal-close-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.modal-body {
  padding: 1.5rem;
  color: var(--text-primary);
}

.modal-help-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.modal-footer {
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.6);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loading-spinner {
  background: rgba(51, 65, 85, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
}

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

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

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive - mantenido y mejorado */
@media (max-width: 768px) {
  .trabajos-faenas {
    padding: 0.5rem;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .actions-separated {
    flex-direction: column;
    gap: 1rem;
  }

  .actions-separated .action-button {
    width: 100%;
    max-width: 300px;
  }

  .tabs-container {
    flex-direction: column;
    gap: 0.25rem;
  }

  .tab-button {
    padding: 0.75rem 1rem;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .faena-selector {
    padding: 1rem;
  }

  .tareas-espera {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .trabajos-faenas {
    padding: 0.25rem;
  }

  .faena-selector,
  .tareas-espera,
  .tareas-section {
    padding: 0.75rem;
  }

  .action-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Modal responsive */
  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }

  .modal-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Paginación de SanidadHistoricos */
.paginationControls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.paginationInfo {
  flex: 1 1;
  text-align: center;
}

@media (max-width: 600px) {
  .paginationControls {
    flex-direction: column;
    align-items: stretch;
  }

  .paginationInfo {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .paginationControls button {
    width: 100%;
  }
}

/* Filtro de búsqueda */
.search-group {
  margin-bottom: 1.5rem;
}

.search-container {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.search-icon {
  margin-right: 0.75rem;
  font-size: 1.2rem;
  color: #666;
}

.search-input {
  border: none;
  outline: none;
  flex: 1 1;
  background: transparent;
}

/* Grupo flex SanidadHistoricos */
.field-group {
  display: grid;
  grid-template-columns: 50% auto;
  grid-column-gap: 1rem;
  column-gap: 1rem;
  align-items: start;
  margin-top: 0.75rem;
}

.header-group {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.field-group .label,
.field-group .ubic-label {
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1.2;
}

.field-group .value,
.field-value {
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: left;
  word-wrap: break-word;
}


/* Botón Cachimba (en TareasEspera) */
.cachimba-button {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: white;
  border: none;
  /* El padding se hereda de .action-button si se aplica, o se define aquí */
}

/* Modal Cachimba - Botones de acción */
.cachimba-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cachimba-action-button {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.agua-button {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.agua-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.sulfato-button {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.sulfato-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* Estados de bomba encendida/apagada */
.bomba-apagada {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.bomba-apagada:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.bomba-encendida {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.bomba-encendida:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
}

/* Estado de cooldown - botón bloqueado temporalmente */
.bomba-cooldown {
  opacity: 0.7;
  cursor: not-allowed;
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
  box-shadow: none;
  animation: pulse-cooldown 1s ease-in-out infinite;
}

.bomba-cooldown:hover {
  transform: none;
  box-shadow: none;
}

@keyframes pulse-cooldown {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 0.5;
  }
}

.cachimba-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.cachimba-button:active {
  transform: translateY(0);
}

/* Indicador de última conexión en modal Cachimba */
.cachimba-last-connection {
  font-size: 0.75rem;
  color: #a1a1aa;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Botón Finalizar Mantenimiento */
.cachimba-finalizar-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.cachimba-finalizar-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Modal de Confirmación dentro de Cachimba */
.cachimba-confirmacion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  z-index: 10;
}

.cachimba-confirmacion-dialog {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 280px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cachimba-confirmacion-dialog p {
  margin: 0 0 1.25rem 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.cachimba-confirmacion-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.cachimba-confirmacion-buttons .modern-button {
  flex: 1 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

/* Header top con título y conexión */
.cachimba-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Contenedor de información (Estado + Métricas) */
.cachimba-info-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* A la derecha, o space-between si prefieres */
  gap: 1rem;
  margin-top: 0.5rem;
  width: 100%;
  flex-wrap: wrap;
}

/* Ajuste para que el 'hace X min' se alinee bien */
.cachimba-last-connection {
  margin-top: 0 !important;
  /* Quitar margen si tenía */
}

/* Métricas del servidor */
.cachimba-server-metrics {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 40, 0.6);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: 0;
  /* Quitar margin-top porque lo maneja el contenedor padre */
}

.cachimba-server-metrics .metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  min-width: 55px;
}

.cachimba-server-metrics .metric-item.normal {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.cachimba-server-metrics .metric-item.warning {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.cachimba-server-metrics .metric-item.critical {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cachimba-server-metrics .metric-label {
  font-size: 0.6rem;
  color: #a1a1aa;
  text-transform: uppercase;
}

.cachimba-server-metrics .metric-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.cachimba-server-metrics .metric-estado {
  font-size: 1rem;
  margin-left: 0.25rem;
}

/* Video Player Styles */
.cachimba-camera-container {
  width: 100%;
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.camera-title {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-wrapper {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.cachimba-video-player {
  width: 100%;
  height: 100%;
}

/* Ajustes para video.js theme */
.video-js .vjs-big-play-button {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  background-color: rgba(60, 100, 255, 0.7) !important;
  border-color: rgba(60, 100, 255, 0.3) !important;
  border-radius: 50% !important;
  width: 2em !important;
  height: 2em !important;
  line-height: 2em !important;
}

.video-js .vjs-control-bar {
  background-color: rgba(0, 0, 0, 0.7) !important;
}
/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/components/camaras/camaras.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
/* Cameras Module Styles */

.cameras-page {
    padding: 1.5rem;
}

.cameras-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cameras-header h2 {
    margin: 0;
    color: #fff;
}

/* Cameras Tabs */
.cameras-tabs {
    display: flex;
    justify-content: space-between;
    /* Separar grupos */
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    /* Para móviles */
}

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

.cameras-tab {
    background: rgba(255, 255, 255, 0.05);
    color: #a0aec0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cameras-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cameras-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.view-all-btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.view-all-btn.active {
    background: #e74c3c !important;
    /* Color rojizo para diferenciar cuando está activo */
    border-color: transparent !important;
}

/* Cameras Grid */
.cameras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    grid-gap: 1.5rem;
    gap: 1.5rem;
}

.cameras-grid.single {
    max-width: 400px;
}

/* Camera Card */
.camera-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.camera-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.camera-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.camera-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    line-height: 1.5;
    /* Ensure consistent height */
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    /* Reserve border space */
}


.camera-status.status-playing {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.camera-status.status-loading {
    background: rgba(148, 163, 184, 0.2);
    /* Same as idle */
    color: #f59e0b;
}

.camera-status.status-error {
    background: rgba(148, 163, 184, 0.2);
    /* Same as idle */
    color: #ef4444;
}

.camera-status.status-image {
    background: rgba(99, 179, 237, 0.2);
    color: #63b3ed;
}

/* Video Container */
.camera-video-container {
    position: relative;
    background: #0a0a0a;
}

.camera-video {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    display: block;
}

.camera-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #000;
    display: block;
}

.camera-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.camera-overlay.clickable {
    cursor: pointer;
    transition: background 0.2s;
}

.camera-overlay.clickable:hover {
    background: rgba(0, 0, 0, 0.75);
}

.camera-overlay.error {
    cursor: pointer;
}

.camera-overlay .play-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.camera-overlay small {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Idle status style */
.camera-status.status-idle {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

/* Stop button */
.camera-stop-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.8);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
}

.camera-video-container:hover .camera-stop-btn {
    opacity: 1;
}

.camera-stop-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .cameras-grid {
        grid-template-columns: 1fr;
    }

    .cameras-tabs {
        flex-wrap: wrap;
    }

    .camera-stop-btn {
        opacity: 1;
    }
}

/* Custom Spinner */
.camera-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: camera-spin 1s linear infinite;
}

@keyframes camera-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.camera-loading-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
/*!****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/components/gimps/gimps.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************/
/* GIMPS Module Styles */

.gimps-page {
    padding: 1.5rem;
}

.gimps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.gimps-header h2 {
    margin: 0;
    color: #fff;
}

/* GIMPS Grid - 2x4 layout */
.gimps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1rem;
    gap: 1rem;
}

/* GIMP Card */
.gimp-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gimp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.gimp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.gimp-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.gimp-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gimp-puerto {
    font-size: 0.7rem;
    color: #667;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.gimp-expand-btn {
    background: rgba(102, 126, 234, 0.2);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.gimp-expand-btn:hover {
    background: rgba(102, 126, 234, 0.4);
}

.gimp-weather-btn {
    background: rgba(49, 151, 149, 0.2);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    color: #4fd1c5;
    transition: background 0.2s, color 0.2s;
}

.gimp-weather-btn:hover {
    background: rgba(49, 151, 149, 0.4);
    color: #81e6d9;
}

/* Iframe Container */
.gimp-iframe-container {
    position: relative;
    height: 75vh;
    background: #0a0a0a;
}

.gimp-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.gimp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: #a0aec0;
    font-size: 0.85rem;
}

.gimp-overlay.error {
    color: #ef4444;
}

/* Modal Expandido */
.gimp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.gimp-modal {
    background: #1e293b;
    border-radius: 16px;
    width: 95vw;
    max-width: 1400px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gimp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gimp-modal-header h3 {
    margin: 0;
    color: #fff;
}

.gimp-modal-close {
    background: rgba(239, 68, 68, 0.9);
    border: 2px solid #f87171;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-bottom: 2px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.gimp-modal-close:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.gimp-modal-body {
    padding: 0;
}

.gimp-modal-iframe {
    width: 100%;
    height: 75vh;
    border: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .gimps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gimps-grid {
        grid-template-columns: 1fr;
    }

    .gimp-iframe-container {
        height: 65vh;
    }
}
/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/components/tuneles/tuneles.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
/* TUNEL Module Styles */

.tunel-page {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tunel-header {
    margin-bottom: 1.5rem;
}

.tunel-header h2 {
    margin: 0;
    color: #fff;
}

/* Search Container */
.tunel-search-container {
    position: relative;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.tunel-label {
    display: block;
    color: #a0aec0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.tunel-input-wrapper {
    position: relative;
}

.tunel-input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}

.tunel-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.tunel-input::placeholder {
    color: #667;
}

.tunel-loading-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.tunel-refresh-btn {
    padding: 0.875rem 1rem;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 10px;
    color: #a5b4fc;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.tunel-refresh-btn:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
    color: #c7d2fe;
}

.tunel-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dropdown */
.tunel-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tunel-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tunel-dropdown-item:last-child {
    border-bottom: none;
}

.tunel-dropdown-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

.equipo-name {
    color: #e2e8f0;
    font-weight: 500;
}

.equipo-port {
    color: #667;
    font-size: 0.8rem;
}

.equipo-ubicacion {
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: 500;
}

.equipo-context {
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 500;
}

.tunel-action-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tunel-action-btn.ver-mapa {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.tunel-action-btn.ver-mapa:hover {
    background: rgba(16, 185, 129, 0.3);
}

.tunel-action-btn.asignar {
    background: rgba(99, 179, 237, 0.2);
    color: #63b3ed;
    border: 1px solid rgba(99, 179, 237, 0.4);
}

.tunel-action-btn.asignar:hover {
    background: rgba(99, 179, 237, 0.3);
}

.equipo-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.equipo-action {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.equipo-action.ver-mapa {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.equipo-action.asignacion {
    background: rgba(99, 179, 237, 0.2);
    color: #63b3ed;
}

/* Error */
.tunel-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Selected Info */
.tunel-selected-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    color: #10b981;
}

.tunel-selected-info span {
    font-size: 0.9rem;
}

/* Iframe Container */
.tunel-iframe-container {
    position: relative;
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tunel-iframe {
    width: 100%;
    height: 70vh;
    border: none;
    display: block;
}

.tunel-iframe-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: #a0aec0;
    font-size: 1rem;
    z-index: 10;
}

/* Empty State */
.tunel-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #667;
    text-align: center;
}

.tunel-empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tunel-empty-state p {
    margin: 0 0 0.5rem 0;
    color: #a0aec0;
}

.tunel-empty-state small {
    color: #667;
}

/* Responsive */
@media (max-width: 768px) {
    .tunel-search-container {
        max-width: 100%;
    }

    .tunel-selected-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .tunel-iframe {
        height: 50vh;
    }
}
/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f1f5f9;
  min-height: 100vh;
}

/* Layout principal */
.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.header-title {
  color: #f1f5f9;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #f1f5f9;
}

.logout-button {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.logout-button:hover {
  background-color: #dc2626;
}

/* Login */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-card h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: #374151;
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input:disabled {
  background-color: #f9fafb;
  cursor: not-allowed;
}

.login-button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.login-button:hover:not(:disabled) {
  background-color: #1d4ed8;
}

.login-button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.error-message {
  color: #ef4444;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Dashboard */
.dashboard-content {
  flex: 1 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

.dashboard-title {
  margin-bottom: 2rem;
  color: #1f2937;
}

/* Tablas de datos */
.data-table-container {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.table-header h2 {
  color: #1f2937;
  font-size: 1.25rem;
}

.refresh-button,
.retry-button {
  background-color: #059669;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.refresh-button:hover,
.retry-button:hover {
  background-color: #047857;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background-color: #f9fafb;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.data-table tr:hover {
  background-color: #f9fafb;
}

.no-data {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-style: italic;
}

/* Estados de carga y error - TEMA OSCURO */
.loading-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 3rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  background: rgba(51, 65, 85, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  min-width: 200px;
  text-align: center;
}

.loading::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid var(--surface-elevated);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  background: rgba(51, 65, 85, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  margin: 2rem;
}

.error-text {
  color: var(--error-color);
  text-align: center;
}

/* Dashboard Principal - TEMA OSCURO */
.modern-dashboard-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 1rem;
}

.modern-dashboard-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(51, 65, 85, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-dashboard-title {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

.modern-dashboard-subtitle {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin: 0;
  font-weight: 500;
}

/* Botón Toggle de Herramientas */
.dashboard-tools-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.tools-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1.5rem;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tools-btn:hover,
.tools-btn.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
  border-color: transparent;
}

/* Pestañas del Dashboard con Toggle */
.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: rgba(30, 41, 59, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: -moz-fit-content;
  max-width: fit-content;
  /* Ajuste para que no ocupe todo si no es necesario */
  margin-left: auto;
  margin-right: auto;

  /* Estado por defecto oculto con transición */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-tabs.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 200px;
  /* Suficiente par los botones */
  padding: 0.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-tab {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #94a3b8;
  white-space: nowrap;
}

.dashboard-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive para pestañas del dashboard */
@media (max-width: 768px) {
  .dashboard-tabs {
    flex-direction: column;
    max-width: 90%;
  }

  .dashboard-tabs.visible {
    max-height: 400px;
    /* Más altura para modo columna */
  }

  .dashboard-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    /* Botones full width en móvil */
  }

  .modern-dashboard-header {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .modern-dashboard-title {
    font-size: 1.5rem;
  }

  .dashboard-tabs .tab-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-user {
    flex-direction: column;
    gap: 0.5rem;
  }

  .table-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .dashboard-content {
    padding: 1rem;
  }
}

/* ===== ESTILOS DEL MÓDULO TRABAJOS-FAENAS ===== */

/* Contenedor principal */
.trabajos-faenas {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trabajos-header {
  margin-bottom: 2rem;
  text-align: center;
}

.trabajos-header h2 {
  color: #1f2937;
  font-size: 1.75rem;
  margin: 0;
}

/* Selector de Faena */
.faena-selector {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.faena-selector .form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.select-container {
  position: relative;
  max-width: 400px;
}

/* Tabs */
.tabs-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-button:hover {
  color: #374151;
  background-color: #f9fafb;
}

.tab-button.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background-color: #eff6ff;
}

/* Tareas Espera */
.tareas-espera {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.warning-message {
  background-color: #fef3cd;
  color: #856404;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  border: 1px solid #ffeaa7;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  max-width: 600px;
}

/* Formulario de Tarea */
.formulario-tarea {
  margin-top: 2rem;
}

.form-card {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.form-card h3 {
  margin: 0 0 2rem 0;
  color: #1f2937;
  font-size: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  resize: vertical;
  min-height: 80px;
}

.form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-file {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: white;
}

.form-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 1.5rem 0;
}

.warning-text {
  font-size: 0.875rem;
  color: #f59e0b;
  margin-top: 0.25rem;
}

.text-warning {
  color: #f59e0b !important;
}

.text-success {
  color: #10b981 !important;
}

/* Reemplazo de equipos */
.reemplazo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
  gap: 2rem;
  margin: 1rem 0;
}

.equipos-column {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  background: white;
}

.equipos-title {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.equipos-salientes {
  color: #f59e0b;
}

.equipos-entrantes {
  color: #10b981;
}

/* Preview de imágenes */
.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.preview-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
}

/* Botón de envío */
.submit-button {
  width: 100%;
  padding: 1rem;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 1rem;
}

.submit-button:hover:not(:disabled) {
  background-color: #059669;
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Revisar Tareas */
.revisar-tareas {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tareas-section {
  background: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
}

.section-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.25rem;
}

.tareas-grid {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
  padding: 1.5rem;
}

.tarea-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.tarea-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tarea-programada {
  border-left: 4px solid #f59e0b;
}

.tarea-progreso {
  border-left: 4px solid #3b82f6;
}

.tarea-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tarea-header h4 {
  margin: 0;
  color: #1f2937;
  font-size: 1.125rem;
}

.estado-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.estado-programada {
  background-color: #fef3cd;
  color: #92400e;
}

.estado-en-progreso {
  background-color: #dbeafe;
  color: #1e40af;
}

.estado-en-espera {
  background-color: #e0f2fe;
  color: #0ea5e9;
}

.tarea-details {
  margin-bottom: 1rem;
}

.tarea-details p {
  margin: 0.5rem 0;
  color: #4b5563;
  font-size: 0.875rem;
}

.tarea-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.finish-button {
  background-color: #10b981;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.finish-button:hover {
  background-color: #059669;
}

.delete-button {
  background-color: #ef4444;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.delete-button:hover {
  background-color: #dc2626;
}

/* Loading overlay trabajos-faenas */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-overlay .loading-spinner {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive trabajos-faenas */
@media (max-width: 768px) {
  .trabajos-faenas {
    padding: 0.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .reemplazo-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }

  .equipos-column {
    padding: 1rem;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

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

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* Mejoras adicionales para reemplazo en móviles pequeños */
@media (max-width: 480px) {
  .reemplazo-container {
    gap: 1rem;
    margin: 1rem 0;
  }

  .equipos-column {
    padding: 0.75rem;
  }

  .equipos-title {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
}
