/* Cotizador — formulario vertical por pasos */

.ccb-form {
	--ccb-border: var(--ccb-line, #e6e8ee);
	--ccb-brand-red: #e10b17;
	font-family: var(--ccb-font, "Rubik", Arial, sans-serif);
	color: var(--ccb-ink, #0c0c0c);
}

.ccb-form *,
.ccb-success-wrap * {
	box-sizing: border-box;
}

.ccb-form ::selection {
	background: rgba(225, 11, 23, .18);
}

.ccb-form-intro {
	text-align: center;
	margin-bottom: 24px;
}

.ccb-form-note {
	color: var(--ccb-muted, #5c6370);
	font-weight: 500;
	font-size: 14px;
	margin: 0 0 10px;
}

.ccb-form-wa-hint {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(37, 211, 102, .12);
	color: #0b6b3a;
	font-weight: 600;
	font-size: 14px;
}

.ccb-form-wa-hint i {
	font-size: 20px;
	color: #25d366;
}

/* Pasos */
.ccb-steps {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 auto 24px;
	padding: 0;
	max-width: 750px;
}

.ccb-steps li {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
	padding: 10px 8px;
	border-bottom: 3px solid #e6e8ee;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #6b7280;
	letter-spacing: .02em;
}

.ccb-steps li.is-active {
	color: var(--ccb-brand-red);
	border-bottom-color: var(--ccb-brand-red);
}

/* Formulario */
.ccb-quote-form {
	max-width: 100%;
}

.ccb-step-panel {
	padding: 0 0 8px;
}

.ccb-quote-card {
	background: #f8fafc;
	border: 2px solid transparent;
	border-radius: 16px;
	padding: 28px 26px;
	max-width: 750px;
	margin: 0 auto;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ccb-step-panel.is-active .ccb-quote-card {
	border-color: rgba(225, 11, 23, .45);
	box-shadow: 0 0 0 4px rgba(225, 11, 23, .08);
}

.ccb-quote-card-title {
	margin: 0 0 22px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--ccb-black, #0c0c0c);
}

.ccb-quote-fields {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ccb-quote-field {
	margin-bottom: 14px;
}

.ccb-quote-field:last-child {
	margin-bottom: 0;
}

.ccb-quote-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ccb-black, #0c0c0c);
}

.ccb-quote-field input,
.ccb-quote-field select,
.ccb-form input:not([type="radio"]):not([type="checkbox"]),
.ccb-form select {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	font-family: var(--ccb-font, "Rubik", Arial, sans-serif);
	font-size: 14px;
	font-weight: 400;
	color: var(--ccb-ink, #0c0c0c);
	background: var(--ccb-white, #fff);
}

.ccb-quote-field input:focus,
.ccb-quote-field select:focus,
.ccb-form input:not([type="radio"]):not([type="checkbox"]):focus,
.ccb-form select:focus {
	outline: none;
	border-color: var(--ccb-brand-red);
	box-shadow: 0 0 0 3px rgba(225, 11, 23, .12);
}

.ccb-quote-field input[readonly] {
	background: #f1f3f6;
	color: #4b5563;
}

/* Bloques servicios (paso bultos) */
.ccb-quote-block {
	background: var(--ccb-white, #fff);
	border: 1px solid var(--ccb-border);
	border-radius: 12px;
	padding: 18px 18px 16px;
	margin-bottom: 14px;
}

.ccb-quote-block-label {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ccb-black, #0c0c0c);
	line-height: 1.45;
}

.ccb-quote-field-cond {
	margin-top: 12px;
	margin-bottom: 0;
}

.ccb-si-no-options {
	display: flex;
	gap: 20px;
}

.ccb-si-no-options label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.ccb-si-no-options input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 2px solid #b9c5d0;
	border-radius: 50%;
	background: #fff;
	position: relative;
	flex-shrink: 0;
	box-shadow: none;
}

.ccb-si-no-options input[type="radio"]:checked {
	border-color: var(--ccb-brand-red);
}

.ccb-si-no-options input[type="radio"]:checked::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ccb-brand-red);
	transform: translate(-50%, -50%);
}

.ccb-si-no-options input[type="radio"]:focus {
	outline: 2px solid var(--ccb-brand-red);
	outline-offset: 2px;
}

.ccb-isla-legend {
	display: none;
}

/* Bultos */
.ccb-bultos {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}

.ccb-bulto {
	background: var(--ccb-white, #fff);
	border: 1px solid var(--ccb-border);
	border-radius: 12px;
	padding: 14px 16px 12px;
}

.ccb-bulto-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ccb-border);
}

.ccb-bulto-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--ccb-black, #0c0c0c);
}

.ccb-bulto-fields {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ccb-bulto-fields .ccb-quote-field label {
	font-size: 13px;
	margin-bottom: 4px;
}

.ccb-bulto-fields .ccb-quote-field input,
.ccb-bulto-fields .ccb-quote-field select {
	min-height: 42px;
	padding: 10px 12px;
}

.ccb-bulto-row-cant-cont {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 10px;
	margin-bottom: 10px;
}

.ccb-bulto-meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 10px;
}

.ccb-bulto-dims {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 10px;
}

.ccb-bulto-row-cant-cont .ccb-quote-field,
.ccb-bulto-dims .ccb-quote-field,
.ccb-bulto-meta .ccb-quote-field {
	margin-bottom: 0;
}

/* Islas */
.ccb-islas {
	margin-top: 2px;
	padding-top: 10px;
	border-top: 1px solid var(--ccb-border);
}

.ccb-islas-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--ccb-black, #0c0c0c);
}

.ccb-islas-options {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.isla-box {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 40px;
	height: auto;
	border: 2px solid var(--ccb-black, #0c0c0c);
	border-radius: 8px;
	background: #fff;
	color: var(--ccb-black, #0c0c0c);
	font-weight: 600;
	cursor: pointer;
	padding: 6px 8px;
	user-select: none;
	text-align: center;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.isla-box:has(.isla-input:checked) {
	background: var(--ccb-brand-red);
	border-color: var(--ccb-brand-red);
	color: #fff;
}

.isla-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	opacity: 0;
}

.isla-name {
	position: relative;
	z-index: 1;
	color: inherit;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	pointer-events: none;
}

.remove-row {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: var(--ccb-black, #0c0c0c);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
	transition: background .2s ease;
}

.remove-row:hover {
	background: var(--ccb-brand-red);
}

.ccb-add-row {
	display: block;
	width: 100%;
	max-width: 320px;
	margin: 0 auto 18px;
	background: var(--ccb-black, #0c0c0c);
	border: 0;
	color: #fff;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background .2s ease;
}

.ccb-add-row:hover {
	background: var(--ccb-brand-red);
}

.ccb-altcha-wrap {
	margin-top: 8px;
}

/* Navegación */
.ccb-step-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	max-width: 750px;
	margin: 24px auto 0;
	padding: 0 4px;
}

.ccb-prev,
.ccb-next,
.btn-enviar {
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: background .2s ease;
}

.ccb-prev,
.ccb-next {
	background: var(--ccb-black, #0c0c0c);
	color: #fff;
}

.ccb-prev:hover,
.ccb-next:hover {
	background: var(--ccb-brand-red);
}

.ccb-next {
	margin-left: auto;
}

.btn-enviar {
	background: #25d366;
	color: #fff;
	margin-left: auto;
}

.btn-enviar:hover:not(:disabled) {
	background: #1ebe5d;
}

.btn-enviar:disabled {
	opacity: .65;
	cursor: not-allowed;
}

.ccb-ajax-error {
	max-width: 750px;
	margin: 0 auto 18px;
	padding: 14px 18px;
	border-radius: 12px;
	background: #fff0f0;
	border: 1px solid #d33;
	color: #a00000;
	font-weight: 700;
	font-size: 14px;
	text-align: center;
}

/* Éxito */
.ccb-success-wrap {
	max-width: 560px;
	margin: 40px auto 70px;
	padding: 0 15px;
}

.ccb-success-box {
	text-align: center;
	background: #f8fff8;
	border: 2px solid #27ae60;
	border-radius: 18px;
	padding: 42px 24px;
}

.ccb-success-box.ccb-error-box {
	background: #fff8f8;
	border-color: #c0392b;
}

.ccb-success-box h2 {
	margin: 0 0 14px;
	font-size: 1.6rem;
}

.ccb-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	font-size: 36px;
}

.ccb-success-main {
	max-width: 560px;
	margin: 0 auto 8px;
	line-height: 1.6;
}

.ccb-email-fallback {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, .08);
	text-align: left;
}

.ccb-email-fallback summary {
	cursor: pointer;
	font-weight: 700;
	color: #5c6370;
	list-style: none;
}

.ccb-email-fallback summary::-webkit-details-marker {
	display: none;
}

.ccb-email-fallback-form {
	margin-top: 14px;
}

.ccb-email-fallback-form p {
	margin: 0 0 14px;
	font-size: 14px;
	color: #5c6370;
	line-height: 1.5;
}

.ccb-success-box.ccb-confirmed {
	border-color: var(--ccb-black, #0c0c0c);
	background: #f7f7f7;
}

.ccb-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 18px 0;
}

.ccb-wa-btn,
.ccb-copy-btn,
.ccb-email-btn,
.ccb-done-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 700;
	padding: 14px 24px;
	min-height: 48px;
	font-size: 14px;
}

.ccb-wa-btn { background: #25d366; color: #fff; }
.ccb-wa-btn-primary { font-size: 15px; }
.ccb-copy-btn { background: var(--ccb-black, #0c0c0c); color: #fff; }
.ccb-copy-btn:hover { background: var(--ccb-brand-red); }
.ccb-done-btn { background: var(--ccb-black, #0c0c0c); color: #fff; }
.ccb-done-btn:hover { background: var(--ccb-brand-red); }
.ccb-email-btn { background: #fff; color: var(--ccb-ink, #0c0c0c); border: 2px solid var(--ccb-black, #0c0c0c); }
.ccb-email-btn:hover { border-color: var(--ccb-brand-red); color: var(--ccb-brand-red); }

.ccb-after-wa {
	margin: 18px auto;
	max-width: 650px;
	border: 1px dashed #27ae60;
	border-radius: 14px;
	padding: 14px;
	background: #fff;
}

@media (max-width: 720px) {
	.ccb-quote-card,
	.ccb-step-nav,
	.ccb-ajax-error,
	.ccb-steps {
		max-width: 100%;
	}

	.ccb-quote-card {
		padding: 22px 16px;
		border-radius: 14px;
	}

	.ccb-bulto-row-cant-cont {
		grid-template-columns: 80px 1fr;
	}

	.ccb-bulto-dims,
	.ccb-bulto-meta {
		grid-template-columns: 1fr;
	}

	.ccb-islas-options {
		grid-template-columns: repeat(2, 1fr);
	}

	.ccb-steps li {
		font-size: 11px;
		padding: 8px 4px;
	}

	.ccb-step-nav,
	.ccb-actions {
		flex-direction: column;
	}

	.ccb-next,
	.btn-enviar,
	.ccb-prev,
	.ccb-wa-btn,
	.ccb-copy-btn,
	.ccb-email-btn,
	.ccb-done-btn,
	.ccb-add-row {
		width: 100%;
		max-width: none;
		margin: 0;
	}
}
