/* Bubols · Calculadora de rentabilidad. Spec: diseño.pen "16-Calculadora-Desktop" (Calculadora). */
.elementor-widget-bubols-profit-calculator { width: 100%; }
.bpc { --bpc-navy: #1D2847; --bpc-green: #7BA32A; --bpc-yellow: #FDD743; --bpc-cream: #FFFFFF; --bpc-line: #E3E7F0; --bpc-text: #3D476B; --bpc-radius: 26px; box-sizing: border-box; display: flex; gap: 32px; align-items: stretch; width: 100%; font-family: Nunito, system-ui, sans-serif; color: var(--bpc-navy); }
.bpc *, .bpc *::before, .bpc *::after { box-sizing: border-box; }
.bpc button, .bpc select, .bpc input { font-family: inherit; }
.bpc__config { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 30px; background: var(--bpc-cream); border: 1.5px solid var(--bpc-line); border-radius: var(--bpc-radius); }
.bpc__results { flex: 0 0 460px; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--bpc-navy); border-radius: var(--bpc-radius); color: #fff; }
.bpc .bpc__label { margin: 0; font: 900 12px/16px Nunito, system-ui, sans-serif; letter-spacing: .8px; text-transform: uppercase; color: #5A628A; }
.bpc .bpc__label--green { color: var(--bpc-green); }
.bpc .bpc__label--light { color: #C3CBE8; letter-spacing: .6px; }
.bpc__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.bpc .bpc__preset { padding: 9px 17px; border: 1.5px solid var(--bpc-navy); border-radius: 999px; background: transparent; color: var(--bpc-navy); font: 800 13px/18px Nunito, system-ui, sans-serif; cursor: pointer; transition: background-color .15s, color .15s; }
.bpc .bpc__preset.is-on, .bpc .bpc__preset:hover { background: var(--bpc-navy); color: #fff; }
.bpc .bpc__hint { margin: 0; font: 700 13.5px/1.5 Nunito, system-ui, sans-serif; color: var(--bpc-text); min-height: 20px; }
.bpc__rows { display: flex; flex-direction: column; gap: 8px; }
.bpc__row { display: flex; flex-direction: column; gap: 9px; padding: 13px 16px; background: #fff; border: 1.5px solid var(--bpc-line); border-radius: 16px; transition: border-color .18s; }
.bpc__row.is-on { border-color: var(--bpc-navy); }
.bpc__rowhead { display: flex; align-items: center; gap: 10px; }
.bpc__check { position: relative; display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.bpc__check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.bpc__box { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid #C9CEDE; border-radius: 7px; background: #fff; transition: background-color .15s, border-color .15s; }
.bpc__check input:checked + .bpc__box { border-color: var(--bpc-green); background: var(--bpc-green); }
.bpc__check input:checked + .bpc__box::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.bpc__check input:focus-visible + .bpc__box { outline: 2px solid var(--bpc-navy); outline-offset: 2px; }
.bpc__name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bpc__name strong { font: 900 14.5px/20px Nunito, system-ui, sans-serif; color: var(--bpc-navy); }
.bpc__name small { font: 700 12px/16px Nunito, system-ui, sans-serif; color: #8A8FA3; }
.bpc__cost { flex: none; font: 900 14px/19px Nunito, system-ui, sans-serif; color: #8A8FA3; text-align: right; }
.bpc__row.is-on .bpc__cost { color: var(--bpc-navy); }
.bpc .bpc__select { width: 100%; padding: 9px 36px 9px 13px; border: 1.5px solid var(--bpc-line); border-radius: 12px; background: var(--bpc-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2847' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 15px; color: var(--bpc-navy); font: 800 13.5px/18px Nunito, system-ui, sans-serif; appearance: none; -webkit-appearance: none; }
.bpc .bpc__select[hidden] { display: none; }
.bpc .bpc__price { width: 100%; padding: 13px 16px; border: 1.5px solid rgba(255, 255, 255, .24); border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; font: 900 20px/27px Nunito, system-ui, sans-serif; }
.bpc .bpc__price:focus-visible { outline: 2px solid var(--bpc-yellow); outline-offset: 2px; }
.bpc__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bpc .bpc__metric { display: flex; flex-direction: column; gap: 4px; padding: 15px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.bpc__metric span { font: 800 11.5px/14px Nunito, system-ui, sans-serif; letter-spacing: .4px; text-transform: uppercase; color: #C3CBE8; }
.bpc__metric b { font: 900 23px/28px Nunito, system-ui, sans-serif; color: #fff; overflow-wrap: anywhere; }
.bpc__metric--accent b, .bpc__metric--green b { color: var(--bpc-yellow); }
.bpc__metric--green { background: var(--bpc-green); }
.bpc__metric--soft b { color: #B7DC6B; }
.bpc .bpc__yield { margin: 0; font: 800 14px/1.45 Nunito, system-ui, sans-serif; color: #fff; }
.bpc .bpc__note { margin: 0; font: 600 12px/1.5 Nunito, system-ui, sans-serif; color: #C3CBE8; }
.bpc__actions { display: flex; flex-direction: column; gap: 9px; padding-top: 6px; }
.bpc__row2 { display: flex; gap: 9px; }
.bpc__row2 > * { flex: 1; }
.bpc .bpc__btn { display: flex; align-items: center; justify-content: center; padding: 12px 14px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 999px; background: transparent; color: #fff; font: 900 14.5px/20px Nunito, system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; transition: filter .15s; }
.bpc .bpc__btn:hover { filter: brightness(.94); color: inherit; }
.bpc .bpc__btn[hidden] { display: none; }
.bpc .bpc__btn--yellow { padding: 14px 20px; border-color: var(--bpc-yellow); background: var(--bpc-yellow); color: var(--bpc-navy); }
.bpc .bpc__btn--yellow:hover { color: var(--bpc-navy); }
.bpc .bpc__btn--wa { border-color: #25D366; background: #25D366; color: #fff; }
.bpc .bpc__btn--wa:hover { color: #fff; }
.bpc .bpc__btn:disabled { opacity: .6; cursor: progress; }
.bpc .bpc__msg { margin: 0; min-height: 0; font: 700 13px/1.4 Nunito, system-ui, sans-serif; color: #B7DC6B; }
.bpc :focus-visible { outline: 2px solid var(--bpc-yellow); outline-offset: 2px; }

/* Empty state (nothing configured) */
.bpc--empty { display: block; padding: 24px; border: 1.5px dashed var(--bpc-line); border-radius: 16px; background: var(--bpc-cream); text-align: center; }
.bpc--empty p { margin: 0; font-weight: 800; color: var(--bpc-navy); } .bpc--empty small { display: block; margin-top: 6px; font-weight: 600; color: var(--bpc-text); }

/* Compact layout (home section): a single white card, light result tiles */
.bpc--compact { display: block; padding: clamp(22px, 3vw, 32px); background: #fff; border-radius: var(--bpc-radius); box-shadow: 0 14px 44px rgba(29, 40, 71, .1); }
.bpc--compact .bpc__config { padding: 0; background: transparent; border: 0; border-radius: 0; }
.bpc--compact .bpc__results { flex: none; padding: 18px 0 0; background: transparent; color: var(--bpc-navy); }
.bpc--compact .bpc__label--light { color: #5A628A; }
.bpc--compact .bpc__price { border: 2px solid var(--bpc-line); background: var(--bpc-cream); color: var(--bpc-navy); }
.bpc--compact .bpc .bpc__metric, .bpc--compact .bpc__metric { background: var(--bpc-cream); }
.bpc--compact .bpc__metric span { color: #5A628A; } .bpc--compact .bpc__metric b { color: var(--bpc-navy); font-size: 21px; }
.bpc--compact .bpc__metric--accent b, .bpc--compact .bpc__metric--soft b { color: var(--bpc-green); }
.bpc--compact .bpc__metric--green { background: var(--bpc-navy); } .bpc--compact .bpc__metric--green span { color: #C3CBE8; } .bpc--compact .bpc__metric--green b { color: var(--bpc-yellow); }
.bpc--compact .bpc__yield { padding: 12px 16px; border-radius: 16px; background: #F4F7E2; color: var(--bpc-navy); }
.bpc--compact .bpc__note { color: #8A8FA3; }
.bpc--compact .bpc .bpc__btn--ghost, .bpc--compact .bpc__btn--ghost { border-color: var(--bpc-navy); color: var(--bpc-navy); }
.bpc--compact .bpc__msg { color: var(--bpc-green); }

/* Case cards: computed server-side with the same maths */
.bpc-cases { margin-top: 48px; font-family: Nunito, system-ui, sans-serif; color: var(--bpc-navy, #1D2847); }
.bpc-cases h2 { margin: 0 0 8px; font: 900 clamp(24px, 3vw, 34px)/1.15 Nunito, system-ui, sans-serif; }
.bpc-cases__intro { margin: 0 0 24px; font: 600 15px/1.6 Nunito, system-ui, sans-serif; color: var(--bpc-text, #3D476B); }
.bpc-cases__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.bpc__case { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff; border: 1.5px solid var(--bpc-line, #E3E7F0); border-radius: 20px; }
.bpc__case h3 { margin: 0; font: 900 18px/1.25 Nunito, system-ui, sans-serif; color: var(--bpc-navy, #1D2847); }
.bpc__case > p { margin: 0; font: 600 13.5px/1.5 Nunito, system-ui, sans-serif; color: var(--bpc-text, #3D476B); }
.bpc__case-items { margin: 0; padding-left: 18px; font: 700 12.5px/1.6 Nunito, system-ui, sans-serif; color: #8A8FA3; }
.bpc__case dl { display: grid; gap: 6px; margin: auto 0 0; padding-top: 12px; border-top: 1.5px solid var(--bpc-line, #E3E7F0); }
.bpc__case dl > div { display: flex; justify-content: space-between; gap: 10px; }
.bpc__case dt { font: 700 13px/1.4 Nunito, system-ui, sans-serif; color: #5A628A; } .bpc__case dd { margin: 0; font: 900 14px/1.4 Nunito, system-ui, sans-serif; color: var(--bpc-navy, #1D2847); }
.bpc__case dl > div:nth-last-child(2) dd { color: var(--bpc-green, #7BA32A); }

@media (max-width: 1023px) { .bpc:not(.bpc--compact) { flex-direction: column; } .bpc__results { flex-basis: auto; } }
@media (max-width: 767px) { .bpc__config, .bpc__results { padding: 20px; } .bpc__row2 { flex-direction: column; } .bpc__metric b { font-size: 20px; } .bpc__rowhead { align-items: flex-start; } }
/* Impresión: hoja propia con el resultado (ver printSheet() en profit-calculator.js); no depende del ancho de la pantalla. */
.bpc-print-sheet { display: none; }
@media print {
	body.bpc-printing > *:not(.bpc-print-sheet) { display: none !important; }
	body.bpc-printing { background: #fff !important; }
	.bpc-print-sheet { display: block; box-sizing: border-box; width: 100%; max-width: 720px; margin: 0 auto; padding: 8mm 0; color: #1D2847; font: 400 12pt/1.4 Nunito, Arial, sans-serif; }
	.bpc-print-sheet header { border-bottom: 3px solid #FDD743; margin-bottom: 8mm; padding-bottom: 4mm; }
	.bpc-print-sheet h1 { margin: 0 0 2mm; font: 900 22pt/1.1 Nunito, Arial, sans-serif; }
	.bpc-print-sheet header p { margin: 0; color: #5A628A; font-size: 11pt; }
	.bpc-print-sheet h2 { margin: 7mm 0 3mm; font: 900 11pt/1.2 Nunito, Arial, sans-serif; letter-spacing: .6px; text-transform: uppercase; color: #5A628A; }
	.bpc-print-sheet table { width: 100%; border-collapse: collapse; }
	.bpc-print-sheet th { text-align: left; padding: 2mm 3mm; border-bottom: 2px solid #1D2847; font-size: 10pt; }
	.bpc-print-sheet td { padding: 3mm; border-bottom: 1px solid #D9D9E3; vertical-align: top; }
	.bpc-print-sheet td small { display: block; color: #5A628A; font-size: 10pt; }
	.bpc-print-sheet .n { text-align: right; white-space: nowrap; }
	.bpc-print-sheet .price { margin: 0; font: 900 20pt/1.1 Nunito, Arial, sans-serif; }
	.bpc-print-sheet .metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3mm; }
	.bpc-print-sheet .metrics > div { border: 1.5px solid #1D2847; border-radius: 3mm; padding: 3mm 4mm; break-inside: avoid; }
	.bpc-print-sheet .metrics span { display: block; color: #5A628A; font-size: 9.5pt; font-weight: 800; text-transform: uppercase; }
	.bpc-print-sheet .metrics b { display: block; font: 900 16pt/1.2 Nunito, Arial, sans-serif; }
	.bpc-print-sheet .note { margin: 4mm 0 0; color: #3D476B; font-size: 10pt; }
	.bpc-print-sheet footer { margin-top: 10mm; padding-top: 3mm; border-top: 1px solid #D9D9E3; color: #5A628A; font-size: 10pt; }
}

/* Tamaño del vaso (16 / 9 oz) */
.bpc__cups { display: flex; gap: 10px; margin: 0 0 18px; }
.bpc__cup { position: relative; cursor: pointer; }
.bpc__cup input { position: absolute; opacity: 0; pointer-events: none; }
.bpc__cup span { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; padding: 10px 20px; border: 2px solid #1D2847; border-radius: 999px; background: #FFFFFF; color: #1D2847; font: 800 15px/1 Nunito, system-ui, sans-serif; transition: background-color .15s, color .15s; }
.bpc__cup input:checked + span { background: #1D2847; color: #FFFFFF; }
.bpc__cup input:focus-visible + span { outline: 2px solid #FDD743; outline-offset: 2px; }
