:root {
    --primary: #fbbf24;
    --success: #22c55e;
    --danger: #ef4444;
    --dark-bg: #020617;
    --card-bg: rgba(30, 41, 59, 0.6);
    --text: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { 
    background: radial-gradient(circle at top, #0f172a 0%, #020617 100%);
    background-attachment: fixed;
    color: var(--text);
    padding-bottom: 180px; /* Espacio para la barra sticky */
}

header {
    padding: 30px 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 3px solid var(--primary);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container { display: flex; align-items: center; gap: 15px; margin-bottom: 5px; }
header h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: 2px; color: var(--text); }
header p { font-size: 0.75rem; opacity: 0.6; letter-spacing: 1px; text-transform: uppercase; }

/* ESCUDO LEGAL ARRIBA A LA DERECHA */
.legal-warning-top {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px 18px;
    border-radius: 12px;
    max-width: 450px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.legal-warning-top i { color: var(--danger); margin-top: 3px; }
.legal-warning-top span { font-size: 0.75rem; line-height: 1.4; color: #cbd5e1; }

.container { max-width: 1100px; margin: 30px auto; padding: 0 15px; }

.market-info {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
}
.market-info strong { color: var(--primary); }
.nota-cursiva { font-style: italic; color: #94a3b8; font-size: 0.85rem; margin-top: 10px; }

.table-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { background: rgba(0,0,0,0.4); padding: 20px; text-align: left; font-size: 0.7rem; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
td { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }

.price-unit { color: var(--success); font-weight: 600; }
input[type="number"] {
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
    color: white; padding: 8px; border-radius: 8px; width: 85px; text-align: center; font-weight: bold;
}

.professional-notes {
    margin-top: 30px; background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--primary); padding: 25px; border-radius: 0 15px 15px 0;
}
.professional-notes h3 { color: var(--primary); font-size: 1rem; margin-bottom: 15px; }
.professional-notes ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.professional-notes li { font-size: 0.85rem; color: #cbd5e1; }

.sticky-quote {
    position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 650px; background: white;
    padding: 15px 30px; border-radius: 25px; box-shadow: 0 25px 50px rgba(0,0,0,0.8); z-index: 1000;
}
.quote-content { display: flex; justify-content: space-between; align-items: center; color: #020617; }
.label { font-size: 0.65rem; font-weight: 800; color: #64748b; display: block; }
.btn-main { background: #020617; color: white; border: none; padding: 14px 24px; border-radius: 14px; font-weight: 800; cursor: pointer; transition: 0.3s; }
.btn-main:hover { background: var(--primary); color: #020617; }

.modal { position: fixed; z-index: 2000; left:0; top:0; width:100%; height:100%; background: rgba(0,0,0,0.96); display: flex; align-items:center; justify-content:center; }
.modal-content { background: white; color: #020617; padding: 40px; border-radius: 35px; width: 90%; max-width: 450px; text-align: center; position: relative; }
.precio-box { background: #f8fafc; padding: 20px; border-radius: 18px; margin: 20px 0; border: 2px dashed #cbd5e1; }
.precio-monto { font-size: 2rem; display: block; color: #020617; }
.btn-pagar { background: var(--success); color: white; border: none; width: 100%; padding: 20px; border-radius: 18px; font-weight: 800; cursor: pointer; font-size: 1.1rem; }
.close { position: absolute; top: 20px; right: 25px; font-size: 30px; cursor: pointer; color: #cbd5e1; }

footer { text-align: center; padding: 50px; opacity: 0.3; font-size: 0.75rem; }

@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: center; }
    .legal-warning-top { max-width: 100%; }
    .quote-content { flex-direction: column; gap: 15px; text-align: center; }
}