/* Estilos generales */
body {
    font-family: 'Poppins', Arial, sans-serif, 'Montserrat';
    margin: 0;
    padding: 0;
    background: url('logo.png') no-repeat center center fixed;
    color: #000000;
}

.hidden {
    display: none !important;
}

/* Barra de navegación */
.navbar {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #000000;
    padding: 6px 20px; 
    display: flex;
    align-items: center; 
    height: 60px; 
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.5);
    font-weight: 600;
    position: relative;
}
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em; 
    font-weight: 700;
    color: rgb(255, 255, 255); 
    letter-spacing: 1px;
}

/* Contenedor y tablas */
.container {
    display: flex;
    max-width: 1400px;
    margin: 30px auto;
    background-color: rgba(255, 255, 255, 0.9); 
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.15);
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background-color: #4455aa;
    color: #e4e9f7;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #6f7cd9;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.3em;
}

.category-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card {
    background-color: #5b6bc0;
    padding: 18px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 3px 6px rgba(91, 107, 192, 0.4);
    color: #e0e7ff;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card:hover {
    background-color: #7186d6;
    transform: translateX(6px);
    box-shadow: 0 6px 14px rgba(113, 134, 214, 0.5);
}

.card.active {
    background-color: #9fb8ff;
    color: #25316d;
    border-left: 5px solid #3b5afe;
    transform: translateX(6px);
    box-shadow: 0 8px 20px rgba(59, 90, 254, 0.6);
}

.card h3 {
    margin: 0 0 6px 0;
    font-size: 1.15em;
}

.card p {
    margin: 0;
    font-size: 0.95em;
    color: #dbe1ff;
}

.main-content {
    flex: 1;
    padding: 30px 40px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.table-container {
    margin-bottom: 40px;
}

.table-title {
    text-align: center;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 1.3em;
    color: #4455aa;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
    font-size: 0.95em;
}

th, td {
    border: 1px solid #000000;
    padding: 12px 14px;
    text-align: center;
    vertical-align: middle;
    transition: background-color 0.3s ease;
}

th {
    background: #667eea;
    color: #fff;
    font-weight: 700;
}

tr:nth-child(even) {
    background: #f0f2ff;
}

tr:hover:not(.editing) {
    background: #dbe1ff;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 20px 10px;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 15px 10px;
    }
    
    .category-cards {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        width: 100%;
    }
    
    .card {
        min-width: 140px;
        flex: 1 0 auto;
        padding: 12px 15px;
        font-size: 0.95em;
        text-align: center;
        border-radius: 8px;
        box-shadow: none;
    }
    
    .card.active {
        border-left: none;
        border-bottom: 3px solid #3b5afe;
        transform: translateY(-3px);
    }

    .main-content {
        padding: 20px 15px;
    }

    table, th, td {
        font-size: 0.85em;
        padding: 8px 6px;
    }
}


/* Estados de filas */
tr.editing {
    background-color: #eef5ff;
}

tr.editing input {
    background-color: #fff;
    border: 1px solid #667eea;
    padding: 6px 8px;
    border-radius: 5px;
}

td[rowspan] {
    vertical-align: middle;
}

tr[draggable="true"] {
    cursor: grab;
    background-color: #dbeeff;
    transition: background-color 0.3s ease;
}

tr[draggable="true"]:hover {
    background-color: #c2d4ff;
}
.fullscreen-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.fullscreen-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.simple-footer {
  position: static;
  bottom: 0;
  left: 0;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #666;              
}

.simple-footer a {
  color: #666;              
  text-decoration: none;
}

.simple-footer a:hover {
  text-decoration: underline;
}



