/* Cabecera Ministerio de Bienes Nacionales */
.header-mbn {
    background-color: #28358b;
    padding: 8px 0;
    width: 100%;
}

.header-mbn .contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 15px;
}

.header-mbn img {
    height: 70px;
    max-width: 100%;
}

.header-mbn span {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.header-mbn .titulo-header {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Estilos generales */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Logo del gobierno */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-gobierno {
    max-width: 150px;
    height: auto;
}

/* Título principal */
.titulo-principal {
    color: #1a3a5c;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Tarjeta de búsqueda */
.busqueda-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.busqueda-card .card-body {
    padding: 2rem;
}

/* Botón de búsqueda */
.btn-buscar {
    background-color: #28358b;
    border-color: #28358b;
    padding: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-buscar:hover {
    background-color: #3546a8;
    border-color: #3546a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-buscar:active {
    transform: translateY(0);
}

/* Tarjeta de resultados */
.resultado-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.resultado-card .card-header {
    background-color: #28358b;
    color: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
}

.resultado-card .card-body {
    padding: 1.5rem;
}

/* Estilos para los resultados */
.resultado-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.resultado-item:last-child {
    border-bottom: none;
}

.resultado-label {
    font-weight: 600;
    color: #1a3a5c;
}

.resultado-valor {
    color: #495057;
}

/* Opciones de medio de devolución */
.opcion-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.opcion-medio {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.opcion-medio::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.opcion-radio:checked + .opcion-medio {
    border-color: #28358b;
    background-color: #eef1fb;
}

.opcion-radio:checked + .opcion-medio::before {
    border-color: #28358b;
    box-shadow: inset 0 0 0 4px #ffffff;
    background-color: #28358b;
}

.opcion-medio:hover {
    border-color: #8a94c8;
}

.opcion-icono {
    width: 30px;
    height: 30px;
    color: #28358b;
    flex-shrink: 0;
}

.opcion-texto {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.opcion-titulo {
    font-weight: 700;
    color: #1a3a5c;
}

.opcion-detalle {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Datos para la transferencia */
.datos-transferencia {
    background-color: #f1f3f9;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.datos-transferencia-titulo {
    font-weight: 700;
    color: #28358b;
    margin-bottom: 0.75rem;
}

/* Boucher de devolución */
.boucher-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    overflow: hidden;
}

.boucher-header {
    background-color: #28358b;
    color: #ffffff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.boucher-logo {
    height: 55px;
    max-width: 160px;
}

.boucher-header-texto {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.boucher-titulo {
    font-weight: 700;
    font-size: 1.05rem;
}

.boucher-folio {
    font-size: 0.85rem;
    opacity: 0.9;
}

.boucher-monto {
    background-color: #d4edda;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.boucher-monto-label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 4px;
}

.boucher-monto-valor {
    font-size: 1.8rem;
    font-weight: 700;
    color: #155724;
}

.boucher-nota {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .titulo-principal {
        font-size: 1.5rem;
    }
    
    .logo-gobierno {
        max-width: 100px;
    }
    
    .busqueda-card .card-body {
        padding: 1.5rem;
    }

    .header-mbn img {
        height: 55px;
    }

    .header-mbn span {
        font-size: 13px;
    }

    .header-mbn .titulo-header {
        font-size: 1.15rem;
    }

    .resultado-item .row > div {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .titulo-principal {
        font-size: 1.25rem;
    }
    
    .busqueda-card .card-body {
        padding: 1rem;
    }

    .header-mbn {
        padding: 10px 0;
    }

    .header-mbn img {
        height: 45px;
    }

    .header-mbn span {
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .header-mbn .titulo-header {
        font-size: 0.95rem;
    }

    .resultado-card .card-header {
        padding: 0.75rem 1rem;
    }

    .resultado-card .card-body {
        padding: 1rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Impresión: solo el boucher es visible */
@media print {
    body * {
        visibility: hidden;
    }

    #boucher,
    #boucher * {
        visibility: visible;
    }

    #boucher {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .boucher-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .no-print {
        display: none !important;
    }
}

/* Medio de devolución informado (definido por la administración) */
.medio-info {
    cursor: default;
    border-color: #28358b;
    background-color: #eef1fb;
}

.medio-info::before {
    display: none;
}

.medio-info:hover {
    border-color: #28358b;
}

.medio-info.medio-pendiente {
    border-color: #dee2e6;
    background-color: #f8f9fa;
}

.estado-pago {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 12px;
    font-weight: 600;
}

.estado-pago.pagado {
    background-color: #d4edda;
    color: #155724;
}

.estado-pago.no-pagado {
    background-color: #fff3cd;
    color: #856404;
}

.estado-pago small {
    font-weight: 400;
}
