/* RESET BÁSICO */
* {
    box-sizing: border-box;
}

/* BODY GENERAL */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #ffeef5, #ffffff);
    margin: 0;
    padding: 20px;
    color: #333;
}

/* TITULOS */
h2, h3 {
    color: #d63384;
    text-align: center;
    border-bottom: 2px solid #ffc1e3;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

/* FORMULARIOS */
form {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

/* INPUTS */
input[type="text"],
input[type="number"],
input[type="file"],
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 15px;
    border: 1px solid #ffc1e3;
    border-radius: 8px;
    background-color: #fff5f8;
    font-size: 14px;
}

/* FOCUS */
input:focus,
textarea:focus {
    border-color: #d63384;
    outline: none;
    box-shadow: 0 0 5px rgba(214, 51, 132, 0.4);
}

/* BOTONES */
button,
a.button {
    background-color: #d48bb4;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    transition: 0.2s;
}

/* HOVER BOTONES */
button:hover,
a.button:hover {
    background-color: #c26c9c;
    transform: translateY(-1px);
}

/* BOTON GRIS OPCIONAL */
.button-gris {
    background-color: #6c757d;
}

.button-gris:hover {
    background-color: #5a6268;
}

/* TABLAS */
table {
    border-collapse: collapse;
    width: 100%;
    background-color: #ffffff;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* CELDAS */
th, td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

/* CABECERA */
th {
    background-color: #d63384;
    color: white;
    font-weight: bold;
}

/* FILAS */
tr:nth-child(even) {
    background-color: #fff5f8;
}

tr:hover {
    background-color: #ffeef5;
}

/* LINKS */
a {
    color: #d63384;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* PAGINACIÓN */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a,
.pagination strong {
    display: inline-block;
    margin: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.pagination a {
    background: #ffeef5;
    color: #d63384;
}

.pagination a:hover {
    background: #d63384;
    color: white;
}

.pagination strong {
    background: #d48bb4;
    color: white;
}

/* MENSAJES */
.mensaje {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mensaje.exito {
    background-color: #d4edda;
    color: #155724;
}

.mensaje.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    form {
        padding: 15px;
    }

    table {
        font-size: 14px;
    }
}

/* IMPRESIÓN */
@media print {
    button,
    .button,
    a.button,
    form {
        display: none !important;
    }

    body {
        background: white;
    }
}
