/* Declaración de avería — public form (Excon + vertical stepper) */

.gp-preapertura-page {
    --gp-teal: #26a89e;
    --gp-teal-light: #3bc4b8;
    --gp-teal-soft: #e8f6f6;
    --gp-fluor: #00e5d6;
    --gp-hero-bg: #000000;
    --gp-docs-btn: #b8e8d8;
    --gp-docs-btn-hover: #a3dfcc;
    --gp-docs-btn-text: #0f4f42;
    --gp-text: #12323a;
    --gp-muted: #5f7a80;
    --gp-muted-2: #49656c;
    --gp-border: #d9ecee;
    --gp-radius: 18px;
    font-family: 'Excon', Arial, sans-serif;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.gp-preapertura-page,
.gp-preapertura-page input,
.gp-preapertura-page button,
.gp-preapertura-page label,
.gp-preapertura-page textarea,
.gp-preapertura-page select {
    font-family: 'Excon', Arial, sans-serif;
}

.gp-preapertura-page .gp-bg-icon {
    animation: none !important;
    opacity: 1;
    transform: none !important;
}

.preapertura-shell {
    width: 100%;
    max-width: 1180px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.preapertura-shell.gp-decl-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.gp-decl-main {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gp-decl-main.is-initial-loading > :not(.preapertura-loader) {
    opacity: 0;
    visibility: hidden;
}

.preapertura-header-card {
    position: relative;
    background: #fff;
    border-radius: var(--gp-radius-xl, 1.25rem);
    box-shadow: var(--gp-shadow-xl, 0 20px 50px rgba(15, 23, 42, 0.12));
    overflow: hidden;
}

.preapertura-card-header {
    padding: 0.9rem 1.35rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.preapertura-card-header .gp-logo-area {
    margin-bottom: 0;
    text-align: left;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

.preapertura-card-header .gp-logo-area .gp-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.preapertura-card-header .gp-logo-area img {
    height: 36px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
}

.preapertura-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gp-teal);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: left;
}

.preapertura-trust-badge span {
    white-space: nowrap;
}

.preapertura-trust-badge svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.gp-decl-alert {
    margin: 0;
    border-radius: 14px;
}

.gp-decl-alert--collapsible {
    padding: 0.85rem 1rem;
}

.gp-decl-error-details {
    margin: 0;
}

.gp-decl-error-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    font-weight: 600;
}

.gp-decl-error-summary::-webkit-details-marker {
    display: none;
}

.gp-decl-error-title {
    flex: 1 1 auto;
    line-height: 1.35;
}

.gp-decl-error-toggle {
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

.gp-decl-error-toggle-less {
    display: none;
}

.gp-decl-error-details[open] .gp-decl-error-toggle-more {
    display: none;
}

.gp-decl-error-details[open] .gp-decl-error-toggle-less {
    display: inline;
}

.gp-decl-error-list {
    border-top: 1px solid rgba(148, 27, 27, 0.18);
    padding-top: 0.75rem;
    font-weight: 400;
}

.preapertura-hero {
    padding: 0.75rem 1.2rem;
    color: #fff;
    background: linear-gradient(90deg, #000000 0%, var(--gp-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.preapertura-hero h1 {
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #fff;
}

.preapertura-hero-copy {
    max-width: 620px;
    color: #fff;
}

.preapertura-hero-copy .eyebrow {
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    opacity: 0.92;
    margin-bottom: 0.2rem;
    color: #fff;
}

.preapertura-hero-copy p.mb-0 {
    font-size: 0.9rem;
    line-height: 1.35;
    color: #fff;
}

.preapertura-hero-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 0;
    align-items: stretch;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 220px;
}

.preapertura-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--gp-teal);
    background: var(--gp-teal);
    color: #ffffff;
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.preapertura-info-trigger:hover {
    color: #ffffff;
    background: #1f8f87;
    border-color: #1f8f87;
    transform: translateY(-1px);
}

.preapertura-info-trigger svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

/* ---- Layout: stepper (outside) + phase cards ---- */

.gp-decl-stepper {
    list-style: none;
    margin: 0;
    padding: 0;
    position: sticky;
    top: 1.5rem;
    align-self: start;
    min-height: var(--gp-stepper-min-height, 0px);
}

.gp-decl-stepper.is-aligned {
    position: sticky;
}

.gp-decl-stepper-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 28px;
}

.gp-decl-stepper.is-aligned .gp-decl-stepper-item {
    position: absolute;
    left: 0;
    right: 0;
    padding-bottom: 0;
    margin: 0;
}

.gp-decl-stepper-item:last-child {
    padding-bottom: 0;
}

.gp-decl-stepper-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 4px;
    width: 2px;
    background: #d5e4e7;
}

