﻿/* =========================================================
   COTIZACIÓN · PAGE
========================================================= */

.quote-page {
    position: relative;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 55px);
    padding-bottom: 80px;
    overflow: hidden;
    background: radial-gradient( circle at 4% 15%, rgba(242, 182, 31, 0.17), transparent 22% ), radial-gradient( circle at 96% 88%, rgba(7, 139, 69, 0.10), transparent 28% ), linear-gradient( 135deg, #fffef9 0%, #faf8f1 50%, #f3f5ed 100% );
}


/* =========================================================
   LAYOUT
========================================================= */

.quote-page__container {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(580px, 1.08fr);
    align-items: start;
    gap: clamp(50px, 5vw, 90px);
}


/* =========================================================
   INTRO
========================================================= */

.quote-page__intro {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 720px;
    min-height: 100%;
    flex-direction: column;
}

.quote-page__title {
    max-width: 650px;
    margin-top: 22px;
    color: #064c3b;
    font-size: clamp(2.8rem, 3.7vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

    .quote-page__title span {
        display: block;
        margin-top: 4px;
        color: transparent;
        background: linear-gradient( 135deg, #d99809, #f2b61f, #ffc942 );
        background-clip: text;
        -webkit-background-clip: text;
    }


.quote-page__description {
    max-width: 560px;
    margin-top: 20px;
    color: #4c665d;
    font-size: 0.92rem;
    line-height: 1.65;
}


/* =========================================================
   BENEFICIOS
========================================================= */
.quote-page__benefits {
    display: grid;
    width: 100%;
    margin-top: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}


.quote-benefit {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
}


.quote-benefit__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 14px;
    color: #07834f;
    background: linear-gradient( 145deg, rgba(7,139,69,0.10), rgba(242,182,31,0.07) );
}


    .quote-benefit__icon svg {
        width: 20px;
        height: 20px;
    }


.quote-benefit strong {
    display: block;
    color: #16483a;
    font-size: 0.75rem;
    line-height: 1.35;
}


.quote-benefit p {
    margin-top: 5px;
    color: #6b7e76;
    font-size: 0.64rem;
    line-height: 1.55;
}


/* =========================================================
   IMAGEN FAMILIA
========================================================= */

.quote-page__image-wrap {
    position: relative;
    width: 750px;
    max-width: 123%;
    margin-top: -8px;
    margin-left: -68px;
    overflow: visible;
    isolation: isolate;
    transform: translateY(-12px);
}


    /* fondo verde suave */

    .quote-page__image-wrap::before {
        position: absolute;
        z-index: -2;
        left: -130px;
        bottom: -80px;
        width: 520px;
        height: 400px;
        content: "";
        border-radius: 55% 45% 0 0 / 65% 60% 0 0;
        background: radial-gradient( ellipse at center, rgba(125, 178, 134, 0.30) 0%, rgba(125, 178, 134, 0.15) 45%, transparent 74% );
        filter: blur(8px);
    }


    /* halo champagne */

    .quote-page__image-wrap::after {
        position: absolute;
        z-index: -1;
        right: 60px;
        top: 10%;
        width: 260px;
        height: 260px;
        content: "";
        border-radius: 50%;
        background: radial-gradient( circle, rgba(242,182,31,0.10), transparent 70% );
        filter: blur(14px);
    }

.quote-page__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom left;
    filter: drop-shadow( 0 24px 38px rgba(41, 61, 51, 0.09) );
}


/* =========================================================
   PANEL
========================================================= */

.quote-panel {
    position: relative;
    width: 100%;
    max-width: 820px;
    min-height: 780px;
    justify-self: end;
    padding: clamp(30px, 3vw, 44px);
    border: 1px solid rgba(190, 151, 65, 0.22);
    border-radius: 32px;
    background: linear-gradient( 145deg, rgba(255,255,255,0.98), rgba(250,248,241,0.96) );
    box-shadow: 0 35px 90px rgba(57, 51, 35, 0.12), inset 0 1px 0 rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.quote-panel {
    display: flex;
    flex-direction: column;
}

.quote-form {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.quote-form__step.is-active {
    flex: 1;
}


.quote-panel__header {
    display: flex;
    align-items: center;
    gap: 16px;
}


.quote-panel__header-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: #087947;
    background: rgba(7,139,69,0.08);
}


    .quote-panel__header-icon svg {
        width: 26px;
        height: 26px;
    }


.quote-panel__header h2 {
    color: #064c3b;
    font-size: 1.5rem;
}


.quote-panel__header p {
    margin-top: 5px;
    color: #718078;
    font-size: 0.76rem;
}


/* =========================================================
   STEPS
========================================================= */

.quote-steps {
    position: relative;
    display: grid;
    margin: 36px 0 42px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}


    .quote-steps::before {
        position: absolute;
        top: 18px;
        left: 12%;
        right: 12%;
        height: 1px;
        content: "";
        background: rgba(24, 73, 56, 0.12);
    }


.quote-step {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 9px;
    color: #718079;
    transition: color 300ms ease, transform 300ms ease;
}


    .quote-step span {
        display: grid;
        width: 36px;
        height: 36px;
        place-items: center;
        border-radius: 50%;
        color: #244a3e;
        background: #eef2ee;
        box-shadow: none;
        font-size: 0.72rem;
        font-weight: 800;
        transition: color 300ms ease, background 300ms ease, box-shadow 300ms ease, transform 300ms ease;
    }


    .quote-step strong {
        font-size: 0.68rem;
    }


    /* paso actual */

    .quote-step.is-active {
        color: #075f3e;
    }


        .quote-step.is-active span {
            color: #ffffff !important;
            background: linear-gradient( 145deg, #075a3d, #078b45 ) !important;
            transform: scale(1.08);
            box-shadow: 0 10px 26px rgba(7, 139, 69, 0.24);
        }


    /* paso completado */

    .quote-step.is-complete {
        color: #9b720f;
    }


        .quote-step.is-complete span {
            color: #073f30 !important;
            background: linear-gradient( 145deg, #ffe39b, #f2b61f ) !important;
            box-shadow: 0 8px 20px rgba(242, 182, 31, 0.18);
            font-size: 0 !important;
        }


            .quote-step.is-complete span::before {
                content: "✓";
                font-size: 0.85rem;
                font-weight: 900;
            }


/* =========================================================
   MULTISTEP
========================================================= */

.quote-form__step {
    display: none;
}


    .quote-form__step.is-active {
        display: block;
    }


/* =========================================================
   FORM
========================================================= */

.quote-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


.quote-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.quote-field--full {
    grid-column: 1 / -1;
}


.quote-field label {
    color: #344f45;
    font-size: 0.70rem;
    font-weight: 700;
}


.quote-input {
    display: flex;
    min-height: 54px;
    padding: 0 15px;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(25, 72, 55, 0.13);
    border-radius: 12px;
    background: rgba(255,255,255,0.80);
    transition: border-color 250ms ease, box-shadow 250ms ease, background 250ms ease;
}


    .quote-input:focus-within {
        border-color: rgba(210,160,39,0.54);
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(242,182,31,0.08);
    }


    .quote-input svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        color: #84938d;
    }


    .quote-input input,
    .quote-input select {
        width: 100%;
        border: 0;
        outline: 0;
        color: #163f34;
        background: transparent;
        font: inherit;
        font-size: 0.78rem;
    }


.quote-field textarea {
    min-height: 110px;
    padding: 15px;
    resize: vertical;
    border: 1px solid rgba(25,72,55,0.13);
    border-radius: 12px;
    outline: 0;
    color: #163f34;
    background: rgba(255,255,255,0.80);
    font: inherit;
    font-size: 0.78rem;
    transition: border-color 250ms ease, box-shadow 250ms ease;
}


    .quote-field textarea:focus {
        border-color: rgba(210,160,39,0.54);
        box-shadow: 0 0 0 4px rgba(242,182,31,0.08);
    }


/* =========================================================
   CABECERA DE PASO
========================================================= */

.quote-form__step-header {
    margin-bottom: 30px;
}


    .quote-form__step-header > span {
        color: #c58a12;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.12em;
    }


    .quote-form__step-header h3 {
        margin-top: 7px;
        color: #064c3b;
        font-size: 1.55rem;
    }


    .quote-form__step-header p {
        max-width: 570px;
        margin-top: 7px;
        color: #718079;
        font-size: 0.76rem;
        line-height: 1.6;
    }


/* =========================================================
   SUBMIT
========================================================= */

.quote-form__submit {
    display: flex;
    width: 100%;
    min-height: 58px;
    margin-top: 28px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    border: 0;
    border-radius: 13px;
    color: #073f30;
    background: linear-gradient( 135deg, #d89a0a, #f2b61f, #e5a20e );
    box-shadow: 0 18px 40px rgba(205, 150, 23, 0.18);
    font-weight: 800;
    transition: transform 300ms ease, box-shadow 300ms ease;
}


    .quote-form__submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 24px 50px rgba(205,150,23,0.25);
    }


    .quote-form__submit svg {
        width: 18px;
        height: 18px;
    }


/* =========================================================
   NAVEGACIÓN
========================================================= */

.quote-form__navigation {
    display: flex;
    margin-top: 30px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}


.quote-form__navigation--end {
    justify-content: flex-end;
}


.quote-form__navigation
.quote-form__submit {
    width: auto;
    min-width: 190px;
    margin-top: 0;
    padding-inline: 30px;
}


.quote-form__back {
    display: inline-flex;
    min-height: 56px;
    padding-inline: 22px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid rgba(7, 63, 48, 0.14);
    border-radius: 13px;
    color: #17483a;
    background: rgba(255,255,255,0.80);
    font-weight: 750;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}


    .quote-form__back:hover {
        transform: translateY(-2px);
        border-color: rgba(7,139,69,0.30);
        box-shadow: 0 12px 28px rgba(31,69,52,0.08);
    }


    .quote-form__back svg {
        width: 17px;
        height: 17px;
    }


/* =========================================================
   PRIVACIDAD
========================================================= */

.quote-form__privacy {
    display: flex;
    margin-top: 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7a8983;
    font-size: 0.66rem;
}


    .quote-form__privacy svg {
        width: 14px;
        height: 14px;
    }


/* =========================================================
   ERRORES
========================================================= */

.quote-field__error {
    display: none;
    color: #a94a35;
    font-size: 0.64rem;
    line-height: 1.4;
}


.quote-field.has-error
.quote-field__error {
    display: block;
}


.quote-field.has-error
.quote-input,
.quote-field.has-error
textarea {
    border-color: rgba(183, 75, 52, 0.48);
    box-shadow: 0 0 0 4px rgba(183,75,52,0.07);
}


/* =========================================================
   RESUMEN
========================================================= */

.quote-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}


.quote-summary__item {
    padding: 18px;
    border: 1px solid rgba(24,72,55,0.10);
    border-radius: 15px;
    background: linear-gradient( 145deg, #ffffff, #faf9f3 );
}


.quote-summary__item--full {
    grid-column: 1 / -1;
}


.quote-summary__item span {
    display: block;
    color: #839089;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}


.quote-summary__item strong {
    display: block;
    margin-top: 6px;
    color: #17483a;
    font-size: 0.82rem;
    line-height: 1.5;
}


/* =========================================================
   CONFIRMACIÓN
========================================================= */

.quote-confirm {
    display: flex;
    margin-top: 25px;
    padding: 17px 18px;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    border: 1px solid rgba(196,151,54,0.18);
    border-radius: 15px;
    color: #53675f;
    background: rgba(255,249,233,0.58);
    font-size: 0.70rem;
    line-height: 1.55;
}


    .quote-confirm input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }


.quote-confirm__check {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border: 1px solid rgba(7,139,69,0.24);
    border-radius: 7px;
    color: transparent;
    background: #ffffff;
    transition: color 250ms ease, background 250ms ease;
}


    .quote-confirm__check svg {
        width: 14px;
        height: 14px;
    }


.quote-confirm input:checked + .quote-confirm__check {
    color: #ffffff;
    background: #078b45;
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 1050px) {

    .quote-panel {
        min-height: auto;
    }

    .quote-page__container {
        grid-template-columns: 1fr;
    }


    .quote-page__intro {
        max-width: 780px;
    }


    .quote-page__benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    .quote-page__image-wrap {
        width: min(680px, 100%);
        max-width: 100%;
        margin: 25px auto 0;

    }


    .quote-panel {
        max-width: none;
        justify-self: stretch;
    }
}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 650px) {

    .quote-page {
        padding-top: calc(var(--header-height) + 35px);
    }


    .quote-form__grid {
        grid-template-columns: 1fr;
    }


    .quote-field--full {
        grid-column: auto;
    }


    .quote-panel {
        padding: 24px 18px;
    }


    .quote-page__benefits {
        grid-template-columns: 1fr;
        gap: 14px;
    }


    .quote-benefit {
        align-items: center;
    }


    .quote-page__image-wrap {
        width: 112%;
        max-width: none;
        margin-top: 20px;
        margin-left: -6%;
    }


    .quote-summary {
        grid-template-columns: 1fr;
    }


    .quote-summary__item--full {
        grid-column: auto;
    }


    .quote-form__navigation {
        align-items: stretch;
        flex-direction: column-reverse;
    }


        .quote-form__navigation
        .quote-form__submit,
        .quote-form__back {
            width: 100%;
        }
}

.quote-success {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 0 0 28px 0;
    padding: 22px 24px;
    border: 1px solid rgba(6, 76, 59, 0.16);
    border-radius: 22px;
    background: radial-gradient(circle at top right, rgba(217, 149, 5, 0.10), transparent 34%), linear-gradient(135deg, #ffffff 0%, #fbfaf6 100%);
    box-shadow: 0 12px 32px rgba(6, 76, 59, 0.08);
}

.quote-success__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(6, 76, 59, 0.08);
    color: #064c3b;
}

    .quote-success__icon svg {
        width: 26px;
        height: 26px;
        stroke-width: 2;
    }

.quote-success__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}

    .quote-success__content strong {
        color: #064c3b;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .quote-success__content span {
        color: #64736d;
        font-size: 0.95rem;
        line-height: 1.65;
    }

@media (max-width: 600px) {
    .quote-success {
        gap: 14px;
        padding: 18px;
        border-radius: 18px;
    }

    .quote-success__icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

        .quote-success__icon svg {
            width: 23px;
            height: 23px;
        }
}
