/* Fuente Outfit — alojada localmente (sin dependencia de internet) */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/outfit-300.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/outfit-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/outfit-500.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/outfit-600.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/outfit-700.ttf') format('truetype');
}

/* Variables de Diseño */
:root {
    --primary: #FF6B00;       /* Naranja Shalom vibrante */
    --primary-hover: #E05E00; /* Naranja más oscuro para hover */
    --secondary: #0F172A;     /* Slate / Azul marino oscuro */
    --secondary-light: #1E293B;
    --accent: #3B82F6;        /* Azul eléctrico para acentos */
    --accent-light: #EFF6FF;
    --background: #F8FAFC;    /* Fondo muy claro y limpio */
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --success: #10B981;       /* Verde para estados completados */
    --warning: #F59E0B;       /* Amarillo para estados en tránsito */
    --danger: #EF4444;        /* Rojo para cancelados/problemas */
    
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* Forzar herencia de fuente en elementos de formulario
   (los navegadores aplican su propio font al button/input/select
   ignorando el selector *, por eso hay que declararlo explícitamente) */
button, input, select, textarea, optgroup {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Admin body — full-viewport mode, no flex column */
body.admin-body {
    display: block;
    background: #f1f5f9;
    overflow-x: hidden;
}

/* Enlaces */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Header de la Aplicación */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    /* El contenido de la barra se alinea con el de la página (main: 1200px
       con 24px de relleno): en monitores anchos el logo queda sobre el
       título y los botones sobre el borde derecho, no pegados a la pantalla. */
    padding: 0.85rem max(2rem, calc((100% - 1200px) / 2 + 24px));
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.5);
    animation: pulse 2s infinite;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    /* Siempre pegados a la derecha, aunque aparezca otro elemento en la barra */
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
}
.nav-link:hover { color: #fff; }

.nav-link svg, .nav-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(255, 107, 0, 0.2);
}

.nav-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 0, 0.3);
}

/* Botón de menú (☰): solo en celular. En computadora se oculta con
   !important para que ninguna otra regla lo haga aparecer como un
   "punto" a la derecha que empuje los botones al centro de la barra. */