.gp-decl-stepper.is-aligned .gp-decl-stepper-item:not(:last-child)::before {
    bottom: auto;
    height: var(--gp-step-connector-h, 40px);
}

.gp-decl-stepper-item.is-done:not(:last-child)::before,
.gp-decl-stepper-item.is-current:not(:last-child)::before {
    background: var(--gp-teal-light);
}

.gp-decl-stepper-dot {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex: 0 0 32px;
    background: #e8eef0;
    color: #7a9298;
    border: 2px solid #e8eef0;
    z-index: 1;
}

.gp-decl-stepper-item.is-current .gp-decl-stepper-dot {
    background: var(--gp-teal);
    border-color: var(--gp-teal);
    color: #fff;
}

.gp-decl-stepper-item.is-done .gp-decl-stepper-dot {
    background: var(--gp-teal);
    border-color: var(--gp-teal);
    color: #fff;
}

.gp-decl-stepper-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
}

.gp-decl-stepper-label strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gp-text);
    line-height: 1.25;
}

.gp-decl-stepper-item.is-pending .gp-decl-stepper-label strong {
    color: #7a9298;
    font-weight: 500;
}

.gp-decl-stepper-label span {
    font-size: 0.75rem;
    color: var(--gp-muted);
    font-weight: 400;
}

/* ---- Phases ---- */

.gp-phase {
    display: none;
}

.gp-phase.is-visible {
    display: block;
}

.gp-phase-card {
    background: #fff;
    border-radius: var(--gp-radius-xl, 1.25rem);
    box-shadow: var(--gp-shadow-xl, 0 16px 40px rgba(15, 23, 42, 0.1));
    border: 1px solid rgba(217, 236, 238, 0.8);
    padding: 1.35rem 1.4rem 1.5rem;
    margin: 0;
}

.gp-phase-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1.25rem;
}

.gp-phase-header-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.gp-phase-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: var(--gp-teal-soft);
    color: var(--gp-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
}

.gp-phase-icon svg {
    width: 26px;
    height: 26px;
}

.gp-phase-kicker {
    font-size: 0.8rem;
    color: var(--gp-muted);
    font-weight: 500;
    margin: 0 0 4px;
}

.gp-phase-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gp-text);
    margin: 0 0 4px;
}

.gp-phase-subtitle {
    margin: 0;
    color: var(--gp-muted);
    font-size: 0.92rem;
    font-weight: 400;
}

.gp-docs-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gp-teal);
    background: var(--gp-teal-soft);
    color: var(--gp-teal);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
}

.gp-docs-count-pill svg {
    width: 16px;
    height: 16px;
}

/* ---- Status / warnings ---- */

.status-box {
    display: none;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 12px;
    font-size: 0.95rem;
}

.status-box.is-error {
    display: block;
    background: #fff0f0;
    color: #9f1d1d;
}

.status-box.is-success {
    display: block;
    background: #eefbf6;
    color: #0f6848;
}

.status-box.is-warning {
    display: block;
    background: #fff7e8;
    color: #8a5a00;
}

.resumen-certificado {
    display: none;
    margin-top: 16px;
    margin-bottom: 8px;
    border: 1px solid var(--gp-border);
    background: #f7fbfc;
    border-radius: 14px;
    padding: 20px;
}

.resumen-certificado.is-visible {
    display: block;
}

.resumen-certificado h3 {
    font-weight: 700;
    color: var(--gp-text);
}

.duplicate-warning {
    display: none;
    margin-top: 18px;
    margin-bottom: 8px;
    border: 1px solid #f0d39a;
    background: #fff9ef;
    border-radius: 14px;
    padding: 18px 20px;
}

