body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f6fb;
    color: #333;
    margin: 2rem;
}

h1 {
    text-align: center;
    color: #5f4b8b;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background: linear-gradient(90deg, #6ac1ff, #00bcd4);
    color: white;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background-color: #f0f0ff;
    transition: background-color 0.3s;
}

th:hover {
    background-color: #5bb4e5;
    transition: background-color 0.3s;
}

th {
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}

th .header-content {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

th .header-content img {
    width: 16px;
    height: 16px;
    border: none;
}

th button {
    background: #ffffff33;
    border: none;
    outline: none;
    cursor: pointer;
    color: #fff;
    margin-left: 5px;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.3s;
}

th button:hover {
    background: #ffffff66;
}

@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead {
        display: none;
    }
    tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 0.5rem;
        background-color: white;
    }
    td {
        position: relative;
        padding-left: 50%;
    }
    td::before {
        content: attr(data-label);
        left: 1rem;
        top: 0.75rem;
        font-weight: bold;
        color: #5f4b8b;
        position: absolute;
    }
}

#csvbutton {
    text-align: center; /* centra el botón */
    margin: 1.5rem 0;
}

#descargar {
    background: linear-gradient(135deg, #6c63ff, #5a52e0);
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

#descargar:hover {
    background: linear-gradient(135deg, #5a52e0, #473dbd);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

#descargar:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#filtros input, #filtros select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border 0.3s;
}

#filtros input:focus, #filtros select:focus {
    outline: none;
    border-color: #6c63ff;
    background-color: #f0f0ff;
}
/* CSS del formulario de subir a HorasDia. Está mal seguro
  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f7f7ff;
    display: auto;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }

  #mi-form {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
  }

  #mi-form input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s;
  }

  #mi-form input[type="text"]:focus {
    border-color: #6c63ff;
    outline: none;
    background-color: #f0f0ff;
  }

  #mi-form button {
    width: 100%;
    padding: 12px;
    background-color: #6c63ff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
  }

  #mi-form button:hover {
    background-color: #5a52e0;
  }*/