@media (min-width: 769px) {
    .navbar .nav-hamburger { display: none !important; }
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Contenedor Principal */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Tarjeta Principal y Layout */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Buscador de Encomiendas */
.search-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    position: relative;
    overflow: hidden;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.search-input-group {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.btn-search {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.btn-search:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.4);
}

/* Timeline / Historial de Tracking */
.tracking-result-container {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.result-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tracking-id {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

.tracking-status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.status-registrado { background-color: #E2E8F0; color: #475569; }
.status-en-transito { background-color: #FEF3C7; color: #D97706; }
.status-en-sede { background-color: #DBEAFE; color: #2563EB; }
.status-entregado { background-color: #D1FAE5; color: #059669; }
.status-problema { background-color: #FEE2E2; color: #DC2626; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    background: var(--background);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    color: var(--secondary);
}

/* Línea de tiempo (Timeline) */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 9px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -47px;
    top: 0px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    z-index: 2;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.timeline-item.active .timeline-icon {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.6);
}

.timeline-item.completed .timeline-icon {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.timeline-content {
    background: var(--background);
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    transition: var(--transition);
}

.timeline-item.active .timeline-content {
    border-left-color: var(--primary);
    background: #FFFDF9;
    box-shadow: var(--shadow-sm);
}

.timeline-item.completed .timeline-content {
    border-left-color: var(--success);
}

.timeline-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: auto;
    border-top: 4px solid var(--primary);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* --- ESTILOS DE ADMINISTRACIÓN (LOGIN Y DASHBOARD) --- */

/* Login Card */
.login-container {
    max-width: 450px;
    margin: 4rem auto;
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.btn-block {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(255, 107, 0, 0.2);
    transition: var(--transition);
}

.btn-block:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Dashboard Layout — ahora manejado por .admin-layout y .admin-main en sidebar.php */

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--background);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Tablas */
.table-responsive {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    background: var(--background);
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.table tr:hover {
    background: rgba(248, 250, 252, 0.5);
}

/* Acciones rápidas / Botones */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--background);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-action:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(255, 107, 0, 0.15);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--text-muted);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--secondary);
}

/* Alertas flotantes y notificaciones */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 107, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

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

/* Responsive */
@media (max-width: 768px) {
    /* Navbar responsive */
    .nav-hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.5rem;
        border-bottom: 2px solid var(--primary);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .nav-btn {
        text-align: center;
        width: 100%;
        padding: 0.75rem;
        justify-content: center;
    }
    .navbar {
        position: relative;
    }
    /* Search form responsive */
    .search-form {
        flex-direction: column;
    }
    .btn-search {
        padding: 1rem;
        justify-content: center;
    }
    .search-card {
        padding: 1.5rem;
    }
    main {
        padding: 1.5rem 1rem;
    }
}

/* Barra de progreso de Rastreo */
.tracking-progress-container {
    position: relative;
    margin: 2rem 0;
    padding: 0 1rem;
}

.progress-line-bg {
    position: absolute;
    top: 24px;
    left: 3rem;
    right: 3rem;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    z-index: 1;
}

.progress-line-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 3px;
    transition: width 0.8s ease-in-out;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 6rem;
}

.step-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.step-icon-wrapper i {
    width: 22px;
    height: 22px;
}

.progress-step.completed .step-icon-wrapper {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.4);
}

.progress-step.current .step-icon-wrapper {
    animation: pulse-step 2s infinite;
}

@keyframes pulse-step {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.progress-step.completed .step-label {
    color: var(--secondary);
}

.progress-step.current .step-label {
    color: var(--primary);
    font-weight: 700;
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 576px) {
    .progress-line-bg {
        left: 2rem;
        right: 2rem;
    }
    .step-icon-wrapper {
        width: 38px;
        height: 38px;
    }
    .step-icon-wrapper i {
        width: 18px;
        height: 18px;
    }
    .step-label {
        font-size: 0.75rem;
    }
}

/* ================================================
   SISTEMA DE MODALES PERSONALIZADOS
   Reemplaza alert() y confirm() nativos
================================================ */

/* Overlay oscuro */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.modal-visible {
    opacity: 1;
    visibility: visible;
}

/* Caja del modal */
.modal-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 420px;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.modal-visible .modal-box {
    transform: scale(1) translateY(0);
}

/* Franja de color superior */
.modal-stripe {
    height: 5px;
    width: 100%;
}
.modal-stripe--info    { background: var(--accent); }
.modal-stripe--confirm { background: var(--warning); }
.modal-stripe--danger  { background: var(--danger); }
.modal-stripe--success { background: var(--success); }

/* Cuerpo */
.modal-body {
    padding: 2rem 2rem 1.5rem 2rem;
    text-align: center;
}

/* Icono central */
.modal-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
}
.modal-icon-wrap i { width: 28px; height: 28px; }

.modal-icon-wrap--info    { background: #EFF6FF; color: var(--accent); }
.modal-icon-wrap--confirm { background: #FFFBEB; color: var(--warning); }
.modal-icon-wrap--danger  { background: #FEF2F2; color: var(--danger); }
.modal-icon-wrap--success { background: #ECFDF5; color: var(--success); }

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.6rem;
}

.modal-message {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Pie de botones */
.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 2rem 1.75rem 2rem;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    max-width: 160px;
    padding: 0.65rem 1.25rem;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.modal-btn i { width: 16px; height: 16px; }

.modal-btn--cancel {
    background: var(--background);
    color: var(--text-muted);
    border: 1.5px solid var(--border-color);
}
.modal-btn--cancel:hover {
    background: #e2e8f0;
    color: var(--secondary);
}

.modal-btn--ok {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59,130,246,0.25);
}
.modal-btn--ok:hover {
    background: #2563EB;
    transform: translateY(-1px);
}

.modal-btn--confirm {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,107,0,0.25);
}
.modal-btn--confirm:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.modal-btn--danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239,68,68,0.25);
}
.modal-btn--danger:hover {
    background: #DC2626;
    transform: translateY(-1px);
}

/* Solo un botón (alert) → centrado */
.modal-footer--single {
    justify-content: center;
}
.modal-footer--single .modal-btn {
    max-width: 200px;
}

@media (max-width: 480px) {
    .modal-box { border-radius: 12px; }
    .modal-body { padding: 1.5rem 1.25rem 1rem 1.25rem; }
    .modal-footer { padding: 1rem 1.25rem 1.5rem 1.25rem; flex-direction: column-reverse; }
    .modal-btn { max-width: 100%; }
}