.duplicate-warning.is-visible {
    display: block;
}

.duplicate-warning-title {
    font-weight: 700;
    color: #6b4700;
    margin-bottom: 8px;
}

.duplicate-warning-meta {
    color: #6b4700;
    font-weight: 600;
    margin-bottom: 8px;
}

.duplicate-warning-meta:empty {
    display: none;
}

.duplicate-warning-summary {
    color: #7b5a1d;
    margin-bottom: 0;
}

.duplicate-warning-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #6c5741;
}

.duplicate-warning-list:empty {
    display: none;
}

.duplicate-warning-list li + li {
    margin-top: 6px;
}

.duplicate-warning-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.duplicate-warning-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.2;
}

.duplicate-warning-action--secondary {
    background: #fff;
    border-color: #d9b56a;
    color: #6b4700;
}

.duplicate-warning-action--secondary:hover,
.duplicate-warning-action--secondary:focus {
    background: #fff7e8;
    color: #6b4700;
}

.duplicate-warning-action--primary {
    background: var(--gp-teal);
    border-color: var(--gp-teal);
    color: #fff;
}

.duplicate-warning-action--primary:hover,
.duplicate-warning-action--primary:focus {
    background: #1f8f87;
    border-color: #1f8f87;
    color: #fff;
}

.duplicate-warning-blocked {
    border-color: #b9dce0;
    background: #f3fafb;
}

.duplicate-warning-blocked .duplicate-warning-title {
    color: var(--gp-teal);
}

.duplicate-warning-blocked .duplicate-warning-summary {
    color: #49656c;
    margin-bottom: 12px;
}

.duplicate-warning-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--gp-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.duplicate-warning-link:hover,
.duplicate-warning-link:focus {
    color: #1f8f87;
}

.gp-docs-preview {
    margin: 4px 0 18px;
    border: 1px solid var(--gp-border);
    background: var(--gp-teal-soft);
    border-radius: 14px;
    padding: 14px 16px;
}

.gp-docs-preview-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gp-docs-preview-header svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: var(--gp-teal);
    margin-top: 2px;
}

.gp-docs-preview-header strong {
    display: block;
    color: var(--gp-text);
    margin-bottom: 4px;
}

.gp-docs-preview-header p {
    margin: 0;
    color: var(--gp-muted-2);
    font-size: 0.9rem;
    line-height: 1.4;
}

.gp-docs-preview-details {
    margin-top: 12px;
}

.gp-docs-preview-toggle {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--gp-docs-btn);
    border: 1px solid #9fd9c6;
    color: var(--gp-docs-btn-text);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

.gp-docs-preview-toggle::-webkit-details-marker {
    display: none;
}

.gp-docs-preview-toggle:hover {
    background: var(--gp-docs-btn-hover);
    border-color: #8ecfb9;
    color: var(--gp-docs-btn-text);
}

.gp-docs-preview-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    transition: transform 0.2s ease;
}

.gp-docs-preview-details[open] .gp-docs-preview-chevron {
    transform: rotate(180deg);
}

.gp-docs-preview-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--gp-text);
}

.gp-contact-review-note {
    margin: 0 0 18px;
    color: var(--gp-muted-2);
    font-size: 0.95rem;
    line-height: 1.45;
}

.resumen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.resumen-item span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gp-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.resumen-item strong {
    font-weight: 700;
    color: var(--gp-text);
}

/* ---- Vehicle form ---- */

.gp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.gp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gp-field-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gp-text);
    margin: 0;
}

.gp-input-with-icon {
    position: relative;
}

.gp-input-with-icon .gp-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gp-teal);
    pointer-events: none;
}

.gp-input-with-icon .form-control {
    padding-left: 42px;
    border-radius: 12px;
    border-color: #c9dce0;
    font-weight: 400;
    min-height: 48px;
}

.gp-input-with-icon .form-control:focus {
    border-color: var(--gp-teal-light);
    box-shadow: 0 0 0 0.2rem rgba(18, 174, 181, 0.18);
}

.gp-field-hint {
    font-size: 0.78rem;
    color: var(--gp-muted);
    margin: 0;
    font-weight: 400;
}

