@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
a {
  text-decoration:none;
  color:currentColor;
}
li {
   list-style:none;
}
button {
   cursor:pointer;
 }
 body{
     background-color: #f4f7f6;
    color: #333;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
 }

 .contenedor{
    width: 100%;
    max-width: 1000px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
 }
 h1{
    text-align: center;
    font-weight: 500;
 }


h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
}

/* Botones y Enlaces */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-nuevo {
    margin-bottom: 20px;
}

.btn-editar {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}

.btn-eliminar {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

.btn-editar:hover, .btn-eliminar:hover{
    text-decoration: underline;
}

/* Tabla Estilizada */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f8f9fa;
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: #fdfdfd;
}
form{
    width: 30rem;
}

/* Formularios (Crear y Editar) */
.form-group {
    margin-bottom: 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.1rem;
    color: #34495e;
    font-weight: 600;
}

input[type="text"],
input[type="date"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fafafa;
    transition: border 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
    background-color: #fff;
}

textarea {
    height: 120px;
    resize: vertical;
}

.btn-volver {
    background-color: #95a5a6;
    margin-left: 10px;
}

.btn-volver:hover {
    background-color: #7f8c8d;
}
 

