/* =========================
   RESET BÁSICO
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

/* =========================
   BODY
========================= */
body {
    background: linear-gradient(135deg, #f0f4f8, #f8eef0);
    color: #333;
    padding: 20px;
}

/* =========================
   LOGIN MODERNO GUINDA
========================= */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.login-container img {
    width: 130px;
    margin-bottom: 25px;
}

.login-container h2 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    background: #f8fafc;
}

.login-container input:focus {
    outline: none;
    border-color: #7b1732;
    box-shadow: 0 0 0 3px rgba(123, 23, 50, 0.2);
    background: #ffffff;
}

.login-container .remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #475569;
}

.login-container .remember input {
    accent-color: #7b1732;
}

.login-container button {
    width: 100%;
    padding: 14px;
    background-color: #7b1732;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #5d0f24;
}

/* =========================
   CONTENEDOR GENERAL
========================= */
.container,
.page-container {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* =========================
   TITULOS
========================= */
h1, h2, h3 {
    color: #1f2937;
    margin-bottom: 20px;
}

/* =========================
   FORMULARIOS
========================= */
form label {
    margin-top: 15px;
    font-weight: 600;
    display: block;
}

form input,
form select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    background: #f8fafc;
}

form input:focus,
form select:focus {
    outline: none;
    border-color: #7b1732;
    box-shadow: 0 0 0 2px rgba(123,23,50,.15);
    background: #fff;
}

small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
}

hr {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* =========================
   BOTONES
========================= */
button,
.btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background-color: #7b1732;
    border: none;
    cursor: pointer;
}

button:hover,
.btn:hover {
    background-color: #5d0f24;
}

/* =========================
   TABLAS
========================= */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

th {
    background: #7b1732;
    color: #fff;
}

tr:hover {
    background: #fef2f2;
}

.foto-mini {
    width: 50px;
    height: 66px;
    object-fit: cover;
    border-radius: 6px;
}

/* =========================
   CROP (NO ROMPER)
========================= */
.crop-wrapper {
    border: 2px dashed #7b1732;
    background: #f8fafc;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.crop-wrapper:active {
    cursor: grabbing;
}

.crop-foto {
    width: 180px;
    height: 240px;
}

.crop-firma {
    width: 240px;
    height: 180px;
}

/* ⚠️ NO TOCAR */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {
    .container,
    .page-container {
        padding: 20px;
    }

    th, td {
        font-size: 13px;
        padding: 8px;
    }
}

@media (max-width: 450px) {
    .login-container {
        padding: 25px 20px;
    }

    .login-container h2 {
        font-size: 20px;
    }
}
