.cs-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-field { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.form-wide, .form-radio { grid-column: 1 / -1; }
.form-field label, .form-radio legend { color: var(--navy); font-size: 13px; font-weight: 600; line-height: 1.3; }
.form-field :is(input, select, textarea) {
	width: 100%;
	min-width: 0;
	min-height: 49px;
	padding: 13px 14px;
	border: 1px solid #d9e1ec;
	border-radius: 4px;
	background: var(--white);
	color: var(--navy);
	font-size: 15px;
	line-height: 1.4;
}
.required-mark { color: var(--purple); }
.form-field textarea { resize: vertical; min-height: 138px; }
.form-field :is(input, textarea)::placeholder { color: #a8b2c1; opacity: 1; }
.form-field :is(input, select, textarea):focus { border-color: var(--purple); outline: 3px solid rgba(46, 49, 146, .12); outline-offset: 0; }
.form-radio { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-radio legend { margin-bottom: 9px; }
.form-radio > div { display: flex; flex-wrap: wrap; gap: 12px; }
.form-radio label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 18px;
	border: 1px solid #d9e1ec;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.form-radio label:hover { border-color: var(--purple); }
.form-radio input, .form-consent input { margin: 0; width: 17px; height: 17px; accent-color: var(--purple); cursor: pointer; flex: none; }
.form-consent { display: flex; align-items: start; gap: 12px; margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.form-consent input { margin-top: 2px; }
.form-upload {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	border: 1px dashed #b9c6d8;
	border-radius: 6px;
	padding: 28px 20px;
	background: #f8fafd;
	color: var(--navy);
	text-align: center;
	cursor: pointer;
	font-size: 15px;
}
.form-upload:hover { border-color: var(--purple); background: var(--pale); }
.form-upload span, .form-upload input { color: var(--muted); font-size: 13px; max-width: 100%; }
.form-upload input { min-width: 0; }
.form-file-list { display: grid; gap: 6px; margin: 12px 0 0; padding-inline-start: 20px; overflow-wrap: anywhere; font-size: 14px; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; padding-top: 26px; border-top: 1px solid #edf1f7; }
.step-label { font-size: 13px; line-height: 1.6; color: #8e96a3; }
.form-notice { padding: 12px 15px; border: 1px solid #b5d5e4; border-radius: 6px; background: #f1f9fc; font-size: 14px; }
.form-notice[data-error] { background: #fff3f3; color: #8a1c1c; border-color: #f0caca; }

.form-confirmation { display: grid; gap: 20px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-top: 4px solid var(--cyan); border-radius: 8px; }
.form-confirmation h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.form-confirmation p { color: var(--muted); }
.confirmation-details, .confirmation-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.confirmation-details > div { min-width: min(200px, 100%); padding: 14px 18px; border-radius: 6px; background: var(--pale); overflow-wrap: anywhere; }
.confirmation-details dt { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.confirmation-details dd { margin: 0; font-weight: 600; }
.quote-surface .form-confirmation { border: 0; }

.quote-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 32px 20px; border: 0; overflow-y: auto; background: transparent; color: var(--navy); }
.quote-dialog[open] { display: flex; }
.quote-dialog[open] .quote-surface { animation: quote-in .28s ease both; }
.quote-surface { flex: 0 1 760px; min-width: 0; margin: auto; border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: 0 30px 70px rgba(22, 36, 61, .28); }
.quote-dialog::backdrop { background: rgba(22, 36, 61, .62); }
.quote-dialog:target:not([open]) { display: flex; z-index: 10; background: rgba(22, 36, 61, .62); }
.quote-header { display: flex; justify-content: space-between; gap: 20px; padding: 32px 38px; border-bottom: 1px solid #edf1f7; background: var(--navy); color: var(--white); }
.quote-header p { font-size: 11px; font-weight: 600; color: var(--cyan); letter-spacing: .14em; line-height: 1; text-transform: uppercase; margin-bottom: 10px; }
.quote-header h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.quote-header h3:focus { outline: none; }
.dialog-close { flex: none; width: 38px; height: 38px; border-radius: 4px; color: var(--white); border: 1px solid #33445f; background: transparent; font-size: 20px; line-height: 1; }
.dialog-close:hover { background: var(--purple); }
.quote-form { padding: 34px 38px 38px; gap: 26px; }
.quote-form .fields-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.quote-form .form-radio label { padding: 13px 20px; line-height: 1; }
.quote-block h4, .claim-step h4 { font-size: 11px; letter-spacing: .12em; line-height: 1; font-weight: 500; text-transform: uppercase; color: #8e96a3; margin-bottom: 16px; }
.quote-block + .quote-block { border-top: 1px solid #edf1f7; padding-top: 24px; }
.quote-block:has(.form-question) .fields-grid { gap: 14px; }
.form-question { padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafd; }
.form-question p { font-size: 14px; line-height: 1.65; margin-bottom: 14px; }
.form-question > div { gap: 10px; }
.quote-form .form-question label { padding: 10px 20px; gap: 8px; }
.form-question input { width: 16px; height: 16px; }
.quote-form .step-actions { margin-top: 0; gap: 16px; }
.quote-form .step-actions .btn:not(.btn-outline) { padding: 17px 32px; border: 0; }
.quote-form .step-actions .btn-outline { padding: 16px 28px; }
@keyframes quote-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
body:has(.quote-dialog[open]) { overflow: hidden; }

.audit-form { text-align: left; gap: 20px; }
.audit-form .fields-grid { gap: 10px; }
.audit-form .form-field:has([name="fields[email]"], [name="fields[direccion]"], [name="fields[comuna]"]) { grid-column: 1 / -1; }
.audit-form .form-field :is(input, select) { min-height: 40px; background: var(--pale); border: 0; border-radius: 3px; font-size: 14px; padding: 10px 16px; }
.audit-form .form-field input::placeholder { color: var(--navy); opacity: .6; }
.audit-form .form-upload { display: block; text-align: left; padding: 0; margin-top: 10px; border: 0; background: transparent; font-size: 14px; color: var(--muted); }
.audit-form .form-upload strong, .audit-form .form-upload input { display: block; }
.audit-form .form-upload strong { font-weight: 400; }
.audit-form .step-actions { padding: 0; margin-top: 10px; border: 0; gap: 10px; }
.audit-form .step-actions .btn { flex: 1 1 0; padding: 12.5px 24px; border: 0; border-radius: 3px; font-size: 15px; }
.audit-progress { min-height: 40px; display: flex; gap: 10px; align-items: flex-start; }
.audit-progress-line { flex: 1; height: 1px; margin-top: 14.5px; background: #c2cbd2; }
.audit-progress button { flex: 0 0 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: var(--white); color: var(--muted); font: 400 13px/1.5 system-ui, sans-serif; }
.audit-progress button[aria-current="step"] { color: var(--purple); }
.audit-progress button[data-complete] { background: var(--purple); color: var(--white); border-color: var(--purple); }
.audit-progress button:disabled { cursor: default; }

.claims .wrap { width: min(1200px, calc(100% - 48px)); }
.claims-hero { padding: 64px 0 72px; background: var(--pale); }
.claims-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 48px; }
.claims-hero .eyebrow-pill { background: var(--white); border: 1px solid #d8e2ef; margin-bottom: 22px; }
.claims-hero h1 { font-size: 46px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 20px; }
.claims-intro { max-width: 52ch; margin-bottom: 30px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.claims-hero .benefits { gap: 14px; margin-bottom: 34px; }
.claims-hero .benefits li { gap: 12px; line-height: 1.4; }
.before { padding: 40px; border-radius: 8px; background: var(--navy); color: var(--white); }
.before h2 { font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.before > p { color: #9fadc2; font-size: 14px; line-height: 1.6; margin-bottom: 26px; }
.before ol { padding: 0; list-style: none; display: grid; gap: 20px; }
.before li { display: flex; gap: 16px; align-items: start; }
.before li span { flex: 0 0 30px; border-radius: 50%; background: var(--purple); color: var(--white); font-size: 13px; font-weight: 600; line-height: 30px; text-align: center; }
.before li p { flex: 1; color: #dde4ee; font-size: 14px; line-height: 1.65; }
.before strong { color: var(--white); font-weight: 600; }

.claims-form-section { padding: 76px 0 88px; }
.claims-form-layout { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 44px; align-items: start; }
.claims-aside { position: sticky; top: calc(var(--sticky-header-height) + 24px); display: grid; gap: 24px; }
.claims-aside h2 { font-size: 30px; line-height: 1.25; font-weight: 700; margin-bottom: 14px; }
.claims-aside p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.claims-progress { display: grid; gap: 18px; }
.claims-progress progress { width: 100%; height: 6px; appearance: none; color: var(--cyan); border: 0; border-radius: 99px; overflow: hidden; background: #e9eef5; }
.claims-progress progress::-webkit-progress-bar { background: #e9eef5; border-radius: 99px; }
.claims-progress progress::-webkit-progress-value { background: var(--cyan); border-radius: 99px; transition: width .4s ease; }
.claims-progress progress::-moz-progress-bar { background: var(--cyan); }
.step-tabs { display: grid; gap: 2px; }
.step-tabs button { display: flex; align-items: center; gap: 14px; padding: 11px 12px; width: 100%; border: 0; border-radius: 6px; background: transparent; color: var(--navy); text-align: left; font-size: 14px; line-height: 1.4; font-weight: 500; }
.step-tabs button:disabled { color: #a8b2c1; cursor: default; }
.step-tabs button span, .claim-step h3 span {
	width: 28px;
	height: 28px;
	flex: none;
	border-radius: 50%;
	background: #e9eef5;
	color: var(--purple);
	font-size: 12px;
	font-weight: 600;
	line-height: 28px;
	text-align: center;
}
.step-tabs button:disabled span { color: #a8b2c1; }
.step-tabs button[aria-current="step"] { background: var(--pale); font-weight: 600; }
.step-tabs button[aria-current="step"] span { background: var(--purple); color: var(--white); }
.step-tabs button[data-complete] span { background: var(--cyan); color: var(--white); }
.claims-help { padding: 26px; border-radius: 8px; background: var(--pale); }
.claims-help h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.claims-help p { font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.claim-step { border: 1px solid var(--line); border-radius: 8px; padding: 36px; scroll-margin-top: 24px; }
.claim-step h3 { display: flex; align-items: center; gap: 14px; font-size: 20px; line-height: 1.3; font-weight: 600; margin-bottom: 28px; }
.claim-step h3 span { width: 34px; height: 34px; font-size: 14px; line-height: 34px; }
.claim-step h4:not(:first-of-type) { margin-top: 30px; }
.step-intro { font-size: 14px; line-height: 1.6; color: var(--muted); margin: -10px 0 26px; }
.claims-notes { padding: 64px 0; background: var(--pale); }
.claims-notes > .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.claims-notes h3 { font-size: 18px; line-height: 1.4; font-weight: 600; margin-bottom: 10px; }
.claims-notes p { color: var(--muted); font-size: 15px; line-height: 1.7; }

@media (max-width: 900px) {
	.claims-hero-grid, .claims-form-layout, .claims-notes > .wrap { grid-template-columns: minmax(0, 1fr); }
	.claims-aside { position: static; }
	.claims-notes > .wrap { gap: 28px; }
}
@media (max-width: 700px) {
	.quote-dialog { padding: 16px 10px; }
	.quote-header { padding: 24px 20px; }
	.quote-header h3 { font-size: 20px; }
	.quote-form { padding: 26px 20px 24px; gap: 22px; }
	.quote-form .fields-grid { grid-template-columns: minmax(0, 1fr); }
	.quote-form .step-actions .btn { width: 100%; }
	.dialog-close { width: 44px; height: 44px; }
	.cs-form .form-field :is(input, select, textarea) { font-size: 16px; }
	.audit-form .form-field :is(input, select) { min-height: 44px; }
}
@media (max-width: 640px) {
	.claims .wrap { width: calc(100% - 32px); }
	.claims-hero { padding: 44px 0 52px; }
	.claims-hero h1 { font-size: 36px; }
	.before { padding: 28px 24px; }
	.claims-form-section { padding: 52px 0 64px; }
	.claims-form .fields-grid, .audit-form .fields-grid { grid-template-columns: minmax(0, 1fr); }
	.claim-step { padding: 26px 20px; }
	.claims-aside h2 { font-size: 26px; }
	.claims .btn { width: 100%; }
	.claims .step-label { width: 100%; }
}
