/* Estilos personalizados MIKAJA */

:root {
    --mikaja-primary: #0056b3;
    --mikaja-secondary: #e9ecef;
    --mikaja-accent: #f8b500;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-mikaja {
    background: linear-gradient(90deg, var(--mikaja-primary) 0%, #003d80 100%);
}

.navbar-brand img {
    border-radius: 4px;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../imagenes/Untitled-1-1-251x300.webp');
    background-size: cover;
    background-position: center 85%;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn-mikaja {
    background-color: var(--mikaja-accent);
    border-color: var(--mikaja-accent);
    color: #212529;
    font-weight: 600;
}

.btn-mikaja:hover {
    background-color: #d49e00;
    border-color: #d49e00;
}

.card-feature {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

footer {
    margin-top: auto;
}

/* Formularios */
.form-label {
    font-weight: 500;
}

.required::after {
    content: " *";
    color: #dc3545;
}

/* Etiquetas de envío */
.label-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border: 2px solid #333;
    background: white;
}

.label-header {
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.label-section {
    margin-bottom: 1rem;
}

.label-section h5 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}

.qr-code canvas, .qr-code img {
    max-width: 150px;
    height: auto;
}

.barcode svg {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.barcode text {
    white-space: nowrap;
}

@page {
    margin: 0;
    size: auto;
}

/* Modo impresión para etiquetas */
@media print {
    body * {
        visibility: hidden;
    }
    .label-printable, .label-printable * {
        visibility: visible;
    }
    .label-printable {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 1cm;
        border: none;
    }
    .no-print {
        display: none !important;
    }
}

/* Admin */
.admin-sidebar {
    min-height: calc(100vh - 56px);
}

.status-badge {
    font-size: 0.85rem;
}

/* Etiqueta internacional */
.int-label-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    border: 2px solid #333;
    background: white;
}

.int-label-header {
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.int-label-logo {
    height: 220px !important;
    width: auto !important;
    max-width: 100%;
}

.int-label-section {
    margin-bottom: 1rem;
}

.int-destination-block {
    max-width: 65%;
}

.int-tracking-code {
    white-space: nowrap;
    word-break: keep-all;
}

.int-label-barcode svg {
    max-width: 60%;
    height: auto;
    margin: 0 auto;
}

.int-label-section h5 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}

.int-qr-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}

.int-qr-wrapper canvas,
.int-qr-wrapper img {
    max-width: 180px;
    height: auto;
}

/* Modo impresión para etiquetas internacionales */
@media print {
    body {
        margin: 0 !important;
        padding: 0 !important;
    }
    nav.navbar, footer {
        display: none !important;
    }
    main.container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .int-label-page {
        position: relative;
        width: 100%;
        margin: 0;
        padding: 1cm;
        border: none;
        page-break-after: always;
        break-after: page;
    }
    .int-label-page:last-child {
        page-break-after: auto;
    }
    .no-print {
        display: none !important;
    }
}