.gp-btn-continue {
    margin-top: 1.25rem;
    width: 100%;
    border: 0;
    border-radius: 14px;
    min-height: 52px;
    background: var(--gp-teal);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.gp-btn-continue:hover,
.gp-btn-continue:focus {
    background: #0c686d;
    color: #fff;
}

.gp-btn-continue:disabled {
    opacity: 0.55;
}

/* ---- Documents ---- */

.gp-docs-section-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gp-text);
    margin-bottom: 12px;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.document-slot-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

.document-slot {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
}

.document-slot-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.document-slot-card {
    min-height: 230px;
    width: 100%;
    height: 100%;
    border: 2px dashed #b8d7db;
    border-radius: var(--gp-radius);
    background: #fff;
    padding: 18px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.document-slot:hover .document-slot-card {
    border-color: var(--gp-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(18, 174, 181, 0.12);
}

.document-slot.is-filled .document-slot-card {
    border-color: var(--gp-teal-light);
    border-style: dashed;
    background: linear-gradient(180deg, #eefbf9 0%, #e4f5f3 100%);
}

.document-slot-index {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gp-teal);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.document-slot-icon {
    width: 36px;
    height: 36px;
    color: var(--gp-teal);
    margin-bottom: 10px;
}

.document-slot-icon svg {
    width: 100%;
    height: 100%;
}

.document-slot-title {
    font-weight: 700;
    color: var(--gp-text);
    margin-bottom: 8px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1.25;
}

.document-slot-name {
    font-size: 0.88rem;
    line-height: 1.35;
    color: #34545b;
    word-break: break-word;
    margin-bottom: 8px;
    font-weight: 500;
}

.document-slot-hint {
    font-size: 0.72rem;
    color: #68848a;
    line-height: 1.4;
    margin-top: auto;
    font-weight: 300;
}

.document-slot-example {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    border: 0;
    background: rgba(232, 246, 246, 0.98);
    color: var(--gp-teal);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 126, 132, 0.1);
    white-space: nowrap;
}

.document-slot-example:hover {
    color: #0c666b;
    background: #ffffff;
}

.document-slot-example-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 230px;
    z-index: 4;
    pointer-events: none;
}

.document-slot-example-wrap .document-slot-example {
    pointer-events: auto;
}

.document-slot-progress {
    display: none;
    width: 100%;
}

.document-slot-progress.is-visible {
    display: block;
}

.document-slot-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #dce9ec;
    overflow: hidden;
}

.document-slot-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gp-teal) 0%, var(--gp-teal-light) 100%);
    transition: width 0.15s ease;
}

.document-slot-progress.is-complete .document-slot-progress-bar {
    background: linear-gradient(90deg, #0d8a4f 0%, #1fb86a 100%);
}

.document-slot-progress-label {
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gp-muted-2);
}

.document-slot-progress.is-complete .document-slot-progress-label {
    color: #0d8a4f;
}

.document-slot-preview {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 2px;
    border: 1px solid var(--gp-teal);
    background: var(--gp-teal-soft);
    color: var(--gp-teal);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    transition: background 0.15s ease, color 0.15s ease;
}

.document-slot-preview.is-visible,
.document-slot-preview:not([hidden]) {
    display: inline-flex;
}

.document-slot-preview[hidden] {
    display: none !important;
}

.document-slot-preview:hover {
    background: var(--gp-teal);
    color: #fff;
}

.document-slot-preview svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.documento-preview-pane {
    width: 100%;
}

.documento-preview-image {
    display: block;
    max-width: 100%;
    max-height: min(70vh, 640px);
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid var(--gp-border);
}

.documento-preview-pdf {
    width: 100%;
    min-height: min(70vh, 640px);
    border: 1px solid var(--gp-border);
    border-radius: 12px;
    background: #f7fbfc;
}

.documento-preview-unsupported {
    border: 1px dashed var(--gp-border);
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    background: #f7fbfc;
    color: var(--gp-text);
}

.gp-docs-footnote {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--gp-muted);
}

/* ---- Contact + summary (phase 3) ---- */

.gp-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.gp-contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gp-contact-card {
    border: 1px solid var(--gp-border);
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
}

.gp-contact-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gp-text);
    margin-bottom: 8px;
}

