/*
  Portal - Soporte IT
  Hoja de estilos global. Estilos comunes + estilos específicos por página,
  organizados en secciones para facilitar el mantenimiento.
*/

@keyframes floatLogo {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.15); opacity: 0.8; }
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    background: #0b2a5e url('/static/img/estadio.jpg') center center / cover no-repeat fixed;
    position: relative;
    color: #0b2a5e;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 42, 94, 0.82);
    z-index: 1;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 34px;
    z-index: 3;
    color: #0b2a5e;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar .brand {
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0b2a5e;
    text-decoration: none;
}

.top-bar .nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.top-bar .nav-links a,
.top-bar .nav-links button {
    color: #0b2a5e;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    font-weight: 600;
    font-family: inherit;
}

.top-bar .nav-links a:hover,
.top-bar .nav-links button:hover {
    color: #e30613;
    text-decoration: underline;
}

.top-bar .logout-form {
    display: inline;
    margin: 0;
}

.brand-logo {
    padding: 0;
    display: inline-block;
    line-height: 0;
}

.brand-logo img {
    max-height: 40px;
    object-fit: contain;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0b2a5e;
    font-size: 14px;
    font-weight: 600;
}

.user-icon {
    width: 22px;
    height: 22px;
    color: #0b2a5e;
    flex-shrink: 0;
}

.content-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 60px;
    position: relative;
    z-index: 2;
}

body.no-topbar .content-wrapper {
    padding: 20px 20px 40px;
}

body.panel-wide .glass-card {
    max-width: 1300px;
}

.glass-card {
    width: 100%;
    max-width: 1100px;
    padding: 34px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 0.6s ease both;
}

.glass-card h1,
.glass-card h2,
.glass-card h3 {
    color: #0b2a5e;
    margin-bottom: 20px;
}

.glass-card h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.glass-card h2 {
    font-size: 20px;
    font-weight: 700;
}

.glass-card p,
.glass-card span,
.glass-card label {
    color: #4a5568;
}

.glass-card label {
    font-weight: 600;
}

.glass-card a {
    color: #e30613;
    text-decoration: none;
    font-weight: 600;
}

.glass-card a:hover {
    text-decoration: underline;
}

.glass-card .portal-btn,
.portal-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 30px;
    border: none;
    background: #0b2a5e;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.glass-card .portal-btn:hover,
.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 42, 94, 0.35);
    background: #e30613;
    color: #fff !important;
}

.glass-card .portal-btn-danger,
.portal-btn-danger {
    background: #e30613;
    color: #fff !important;
}

.glass-card .portal-btn-danger:hover,
.portal-btn-danger:hover {
    background: #b0050f;
    color: #fff !important;
}

/* Botón de tamaño fijo para acciones en tablas (Ver / Cerrar / Anular) */
.btn-sm {
    display: inline-block;
    width: 80px;
    padding: 6px 0;
    border-radius: 30px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff !important;
    cursor: pointer;
    box-sizing: border-box;
    margin-right: 6px;
    background: #0b2a5e;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 42, 94, 0.35);
}

.btn-sm-danger {
    background: #e30613;
}

.btn-sm-danger:hover {
    background: #b0050f;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.portal-table th,
.portal-table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid rgba(11, 42, 94, 0.15);
}

.portal-table th {
    background: #0b2a5e;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-table tr:hover td {
    background: rgba(11, 42, 94, 0.05);
}

.portal-table td {
    font-size: 14px;
    color: #0b2a5e;
}

.portal-form input,
.portal-form select,
.portal-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 30px;
    border: 1px solid rgba(11, 42, 94, 0.25);
    background: rgba(255, 255, 255, 0.7);
    color: #0b2a5e;
    font-size: 14px;
    outline: none;
    margin-bottom: 16px;
    transition: border-color 0.2s, background 0.2s;
}

.portal-form select {
    appearance: none;
    cursor: pointer;
}

.portal-form textarea {
    min-height: 120px;
    resize: vertical;
    border-radius: 16px;
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
    border-color: #1e5bc2;
    background: rgba(255, 255, 255, 0.95);
}

.portal-form input::placeholder,
.portal-form textarea::placeholder {
    color: #6c7a9a;
}

.portal-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: none;
    background: #0b2a5e;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.portal-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 42, 94, 0.35);
    background: #e30613;
}

.errors {
    background: rgba(227, 6, 19, 0.12);
    border: 1px solid rgba(227, 6, 19, 0.35);
    color: #e30613;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}

.errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.logo-float {
    animation: floatLogo 3s ease-in-out infinite;
    display: inline-block;
}

.portal-btn,
.login-btn,
.register-btn {
    position: relative;
    overflow: hidden;
}

.portal-btn::after,
.login-btn::after,
.register-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.4s;
}

.portal-btn:hover::after,
.login-btn:hover::after,
.register-btn:hover::after {
    left: 150%;
}

.portal-table tr {
    transition: background 0.2s;
}

