@font-face { font-family: 'Roboto'; src: url('../font/Roboto-Thin.ttf');       font-weight: 100; font-style: normal; }
@font-face { font-family: 'Roboto'; src: url('../font/Roboto-ThinItalic.ttf');  font-weight: 100; font-style: italic; }
@font-face { font-family: 'Roboto'; src: url('../font/Roboto-Light.ttf');       font-weight: 300; font-style: normal; }
@font-face { font-family: 'Roboto'; src: url('../font/Roboto-LightItalic.ttf'); font-weight: 300; font-style: italic; }
@font-face { font-family: 'Roboto'; src: url('../font/Roboto-Regular.ttf');     font-weight: 400; font-style: normal; }
@font-face { font-family: 'Roboto'; src: url('../font/Roboto-Italic.ttf');      font-weight: 400; font-style: italic; }
@font-face { font-family: 'Roboto'; src: url('../font/Roboto-Medium.ttf');      font-weight: 500; font-style: normal; }
@font-face { font-family: 'Roboto'; src: url('../font/Roboto-MediumItalic.ttf');font-weight: 500; font-style: italic; }
@font-face { font-family: 'Roboto'; src: url('../font/Roboto-Bold.ttf');        font-weight: 700; font-style: normal; }
@font-face { font-family: 'Roboto'; src: url('../font/Roboto-BoldItalic.ttf');  font-weight: 700; font-style: italic; }
@font-face { font-family: 'Roboto'; src: url('../font/Roboto-Black.ttf');       font-weight: 900; font-style: normal; }
@font-face { font-family: 'Roboto'; src: url('../font/Roboto-BlackItalic.ttf'); font-weight: 900; font-style: italic; }

* { box-sizing: border-box; margin: 0; padding: 0; }

.site-logo {
    position: fixed !important;
    top: 20px;
    left: 24px;
    z-index: 1000;
    pointer-events: none;
}

.site-logo img {
    height: 90px;
    width: auto;
    display: block;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
}

.container.wide { max-width: 900px; }

h1 {
    font-size: 1.6rem;
    color: #1a1a2e;
    margin-bottom: 6px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.badge {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    border-radius: 20px;
    padding: 3px 14px;
    font-size: 0.75rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 6px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border 0.2s;
    outline: none;
    color: #222;
}

input:focus {
    border-color: #1a1a2e;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #FF451A;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 6px;
}

.btn:hover { background: #e03a14; }

.btn-danger {
    background: #FF451A;
    width: auto;
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-danger:hover { background: #e03a14; }

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success { background: #e9f7ef; color: #1e8449; border: 1px solid #a9dfbf; }
.alert-error   { background: #fdecea; color: #c0392b; border: 1px solid #f5a9a3; }

.link-login {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    color: #888;
}

.link-login a { color: #1a1a2e; font-weight: 600; text-decoration: none; }
.link-login a:hover { text-decoration: underline; }

/* Panel */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

th {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    color: #333;
}

tr:hover td { background: #f8f9fa; }

.count-badge {
    background: #e8f4fd;
    color: #1a6fa8;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 600;
}

.empty { text-align: center; color: #aaa; padding: 30px 0; }

/* Index */
.index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.15s;
}

.card:hover { transform: translateY(-3px); }

.card h3 { color: #1a1a2e; margin-bottom: 12px; }

.card a {
    display: block;
    margin: 6px 0;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.card a.form-link { background: #1a1a2e; color: #fff; }
.card a.panel-link { background: #f0f2f5; color: #1a1a2e; }

/* Logo en tarjetas index */
.card img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
}

/* === Mobile === */
@media (max-width: 600px) {
    .site-logo {
        position: fixed !important;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .site-logo img {
        height: 60px;
    }

    body {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 0 32px;
        background: #fff;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        margin-top: 80px;
        background: #fff;
    }

    .modal-box {
        padding: 28px 20px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        font-size: 1rem;
        padding: 13px 12px;
    }

    .btn {
        padding: 14px;
        font-size: 1rem;
    }
}