.gp-contact-card-label svg {
    width: 16px;
    height: 16px;
    color: var(--gp-teal);
}

.gp-contact-card .form-control {
    border: 0;
    border-bottom: 1px solid #e0eaec;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
    min-height: 36px;
}

.gp-contact-card .form-control:focus {
    border-bottom-color: var(--gp-teal-light);
    box-shadow: none;
}

.preapertura-consent {
    margin-top: 1rem;
    padding: 14px 16px;
    border: 1px solid var(--gp-border);
    border-radius: 14px;
    background: #f7fbfc;
}

.preapertura-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    color: #3d4c5c;
    font-size: 0.9rem;
    line-height: 1.45;
    cursor: pointer;
}

.preapertura-consent-label input {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15rem;
    accent-color: var(--gp-teal);
}

.gp-request-summary {
    border: 1px solid var(--gp-border);
    border-radius: 16px;
    background: #f7fbfc;
    padding: 18px 18px 16px;
}

.gp-request-summary h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gp-text);
    margin: 0 0 14px;
}

.gp-request-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #e3eeee;
}

.gp-request-summary-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.gp-request-summary-item svg {
    width: 18px;
    height: 18px;
    color: var(--gp-teal);
    flex: 0 0 18px;
    margin-top: 2px;
}

.gp-request-summary-item strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gp-text);
    margin-bottom: 2px;
}

.gp-request-summary-item span {
    font-size: 0.82rem;
    color: var(--gp-muted-2);
    font-weight: 400;
}

.gp-request-summary-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--gp-teal-soft);
    color: var(--gp-teal);
    font-size: 0.72rem;
    font-weight: 600;
}

.gp-submit-wrap {
    margin-top: 1.5rem;
}

.btn.btn-request-submit {
    background: var(--gp-teal);
    border-color: var(--gp-teal);
    color: #ffffff;
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn.btn-request-submit:hover,
.btn.btn-request-submit:focus,
.btn.btn-request-submit:active,
.btn.btn-request-submit:focus-visible {
    background: #0c686d;
    border-color: #0c686d;
    color: #ffffff;
}

.btn.btn-request-submit:hover svg,
.btn.btn-request-submit:focus svg,
.btn.btn-request-submit:active svg {
    color: #ffffff;
    stroke: currentColor;
}

.btn.btn-request-submit:disabled,
.btn.btn-request-submit.disabled {
    background: #c5d4d6;
    border-color: #c5d4d6;
    color: #ffffff;
    opacity: 1;
}

.gp-submit-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--gp-muted);
    text-align: center;
}

.gp-submit-hint svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

/* ---- Misc / modals / loaders ---- */

.reference-modal-image {
    width: 100%;
    max-width: 520px;
    display: block;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid var(--gp-border);
    background: #f8fbfc;
    padding: 14px;
}

.process-modal-image {
    width: 100%;
    display: block;
    border-radius: 20px;
    border: 1px solid var(--gp-border);
    box-shadow: 0 14px 34px rgba(15, 126, 132, 0.12);
    margin-bottom: 1.25rem;
}

.process-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.process-modal-step {
    border: 1px solid var(--gp-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfeff 0%, #f3f9fa 100%);
    padding: 18px 18px 16px;
}

.process-modal-step-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.process-modal-step-number {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--gp-teal);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex: 0 0 40px;
}

.process-modal-step h6 {
    margin: 0;
    font-size: 1rem;
    color: var(--gp-text);
    font-weight: 700;
}

.process-modal-step p {
    margin-bottom: 0;
    color: var(--gp-muted-2);
}

.process-modal-step p + p {
    margin-top: 10px;
}

.process-modal-step ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #35545b;
}

.process-modal-step li + li {
    margin-top: 6px;
}

.preapertura-legal-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #dde7ea;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
}

.preapertura-legal-links {
    display: flex;
    align-items: right;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.preapertura-legal-links a {
    color: var(--gp-text);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.preapertura-legal-links a:hover {
    color: var(--gp-teal);
}

#preapertura-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#preapertura-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fieldset-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.preapertura-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(247, 251, 252, 0.92);
    backdrop-filter: blur(4px);
    border-radius: var(--gp-radius-xl, 1.25rem);
}

.preapertura-loader.is-visible {
    display: flex;
}

.preapertura-loader-card {
    width: min(100%, 420px);
    border-radius: 22px;
    padding: 24px 28px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--gp-border);
    box-shadow: 0 18px 45px rgba(15, 126, 132, 0.14);
}

