/* =========================================
   AYUR OM FINTECH - ESTILOS MAESTROS
   ========================================= */

/* CONTENEDOR PRINCIPAL */
.ayr-fin-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #1d1d1f;
}

/* --- 1. HEADER DE BILLETERA --- */
.ayr-wallet-header {
    background: #1d1d1f;
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.ayr-wallet-header .label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.ayr-wallet-header .amount {
    font-size: 3.5rem;
    margin: 10px 0 25px;
    color: #C5A059;
    font-weight: 700;
}

.ayr-wallet-header .currency {
    font-size: 1rem;
    color: #fff;
    font-weight: normal;
}

.wallet-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-action {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-action.deposit { background: #C5A059; color: #fff; }
.btn-action.deposit:hover { background: #b08d48; transform: translateY(-2px); }

.btn-action.withdraw { background: transparent; border: 2px solid #C5A059; color: #C5A059; }
.btn-action.withdraw:hover { background: #C5A059; color: #fff; }

/* --- 2. NAVEGACIÓN (TABS) --- */
.ayr-fin-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}

.fin-tab {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.fin-tab:hover { color: #1d1d1f; }

.fin-tab.active {
    color: #C5A059;
    border-bottom-color: #C5A059;
}

.fin-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.fin-tab-content.active { display: block; }

/* --- 3. MERCADO (TIENDA) --- */
.market-section { margin-bottom: 50px; }

.cat-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 4px solid #C5A059;
    padding-left: 15px;
    font-weight: 700;
}

.high-risk-zone {
    background: #fff5f5;
    padding: 30px;
    border-radius: 15px;
    border: 1px dashed #dc3545;
}

.risk-badge {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Grid de Productos */
.ayr-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.ayr-product-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s;
    position: relative;
}

.ayr-product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: #C5A059; }

.card-header h4 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 700; }

.roi-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: #e6f4ea; color: #1e7e34;
    padding: 4px 8px; border-radius: 6px;
    font-size: 12px; font-weight: bold;
}

.card-body .stat {
    display: flex; justify-content: space-between;
    margin: 8px 0; font-size: 14px; color: #555;
}

.btn-invest {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-invest:hover { background: #C5A059; }

/* --- 4. HISTORIAL --- */
.ayr-history-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.ayr-history-table th {
    background: #f9f9f9;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #eee;
}

.ayr-history-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

/* --- 5. MODAL --- */
.ayr-modal {
    display: none; /* Oculto por defecto */
    position: fixed; z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}

.ayr-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 24px; cursor: pointer;
    color: #999;
}

.ayr-form-group { margin-bottom: 15px; }
.ayr-form-group label { display: block; font-weight: 600; margin-bottom: 5px; }
.ayr-form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; }

.ayr-btn-gold.full {
    width: 100%; background: #C5A059; color: #fff;
    padding: 15px; border: none; border-radius: 8px;
    font-weight: bold; cursor: pointer;
}

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

/* Impresión */
@media print {
    .ayr-wallet-header, .ayr-fin-tabs, .btn-print, .btn-invest { display: none !important; }
    body { background: #fff; }
    .ayr-fin-wrapper { box-shadow: none; border: none; padding: 0; max-width: 100%; }
    .ayr-history-table { border: 1px solid #000; }
}


/* Estilos Menú */
.ayr-menu-profile { display: inline-flex; align-items: center; background: #f5f5f7; padding: 8px 15px; border-radius: 50px; font-size: 14px; border: 1px solid #ddd; }
.ayr-menu-balance { color: #C5A059; font-weight: 800; margin-right: 8px; }
.ayr-menu-login-btn { background: #C5A059; color: #fff !important; padding: 8px 20px; border-radius: 50px; font-weight: 600; text-decoration: none; }
.ayr-menu-login-btn:hover { background: #1d1d1f; }