/* Escanear Tesoro - Mobile-first styles */

.escanear-app {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 0;
}

.escanear-app h1 {
    color: #4F2817;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.escanear-seccion {
    margin-bottom: 24px;
    text-align: center;
}

.escanear-seccion h2 {
    color: #4F2817;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.escanear-instruccion {
    color: #6b5a4e;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Login */
.login-guardado {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid #66bb6a;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.login-icono {
    font-size: 1.3rem;
}

#login-address-display {
    font-weight: bold;
    color: #2e7d32;
    word-break: break-all;
    font-size: 0.95rem;
}

.login-formulario {
    margin-bottom: 12px;
}

.input-grupo {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.input-grupo input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #CB6015;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #4F2817;
}

.input-grupo input:focus {
    outline: none;
    border-color: #FE9000;
    box-shadow: 0 0 0 3px rgba(254, 144, 0, 0.2);
}

.login-estado {
    font-size: 0.85rem;
    min-height: 20px;
}

.login-estado.ok { color: #2e7d32; }
.login-estado.error { color: #c62828; }
.login-estado.cargando { color: #e65100; }

/* Botones */
.btn-primario {
    background: linear-gradient(135deg, #FE9000, #CB6015);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.1s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primario:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(203, 96, 21, 0.4);
}

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

.btn-secundario {
    background: transparent;
    color: #CB6015;
    border: 2px solid #CB6015;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secundario:hover {
    background: rgba(203, 96, 21, 0.08);
}

.btn-text {
    background: none;
    border: none;
    color: #CB6015;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 4px;
}

.btn-grande {
    padding: 14px 32px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.btn-scanner {
    width: 100%;
    max-width: 320px;
    margin: 10px auto;
}

/* QR Reader */
.qr-reader {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 16px;
    border-radius: 12px;
    overflow: hidden;
}

.qr-reader video {
    border-radius: 12px;
}

/* Resultado */
.resultado-card {
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    border: 2px solid #FE9000;
    border-radius: 12px;
    padding: 24px 20px;
}

.resultado-nombre {
    font-size: 1.15rem;
    font-weight: bold;
    color: #4F2817;
    margin: 12px 0 4px;
    line-height: 1.3;
}

.resultado-aventura {
    color: #6b5a4e;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.resultado-monto {
    font-size: 1.1rem;
    color: #e65100;
    margin-bottom: 20px;
}

.resultado-card .btn-primario {
    margin-bottom: 10px;
    width: 100%;
    max-width: 280px;
}

.resultado-card .btn-secundario {
    width: 100%;
    max-width: 280px;
}

/* Pago */
.pago-qr {
    display: flex;
    justify-content: center;
    margin: 16px auto;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0d5c9;
    width: fit-content;
}

.pago-bolt11-container {
    margin: 12px 0;
}

.pago-estado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: #fff8e1;
    border-radius: 8px;
    color: #e65100;
    font-size: 0.9rem;
    margin-top: 16px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #fce4bc;
    border-top-color: #FE9000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Éxito */
.exito-card {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid #66bb6a;
    border-radius: 12px;
    padding: 30px 20px;
}

.exito-icono {
    font-size: 3rem;
    margin-bottom: 8px;
}

.exito-card h2 {
    color: #2e7d32;
    margin-bottom: 8px;
}

.exito-cache {
    font-weight: bold;
    color: #1b5e20;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.exito-mensaje {
    color: #388e3c;
    margin-bottom: 20px;
}

.exito-acciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.exito-acciones .btn-primario,
.exito-acciones .btn-secundario {
    width: 100%;
    max-width: 280px;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .escanear-app {
        padding: 5px 0;
    }

    .escanear-app h1 {
        font-size: 1.3rem;
    }

    .input-grupo {
        flex-direction: column;
    }

    .input-grupo input,
    .input-grupo button {
        width: 100%;
    }
}