.preapertura-loader-spinner {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 999px;
    border: 4px solid #d8eef0;
    border-top-color: var(--gp-teal-light);
    animation: preapertura-spin 0.9s linear infinite;
}

.preapertura-loader-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gp-text);
    margin-bottom: 6px;
}

.preapertura-loader-text {
    color: var(--gp-muted);
    margin-bottom: 0;
}

@keyframes preapertura-spin {
    to {
        transform: rotate(360deg);
    }
}

.preapertura-submit-overlay {
    --gp-teal: #26a89e;
    --gp-teal-light: #3bc4b8;
    --gp-text: #12323a;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
}

.preapertura-submit-overlay.is-visible {
    display: flex;
}

.preapertura-submit-icon {
    position: relative;
    width: 155px;
    height: 155px;
}

.preapertura-submit-overlay [data-loader='logo-circle'] {
    width: 155px;
    height: 155px;
    animation: circle 0.75s linear infinite;
    border: 4px solid var(--gp-teal-light, #3bc4b8);
    border-top-color: transparent;
    border-radius: 100%;
    display: block;
    margin: 0;
    box-sizing: border-box;
}

.preapertura-submit-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    object-fit: contain;
    pointer-events: none;
}

.preapertura-submit-text {
    margin-top: 1.25rem;
    min-height: 2.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gp-text, #12323a);
    text-align: center;
    padding: 0 1.5rem;
    max-width: 22rem;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.preapertura-submit-text.is-fading {
    opacity: 0;
}

@keyframes circle {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {
    .preapertura-shell.gp-decl-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gp-decl-stepper,
    .gp-decl-stepper.is-aligned {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 12px;
        overflow-x: auto;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
        border: 1px solid rgba(217, 236, 238, 0.85);
        min-height: 0 !important;
    }

    .gp-decl-stepper-item,
    .gp-decl-stepper.is-aligned .gp-decl-stepper-item {
        position: relative;
        left: auto;
        right: auto;
        top: auto !important;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 0;
        min-width: 90px;
    }

    .gp-decl-stepper-item:not(:last-child)::before,
    .gp-decl-stepper.is-aligned .gp-decl-stepper-item:not(:last-child)::before {
        left: calc(50% + 18px);
        right: calc(-50% + 18px);
        top: 15px;
        bottom: auto;
        width: auto;
        height: 2px !important;
    }

    .gp-decl-stepper-label {
        align-items: center;
        padding-top: 0;
    }

    .gp-decl-stepper-label span {
        display: none;
    }

    .gp-contact-layout {
        grid-template-columns: 1fr;
    }

    .document-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gp-phase-card {
        padding: 1.15rem 1.1rem 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .gp-preapertura-page {
        padding-top: 0.85rem;
        padding-bottom: 1rem;
    }

    .preapertura-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 0.85rem 1rem;
    }

    .preapertura-trust-badge {
        margin-left: 0;
        white-space: nowrap;
    }

    .preapertura-card-header .gp-logo-area img {
        height: 32px;
        max-width: 180px;
    }

    .preapertura-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 1rem;
    }

    .preapertura-hero h1 {
        font-size: 1.2rem;
    }

    .preapertura-hero-actions {
        justify-content: flex-start;
        align-items: stretch;
        width: 100%;
        min-width: 0;
    }

    .preapertura-info-trigger {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .gp-field-row,
    .gp-contact-fields {
        grid-template-columns: 1fr;
    }

    .gp-phase-header {
        flex-direction: column;
        align-items: stretch;
    }

    .gp-docs-count-pill {
        align-self: flex-start;
    }

    .document-grid {
        grid-template-columns: 1fr;
    }

    .btn-request-submit {
        width: 100%;
        min-width: 0;
    }

    .preapertura-legal-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-modal-grid {
        grid-template-columns: 1fr;
    }

    .gp-decl-stepper-label strong {
        font-size: 0.78rem;
    }
}
