.modern-section {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    font-family: 'Segoe UI', sans-serif;
}

.modern-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-group {
    flex: 1 1 18%; /* cinco columnas aproximadas */
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    font-weight: 600;
    margin-bottom: .3rem;
    color: #333;
}

.form-control {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .form-group {
        flex: 1 1 100%;
    }
}


.tab-pane {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.tab-pane.active.show {
    opacity: 1;
}



/* Estilo general para la tabla */
.table {
  width: 100%;
  border-collapse: separate; /* para bordes redondeados */
  border-spacing: 0 8px; /* espacio vertical entre filas */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #fff;
}

/* Encabezado */
.table thead tr {
  background-color: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
}

/* Celdas del encabezado */
.table thead th {
  padding: 12px 16px;
  border: none;
}

/* Filas */
.table tbody tr {
  background-color: #f8f9fa;
  transition: background-color 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

/* Alternar color filas (pares) */
.table tbody tr:nth-child(even) {
  background-color: #e9ecef;
}

/* Hover en filas */
.table tbody tr:hover {
  background-color: #d1ecf1;
  cursor: pointer;
}

/* Celdas del cuerpo */
.table tbody td, 
.table tbody th {
  padding: 12px 16px;
  vertical-align: middle;
  text-align: center;
  border: none;
}

/* Bordes redondeados para las celdas al inicio y fin de la fila */
.table tbody tr td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.table tbody tr td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Input y select dentro de la tabla */
.table input[type="number"],
.table select {
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}



.table input[type="decimal"],
.table select {
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}


/* Focus en input y select */
.table input[type="number"]:focus,
.table select:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 6px #3498dbaa;
}



.table input[type="decimal"]:focus,
.table select:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 6px #3498dbaa;
}.


/* Caption */
.table caption {
  caption-side: top;
  font-weight: 700;
  font-size: 18px;
  padding-bottom: 12px;
  color: #34495e;
  text-align: left;
}


/* Añadimos una clase para la celda activa */
.table tbody td.editing {
  position: relative;
  animation: pulse-border 1.5s infinite alternate;
  border: 2px solid #3498db;
  border-radius: 8px;
  box-shadow: 0 0 8px #3498dbaa;
}

/* Animación de pulso suave en el borde */
@keyframes pulse-border {
  0% {
    box-shadow: 0 0 6px #3498db99;
  }
  100% {
    box-shadow: 0 0 14px #3498dbff;
  }
}

.table tbody tr {
  transition: background-color 0.3s ease, transform 0.15s ease;
}

.table tbody tr:hover {
  background-color: #d1ecf1;
  transform: scale(1.02);
  cursor: pointer;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
}



.modal-imagen {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  text-align: center;
}

.modal-contenido {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px #000;
  transition: transform 0.3s ease;
}

.modal-cerrar {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.modal-cerrar:hover {
  color: #ffcccc;
}
.modal-video {
  margin: auto;
  background: #000;
  padding: 1px;
  border-radius: 1px;
  max-width: 800px;
  width: 90%;
}

