/* Calculadora de material — paleta de la cabecera (crema / espresso / oro / marrón). */
.fwp-calc-wrap { padding: 0 20px; }
.fwp-calc {
	--c-cream: #f6eee3; --c-sand: #e8d3ae; --c-ink: #1d1a17; --c-text: #3a332d; --c-mute: #8c8379;
	--c-gold: #c79a52; --c-brown: #8a6a3e; --c-brown2: #a5834c; --c-orange: #d38d35; --c-line: rgba(138, 106, 62, .18);
	box-sizing: border-box; max-width: 1240px; margin: 8px auto 32px; padding: clamp(20px, 3vw, 34px);
	background: radial-gradient(520px 280px at 100% 0%, rgba(211, 141, 53, .10), transparent 65%), var(--c-cream);
	border: 1px solid var(--c-line); border-radius: 28px; box-shadow: 0 30px 60px -38px rgba(40, 25, 8, .45);
	font-family: 'Inter', sans-serif; color: var(--c-text);
}
.fwp-calc *, .fwp-calc *::before, .fwp-calc *::after { box-sizing: border-box; }

.fwp-calc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.fwp-calc__kicker { margin-bottom: 6px; color: var(--c-brown); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.fwp-calc__title { margin: 0; color: var(--c-ink); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.fwp-calc__title em { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600; color: var(--c-brown); }
.fwp-calc__sku { flex: none; padding: 10px 16px; border: 1px solid var(--c-line); border-radius: 14px; background: #fff; text-align: right; }
.fwp-calc__sku span { display: block; margin-bottom: 3px; color: var(--c-mute); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.fwp-calc__sku strong { color: var(--c-ink); font-size: 13px; word-break: break-all; }

.fwp-calc__main { display: grid; grid-template-columns: minmax(300px, 1.1fr) minmax(280px, 1fr); gap: 28px; align-items: center; }

.fwp-calc__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 380px; margin-bottom: 14px; padding: 4px; border-radius: 999px; background: #e9dccb; }
.fwp-calc .fwp-calc__tabs button {
	height: 38px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--c-text);
	font: 600 12.5px 'Inter', sans-serif; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s;
}
.fwp-calc .fwp-calc__tabs button.is-active { background: var(--c-ink); color: #fff; box-shadow: 0 8px 16px -8px rgba(29, 26, 23, .6); }
.fwp-calc .fwp-calc__tabs button:not(.is-active):hover { background: rgba(255, 255, 255, .6); }

.fwp-calc__panel { display: none; }
.fwp-calc__panel.is-active { display: block; }
.fwp-calc__field {
	display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; height: 48px; padding: 0 14px;
	border: 1.5px solid rgba(138, 106, 62, .35); border-radius: 14px; background: #fff; transition: border-color .25s, box-shadow .25s;
}
.fwp-calc__field:focus-within { border-color: var(--c-gold); box-shadow: 0 0 0 4px rgba(199, 154, 82, .22); }
.fwp-calc__field--lg { max-width: 330px; height: 56px; }
.fwp-calc .fwp-calc__field input {
	width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; /* el kit de Elementor pinta los input[type=number] */
	color: var(--c-ink); font: 700 18px 'Inter', sans-serif; text-align: center; outline: none; -moz-appearance: textfield; appearance: textfield;
}
.fwp-calc .fwp-calc__field--lg input { font-size: 22px; }
.fwp-calc__field input::-webkit-outer-spin-button, .fwp-calc__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fwp-calc__unit { color: var(--c-brown); font-size: 12px; font-weight: 700; text-align: right; }
.fwp-calc__ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 440px; }
.fwp-calc__label { display: block; margin-top: 6px; color: var(--c-text); font-size: 11.5px; font-weight: 600; text-align: center; }
.fwp-calc__note { max-width: 440px; margin: 12px 0 0; color: var(--c-mute); font-size: 11.5px; line-height: 1.4; }

.fwp-calc__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fwp-calc__res { padding: 18px 10px; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); text-align: center; }
.fwp-calc__res strong { display: block; margin-bottom: 8px; color: var(--c-ink); font-size: clamp(24px, 2.6vw, 34px); line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fwp-calc__res span { display: block; color: var(--c-text); font-size: 12px; font-weight: 600; }
.fwp-calc__res--main { background: linear-gradient(135deg, var(--c-brown), var(--c-brown2)); border-color: transparent; box-shadow: 0 18px 30px -18px rgba(110, 78, 34, .8); }
.fwp-calc__res--main strong, .fwp-calc__res--main span { color: #fff; }

.fwp-calc__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--c-line); font-size: 13px; }
.fwp-calc__foot b { color: var(--c-ink); }
.fwp-calc__total b { font-size: 18px; color: var(--c-brown); }
.fwp-calc__total small { color: var(--c-mute); font-weight: 600; }
.fwp-calc .fwp-calc__use {
	padding: 12px 22px; border: 0; border-radius: 999px; background: var(--c-ink); color: #fff; cursor: pointer;
	font: 700 13px 'Inter', sans-serif; transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .25s;
}
.fwp-calc .fwp-calc__use:hover { transform: translateY(-2px); background: var(--c-brown); }
.fwp-calc__use[hidden] { display: none; }

.fwp-calc :focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }

@media (max-width: 1000px) { .fwp-calc__main { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) {
	.fwp-calc-wrap { padding: 0 12px; }
	.fwp-calc { border-radius: 22px; }
	.fwp-calc__head { flex-direction: column; gap: 12px; }
	.fwp-calc__sku { text-align: left; }
	.fwp-calc__results { gap: 8px; }
	.fwp-calc__res { padding: 14px 6px; border-radius: 14px; }
	.fwp-calc__foot { flex-direction: column; align-items: stretch; text-align: center; }
}