.portal-form input,
.portal-form select,
.portal-form textarea {
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(30, 91, 194, 0.15);
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
        padding: 12px 20px;
    }

    .top-bar .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .content-wrapper {
        padding: 140px 16px 40px;
    }

    body.no-topbar .content-wrapper {
        padding: 20px 16px 30px;
    }

    .glass-card {
        padding: 20px;
    }

    .glass-card h1 {
        font-size: 20px;
    }

    .portal-table th,
    .portal-table td {
        padding: 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .actions-header,
    .panel-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .actions-header .portal-btn,
    .panel-header .portal-btn {
        width: 100%;
        text-align: center;
    }

    .panel-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .panel-row-actions {
        gap: 20px;
    }

    .ticket-detail-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .ticket-detail-actions {
        justify-content: center;
    }

    .detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .detail-label {
        width: auto;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .modal-box {
        padding: 22px 18px;
    }

    .home-title {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 160px 10px 30px;
    }

    body.no-topbar .content-wrapper {
        padding: 16px 10px 24px;
    }

    .glass-card {
        padding: 16px;
        border-radius: 14px;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .kpi-card {
        padding: 14px;
    }

    .kpi-card h2 {
        font-size: 24px;
    }

    .btn-sm {
        width: auto;
        padding: 6px 12px;
        margin-right: 4px;
        margin-bottom: 4px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .home-title {
        font-size: 24px;
    }

    .home-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   PÁGINA: home.html
   ========================================================================== */
.home-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #fff;
    text-align: center;
}

.home-subtitle {
    font-size: 16px;
    color: #dbe9ff;
    margin-bottom: 50px;
    text-align: center;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.portal-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: left;
    color: #0b2a5e;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: #e30613;
}

.portal-card .icon {
    width: 44px;
    height: 44px;
    color: #e30613;
    margin-bottom: 6px;
}

.portal-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.portal-card p {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.portal-card .link-text {
    font-size: 13px;
    color: #e30613;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-area-home {
    text-align: center;
    margin-bottom: 10px;
}

.logo-area-home img {
    max-height: 80px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PÁGINA: lista.html
   ========================================================================== */
.actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.actions-header h1 {
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff !important;
}

.badge-abierto { background: #e30613; }
.badge-proceso { background: #1e5bc2; }
.badge-cerrado { background: #27ae60; }
.badge-anulado { background: #6c7a9a; }

.priority-p1 { color: #e30613; font-weight: 700; }
.priority-p2 { color: #e67e22; font-weight: 700; }
.priority-p3 { color: #1e5bc2; font-weight: 700; }
.priority-p4 { color: #27ae60; font-weight: 700; }

/* Controles de paginación */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
}

.pagination-wrapper a {
    padding: 8px 16px;
    border-radius: 20px;
    background: #0b2a5e;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.pagination-wrapper a:hover {
    background: #e30613;
    text-decoration: none;
}

.pagination-info {
    color: #0b2a5e;
    font-weight: 600;
    font-size: 14px;
}

/* Modales de anular/cerrar ticket */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 480px;
    width: 95%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-box.modal-narrow {
    max-width: 400px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}

.modal-box h2 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #0b2a5e;
}

.modal-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #0b2a5e;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.modal-select,
.modal-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cdd5e0;
    margin-bottom: 14px;
    font-size: 14px;
}

.modal-textarea {
    resize: vertical;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions .btn-flex {
    flex: 1;
    padding: 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    color: #fff;
}

.modal-actions .btn-cancel {
    border: 1px solid #cdd5e0;
    background: #f5f7fa;
    color: #333;
    font-weight: 600;
}

.btn-anular {
    padding: 6px 14px;
    border-radius: 30px;
    border: none;
    background: #e30613;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   PÁGINA: crear.html
   ========================================================================== */
.file-hint {
    color: #6c7a9a;
    font-size: 12px;
}

.file-input {
    border-radius: 10px;
    padding: 8px 12px;
}

/* ==========================================================================
   PÁGINA: dashboard.html
   ========================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    padding: 20px;
    border-radius: 16px;
    color: white;
    text-align: center;
}

.kpi-card h3 {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-card h2 {
    font-size: 32px;
    margin: 0;
    color: #fff;
}

.kpi-total { background: #0b2a5e; }
.kpi-abiertos { background: #e30613; }
.kpi-proceso { background: #1e5bc2; }
.kpi-cerrados { background: #27ae60; }
.kpi-anulados { background: #6c757d; }

.chart-box {
    margin-top: 24px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border-top: 4px solid #0b2a5e;
}

.chart-box canvas {
    max-height: 300px;
}

/* ==========================================================================
   PÁGINA: perfil.html
   ========================================================================== */
.profile-card {
    max-width: 520px;
    margin: 0 auto;
}

.profile-card h1 {
    text-align: center;
    margin-bottom: 28px;
}

.profile-field {
    margin-bottom: 18px;
}

.profile-field label {
    display: block;
    font-size: 12px;
    color: #0b2a5e;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.profile-field .value {
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(11, 42, 94, 0.25);
    color: #0b2a5e;
}

/* ==========================================================================
   PÁGINA: ver_ticket.html
   ========================================================================== */
.ticket-detail {
    max-width: 800px;
    margin: 0 auto;
}

.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.ticket-detail-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 14px;
    color: #0b2a5e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 700;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
}

.detail-label {
    width: 150px;
    font-weight: 600;
    color: #6c7a9a;
    font-size: 13px;
}

.detail-value {
    flex: 1;
    color: #0b2a5e;
    font-size: 14px;
}

.description-box {
    background: #f4f6fb;
    border-left: 4px solid #0b2a5e;
    border-radius: 0 10px 10px 0;
    padding: 16px;
    white-space: pre-wrap;
    line-height: 1.6;
    color: #4a5568;
}

.description-box.description-success {
    border-left-color: #27ae60;
    background: #f0faf4;
    color: #1e7e34;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.image-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #edf0f7;
    background: #fff;
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.image-item img:hover {
    transform: scale(1.05);
}

.no-images {
    color: #6c7a9a;
    font-style: italic;
    font-size: 14px;
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ==========================================================================
   PÁGINAS DE AUTENTICACIÓN: login, registro, recuperar, restablecer
   ========================================================================== */
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 34px;
    text-align: left;
}

.auth-card.auth-card-center {
    text-align: center;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #0b2a5e;
    text-align: center;
}

.auth-card > p {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 24px;
    text-align: center;
}

.auth-logo-area {
    text-align: center;
    margin-bottom: 22px;
}

.auth-logo-area img {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
}

.auth-logo-area.auth-logo-sm img {
    max-width: 160px;
    max-height: 90px;
}

.auth-input-group {
    margin-bottom: 18px;
}

.auth-input-group label {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #0b2a5e;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-group.auth-input-left label {
    text-align: left;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper input,
.auth-input-wrapper select {
    width: 100%;
    padding: 13px 40px 13px 44px;
    border-radius: 30px;
    border: 1px solid rgba(11, 42, 94, 0.25);
    background: rgba(255, 255, 255, 0.7);
    color: #0b2a5e;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.auth-input-wrapper.no-icon input {
    padding: 13px 16px;
}

.auth-input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.auth-input-wrapper input:focus,
.auth-input-wrapper select:focus {
    border-color: #1e5bc2;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(30, 91, 194, 0.15);
}

.auth-input-wrapper input::placeholder {
    color: #6c7a9a;
}

.auth-input-wrapper select option {
    background: #0b2a5e;
    color: #fff;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #0b2a5e;
    pointer-events: none;
}

.auth-toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #0b2a5e;
    cursor: pointer;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 24px;
}

.auth-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0b2a5e;
    cursor: pointer;
}

.auth-options a {
    color: #0b2a5e;
    text-decoration: none;
    font-weight: 600;
}

.auth-options a:hover {
    color: #e30613;
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: none;
    background: #0b2a5e;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 42, 94, 0.35);
    background: #e30613;
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 12px;
    color: #4a5568;
}

.auth-footer a {
    color: #e30613;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer-links {
    margin-top: 20px;
    font-size: 13px;
    color: #4a5568;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-footer-links a {
    color: #0b2a5e;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-links a:hover {
    color: #e30613;
    text-decoration: underline;
}

.auth-hint {
    font-size: 12px;
    color: #6c7a9a;
    margin-top: 10px;
}

.auth-success-box {
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.4);
    color: #1e7e34;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 18px;
}

.auth-token-invalid {
    text-align: center;
    color: #e30613;
    font-size: 14px;
    padding: 20px 0;
}

.auth-rules {
    text-align: left;
    font-size: 12px;
    color: #4a5568;
    margin-bottom: 20px;
    padding-left: 4px;
}

.auth-rules li {
    list-style: disc;
    margin-left: 18px;
    margin-bottom: 4px;
}

/* ---------------------------------------------------------------------- */
/* Panel de administración                                                */
/* ---------------------------------------------------------------------- */

.modal-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cdd5e0;
    margin-bottom: 14px;
    font-size: 14px;
}

.modal-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.modal-checkbox-row input[type="checkbox"] {
    accent-color: #e30613;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.modal-checkbox-row label {
    font-size: 13px;
    color: #0b2a5e;
    font-weight: 600;
    cursor: pointer;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.panel-section {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(11, 42, 94, 0.12);
}

.panel-section-header {
    background: #0b2a5e;
    color: #fff;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-section-body {
    background: rgba(255, 255, 255, 0.6);
}

.panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(11, 42, 94, 0.08);
}

.panel-row:last-child {
    border-bottom: none;
}

.panel-row-name {
    font-weight: 600;
    color: #0b2a5e;
    font-size: 15px;
}

.panel-row-actions {
    display: flex;
    gap: 16px;
}

.panel-row-actions a {
    font-size: 13px;
    font-weight: 600;
    color: #1e5bc2;
    text-decoration: none;
}

.panel-row-actions a:hover {
    color: #e30613;
    text-decoration: underline;
}

.panel-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
