/* =====================================================
   INVITATION BUILDER
===================================================== */

.invitation-builder {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 80% 12%,
            rgba(253, 234, 242, .65),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #ffffff 42%
        );

    padding: 30px 0 70px;
}


/* =====================================================
   TOP
===================================================== */

.builder-top {
    width: min(1420px, 92%);
    margin: auto;

    display: grid;
    grid-template-columns: 180px 1fr 180px;
    align-items: start;

    gap: 20px;
}


.builder-back {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: var(--text-light);

    font-size: 13px;
    font-weight: 600;

    padding-top: 13px;

    transition: .2s;
}

.builder-back:hover {
    color: var(--blue);
}


/* =====================================================
   STEPPER
===================================================== */

.builder-stepper {
    max-width: 760px;

    margin: auto;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    width: 100%;
}


.builder-step {
    width: 112px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    gap: 8px;

    color: #8190a5;

    position: relative;
}


.builder-step-circle {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #e8eff8;

    color: #31537d;

    font-size: 13px;
    font-weight: 700;

    transition: .25s;
}

.builder-step span {
    font-size: 11px;
    font-weight: 600;

    line-height: 1.3;
}


.builder-step.active {
    color: var(--pink);
}


.builder-step.active .builder-step-circle {
    background: var(--pink);
    color: white;

    box-shadow:
        0 8px 20px rgba(245, 50, 118, .25);
}


.builder-step.active::after {
    content: "";

    position: absolute;

    height: 2px;
    width: 75px;

    bottom: -14px;

    background: var(--pink);

    border-radius: 20px;
}


.builder-step-line {
    flex: 1;

    height: 1px;

    background: #dce4ef;

    margin-top: 17px;

    min-width: 35px;
}


/* mobile progress */

.builder-mobile-progress {
    display: none;
}


/* =====================================================
   HEADER
===================================================== */

.builder-header {
    width: min(1420px, 92%);
    margin: 45px auto 28px;
}


.builder-plan-badge {
    display: inline-flex;

    padding: 5px 14px;

    background: var(--pink-light);
    color: var(--pink);

    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;

    margin-bottom: 11px;
}


.builder-header h1 {
    font-family: Georgia, serif;

    font-size: clamp(37px, 4vw, 58px);

    line-height: 1.05;

    letter-spacing: -2px;

    color: var(--text);
}


.builder-header p {
    margin-top: 12px;

    font-size: 16px;

    color: var(--text-light);
}


/* =====================================================
   LAYOUT
===================================================== */

.builder-layout {
    width: min(1420px, 92%);

    margin: auto;

    display: grid;

    grid-template-columns:
        275px
        minmax(500px, 1fr)
        340px;

    gap: 25px;

    align-items: start;
}


/* =====================================================
   PLAN COLUMN
===================================================== */

.builder-plan-column {
    background: rgba(255, 255, 255, .88);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 21px;

    box-shadow: var(--shadow);
}


.builder-plan-column > h3 {
    font-size: 13px;

    margin-bottom: 15px;
}


.selected-plan-card {
    background:
        linear-gradient(
            145deg,
            #fff,
            #fff5f9
        );

    border: 1px solid #f7d6e3;

    border-radius: 13px;

    padding: 18px;
}


.selected-plan-header {
    display: grid;

    grid-template-columns:
        36px
        1fr
        auto;

    align-items: center;

    gap: 9px;
}


.plan-icon {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: var(--pink-light);

    color: var(--pink);

    display: grid;
    place-items: center;
}


.plan-name strong {
    display: block;

    font-size: 18px;
}


.plan-name small {
    display: block;

    font-size: 10px;

    color: var(--text-light);

    line-height: 1.4;
}


.plan-price {
    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;
}


.plan-features {
    list-style: none;

    margin-top: 22px;

    display: grid;

    gap: 11px;
}


.plan-features li {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--text-light);

    font-size: 12px;
}


.plan-features i {
    color: var(--pink);
}


/* =====================================================
   FORM COLUMN
===================================================== */

.builder-form-column {
    background: rgba(255, 255, 255, .94);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 30px;

    box-shadow: var(--shadow);
}


.builder-section-header {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-bottom: 24px;
}


.section-number {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--pink-light);

    color: var(--pink);

    font-size: 11px;
    font-weight: 800;
}


.builder-section-header h2 {
    font-size: 23px;

    line-height: 1.2;
}


.builder-section-header p {
    color: var(--text-light);

    font-size: 13px;

    margin-top: 4px;
}


/* =====================================================
   EVENT OPTIONS
===================================================== */

.event-options {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 13px;

    margin-bottom: 28px;
}


.event-option {
    position: relative;

    height: 105px;

    border: 1.5px solid #dce5f0;

    border-radius: 12px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    cursor: pointer;

    background: white;

    transition:
        border-color .2s,
        background .2s,
        transform .2s,
        box-shadow .2s;
}


.event-option:hover {
    border-color: #a9c6ee;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(16, 37, 70, .06);
}


.event-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.event-option .event-radio {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    border: 1.5px solid #c8d7e9;

    background: white;

    transition: .2s;
}


.event-option .event-radio::after {
    content: "";

    position: absolute;

    inset: 3px;

    border-radius: 50%;

    background: var(--pink);

    opacity: 0;

    transition: .2s;
}


.event-icon {
    font-size: 23px;

    color: #54739d;

    transition: .2s;
}


.event-name {
    font-size: 12px;

    font-weight: 600;

    color: var(--text);
}


.event-option.active {
    border-color: var(--pink);

    background:
        linear-gradient(
            145deg,
            #fff,
            #fff5f9
        );

    box-shadow:
        0 8px 23px rgba(245, 50, 118, .08);
}


.event-option.active .event-icon,
.event-option.active .event-name {
    color: var(--pink);
}


.event-option.active .event-radio {
    border-color: var(--pink);
}


.event-option.active .event-radio::after {
    opacity: 1;
}


/* =====================================================
   INPUTS
===================================================== */

.builder-field {
    margin-bottom: 19px;
}


.builder-field > label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 700;

    color: var(--text);
}


.builder-input {
    height: 48px;

    border: 1px solid #dbe4ef;

    border-radius: 9px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 15px;

    background: white;

    transition:
        border-color .2s,
        box-shadow .2s;
}


.builder-input:focus-within {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(40, 121, 246, .08);
}


.builder-input i {
    color: #9aabc1;

    font-size: 14px;
}


.builder-input input {
    width: 100%;

    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);

    font-size: 13px;
}


.builder-input input::placeholder {
    color: #9aacbf;
}


.builder-field.has-error .builder-input {
    border-color: var(--pink);

    box-shadow:
        0 0 0 3px rgba(245, 50, 118, .06);
}


.field-error {
    display: none;

    color: var(--pink);

    font-size: 10px;

    margin-top: 5px;
}


.builder-field.has-error .field-error {
    display: block;
}


/* =====================================================
   ACTIONS
===================================================== */

.builder-actions {
    margin-top: 29px;

    min-height: 67px;

    padding: 12px 14px;

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #fff7fa,
            #f7fbff
        );

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.builder-save-status {
    display: flex;
    align-items: center;

    gap: 7px;

    color: var(--text-light);

    font-size: 10px;
}


.builder-save-status i {
    color: #5fb997;
}


.builder-next-btn {
    min-width: 150px;
    height: 43px;

    padding: 0 22px;

    border: none;

    border-radius: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    background:
        linear-gradient(
            135deg,
            #f53276,
            #ed2868
        );

    color: white;

    font-weight: 700;
    font-size: 12px;

    cursor: pointer;

    box-shadow:
        0 9px 20px rgba(245, 50, 118, .23);

    transition: .25s;
}


.builder-next-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(245, 50, 118, .28);
}


/* =====================================================
   PREVIEW
===================================================== */

.builder-preview-column {
    display: grid;

    gap: 18px;
}


.preview-area {
    min-height: 320px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


.preview-decoration {
    position: absolute;

    width: 260px;
    height: 210px;

    border-radius: 50%;

    background: #f9dce8;

    transform: rotate(-12deg);
}


.preview-phone {
    position: relative;

    width: 145px;
    height: 280px;

    padding: 6px;

    border-radius: 25px;

    background: #111;

    z-index: 2;

    transform: rotate(-5deg);

    box-shadow:
        0 20px 35px rgba(0, 0, 0, .21);
}


.preview-phone-notch {
    position: absolute;

    width: 57px;
    height: 13px;

    left: 50%;
    top: 8px;

    transform: translateX(-50%);

    background: #111;

    border-radius: 20px;

    z-index: 4;
}


.preview-screen {
    width: 100%;
    height: 100%;

    border-radius: 20px;

    background:
        linear-gradient(
            160deg,
            #ffffff,
            #fff0f5
        );

    padding: 40px 15px 20px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    font-family: Georgia, serif;
}


.preview-small {
    font-family: Inter, sans-serif;

    font-size: 7px;

    color: var(--text-light);

    margin-bottom: 11px;
}


.preview-screen strong {
    font-size: 23px;

    line-height: 1;

    color: var(--text);
}


.preview-event-name {
    margin-top: 10px;

    font-size: 14px;

    color: #b72c59;
}


.preview-date {
    margin-top: 10px;

    font-family: Inter, sans-serif;

    font-size: 8px;

    color: var(--text-light);
}


.preview-flower {
    font-size: 35px;

    margin-top: 16px;

    color: var(--pink);
}


.preview-note {
    position: absolute;

    right: -3px;
    top: 60px;

    width: 116px;

    background: #fff4f8;

    padding: 16px;

    border-radius: 14px;

    color: #567092;

    font-family: Georgia, serif;

    font-size: 12px;

    line-height: 1.5;

    transform: rotate(-5deg);

    z-index: 3;
}


.preview-note i {
    display: block;

    margin-top: 7px;

    color: var(--pink);
}


.preview-heart {
    position: absolute;

    top: 15px;
    right: 40px;

    color: var(--pink);

    font-size: 28px;

    z-index: 5;
}


/* =====================================================
   SUMMARY
===================================================== */

.summary-card {
    background:
        linear-gradient(
            145deg,
            white,
            #fff8fb
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 24px;

    box-shadow: var(--shadow);
}


.summary-caption {
    font-size: 10px;

    color: var(--text-light);

    font-weight: 700;
}


.summary-plan {
    display: flex;

    align-items: center;

    gap: 11px;

    margin: 8px 0 17px;
}


.summary-icon {
    width: 38px;
    height: 38px;

    background: var(--pink-light);

    color: var(--pink);

    border-radius: 50%;

    display: grid;
    place-items: center;
}


.summary-plan strong {
    display: block;

    font-size: 22px;
}


.summary-plan span {
    display: block;

    color: var(--text-light);

    font-size: 10px;
}


.summary-card ul {
    list-style: none;

    display: grid;

    gap: 7px;

    margin: 15px 0 21px;
}


.summary-card li {
    display: flex;
    align-items: center;

    gap: 9px;

    font-size: 11px;

    color: var(--text-light);
}


.summary-card li i {
    color: var(--pink);

    font-size: 9px;
}


.summary-bottom {
    padding-top: 18px;

    border-top: 1px solid #f0e6eb;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.summary-price {
    display: flex;
    align-items: baseline;

    gap: 5px;
}


.summary-price strong {
    font-size: 28px;
}


.summary-price span {
    font-size: 11px;

    font-weight: 700;
}


.summary-tag {
    background: var(--pink-light);

    color: var(--pink);

    border-radius: 20px;

    padding: 6px 11px;

    font-size: 9px;

    text-align: center;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1180px) {

    .builder-layout {
        grid-template-columns:
            230px
            1fr;
    }

    .builder-preview-column {
        grid-column: 1 / -1;

        grid-template-columns:
            1fr
            1fr;

        align-items: center;
    }

    .preview-area {
        min-height: 330px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .invitation-builder {
        padding-top: 18px;
    }


    .builder-top {
        display: block;
    }


    .builder-back {
        margin-bottom: 20px;
    }


    .builder-stepper {
        display: none;
    }


    .builder-mobile-progress {
        display: block;

        padding: 14px 0 4px;
    }


    .mobile-progress-header {
        display: flex;

        align-items: center;
        justify-content: space-between;

        gap: 15px;

        margin-bottom: 9px;

        color: var(--text-light);

        font-size: 11px;
    }


    .mobile-progress-header strong {
        color: var(--text);
    }


    .mobile-progress-bar {
        width: 100%;
        height: 5px;

        border-radius: 10px;

        background: #e8eef6;

        overflow: hidden;
    }


    .mobile-progress-bar span {
        display: block;

        height: 100%;

        background: var(--pink);

        border-radius: inherit;
    }


    .builder-header {
        margin-top: 26px;
    }


    .builder-header h1 {
        font-size: 38px;

        letter-spacing: -1.5px;
    }


    .builder-header p {
        font-size: 14px;
    }


    .builder-layout {
        display: flex;

        flex-direction: column;

        width: min(94%, 650px);
    }


    .builder-plan-column {
        width: 100%;

        order: 2;
    }


    .builder-form-column {
        width: 100%;

        padding: 22px 17px;

        order: 1;
    }


    .builder-preview-column {
        width: 100%;

        order: 3;

        display: block;
    }


    .preview-area {
        min-height: 340px;

        margin-top: 10px;
    }


    .summary-card {
        margin-top: 10px;
    }


    .event-options {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .event-option {
        height: 100px;
    }


    .builder-actions {
        flex-direction: column;

        align-items: stretch;

        padding: 13px;
    }


    .builder-save-status {
        justify-content: center;

        text-align: center;
    }


    .builder-next-btn {
        width: 100%;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .builder-header h1 {
        font-size: 34px;
    }


    .event-options {
        gap: 9px;
    }


    .event-option {
        height: 92px;
    }


    .event-icon {
        font-size: 21px;
    }


    .preview-note {
        right: 4px;

        width: 105px;
    }


    .summary-bottom {
        align-items: flex-start;

        flex-direction: column;
    }

}

    /* =====================================================
   FORM STEPS
===================================================== */

.form-step {
    display: none;
}

.form-step.active {
    display: block;

    animation: formStepIn .32s ease;
}

@keyframes formStepIn {

    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* =====================================================
   SUBSECTIONS
===================================================== */

.builder-subsection {
    padding-bottom: 28px;

    margin-bottom: 28px;

    border-bottom: 1px solid #edf1f5;
}

.builder-subsection:last-of-type {
    border-bottom: none;
}


.builder-subsection-title {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 18px;
}


.builder-subsection-icon {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #f1f6fd;

    color: var(--blue);

    font-size: 14px;
}


.builder-subsection-title h3 {
    font-size: 14px;

    line-height: 1.3;
}


.builder-subsection-title p {
    color: var(--text-light);

    font-size: 10px;

    margin-top: 2px;
}


/* =====================================================
   TWO COLUMN FIELDS
===================================================== */

.builder-fields-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}


/* =====================================================
   LABEL ROW
===================================================== */

.builder-label-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 7px;
}


.builder-label-row label {
    font-size: 12px;

    font-weight: 700;

    color: var(--text);
}


.optional-badge {
    padding: 3px 8px;

    border-radius: 20px;

    background: #f3f6fa;

    color: var(--text-light);

    font-size: 8px;

    font-weight: 700;
}


/* =====================================================
   FIELD HINT
===================================================== */

.field-hint {
    display: block;

    margin-top: 5px;

    color: #8a9aae;

    font-size: 9px;
}


/* =====================================================
   DISABLED INPUT
===================================================== */

.builder-input-disabled {
    background: #f7f9fc;
}

.builder-input-disabled input {
    color: #8797aa;

    cursor: not-allowed;
}


/* =====================================================
   TEXTAREA
===================================================== */

.builder-textarea {
    position: relative;

    border: 1px solid #dbe4ef;

    border-radius: 10px;

    background: white;

    transition:
        border-color .2s,
        box-shadow .2s;
}


.builder-textarea:focus-within {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(40, 121, 246, .08);
}


.builder-textarea textarea {
    display: block;

    width: 100%;

    min-height: 105px;

    padding: 13px 15px 28px;

    border: none;
    outline: none;

    resize: vertical;

    background: transparent;

    color: var(--text);

    font-family: inherit;

    font-size: 12px;

    line-height: 1.5;
}


.builder-textarea textarea::placeholder {
    color: #9aacbf;
}


.textarea-counter {
    position: absolute;

    bottom: 8px;
    right: 12px;

    font-size: 9px;

    color: #9aabbf;
}


/* =====================================================
   STEP ACTIONS
===================================================== */

.builder-actions-step {
    justify-content: space-between;
}


.builder-actions-right {
    display: flex;

    align-items: center;

    gap: 15px;
}


.builder-back-btn {
    height: 43px;

    padding: 0 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 1px solid #d8e2ee;

    border-radius: 25px;

    background: white;

    color: var(--text);

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}


.builder-back-btn:hover {
    border-color: var(--blue);

    color: var(--blue);

    background: #f7faff;
}


/* =====================================================
   COMPLETED STEPS
===================================================== */

.builder-step.completed {
    color: #557493;
}


.builder-step.completed .builder-step-circle {
    background: #e5f5ee;

    color: #31936d;
}


.builder-step.completed .builder-step-circle::before {
    content: "✓";
}


.builder-step.completed .builder-step-circle {
    font-size: 0;
}


.builder-step.completed .builder-step-circle::before {
    font-size: 13px;
}


/* =====================================================
   PREVIEW STEP 2
===================================================== */

.preview-people {
    display: none;

    margin-top: 9px;

    font-family: Georgia, serif;

    font-size: 12px;

    color: var(--text);
}


.preview-people.visible {
    display: block;
}


.preview-event-details {
    display: grid;

    gap: 4px;

    margin-top: 9px;

    font-family: Inter, sans-serif;

    font-size: 6px;

    color: var(--text-light);
}


.preview-event-details span {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 4px;
}


/* =====================================================
   STEP 2 MOBILE
===================================================== */

@media (max-width: 768px) {

    .builder-fields-grid {
        grid-template-columns: 1fr;
    }


    .builder-actions-step {
        flex-direction: column-reverse;

        align-items: stretch;
    }


    .builder-actions-right {
        flex-direction: column;

        align-items: stretch;

        width: 100%;
    }


    .builder-back-btn {
        width: 100%;
    }


    .builder-subsection {
        padding-bottom: 23px;

        margin-bottom: 23px;
    }

}


/* =====================================================
   CONTROL DE PASOS
===================================================== */

.builder-form-column .form-step {
    display: none !important;
}

.builder-form-column .form-step.active {
    display: block !important;
}

/* =====================================================
   STEP 3 - DESIGN
===================================================== */

.design-toolbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}


/* =====================================================
   FILTERS
===================================================== */

.design-filters {
    display: flex;

    align-items: center;

    gap: 7px;

    flex-wrap: wrap;
}


.design-filter {
    min-height: 34px;

    padding: 0 14px;

    border: 1px solid #dbe4ef;

    border-radius: 20px;

    background: white;

    color: var(--text-light);

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}


.design-filter:hover {
    border-color: var(--pink);

    color: var(--pink);
}


.design-filter.active {
    border-color: var(--pink);

    background: var(--pink);

    color: white;

    box-shadow:
        0 5px 14px rgba(245, 50, 118, .18);
}


/* =====================================================
   SEARCH
===================================================== */

.design-search {
    min-width: 180px;

    height: 36px;

    border: 1px solid #dbe4ef;

    border-radius: 9px;

    padding: 0 12px;

    display: flex;

    align-items: center;

    gap: 8px;

    background: white;

    transition: .2s;
}


.design-search:focus-within {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(40, 121, 246, .07);
}


.design-search i {
    color: #8da0b8;

    font-size: 11px;
}


.design-search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    font-size: 10px;

    color: var(--text);
}


.design-search input::placeholder {
    color: #9aacbf;
}


/* =====================================================
   DESIGN GRID
===================================================== */

.design-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 13px;
}


/* =====================================================
   DESIGN CARD
===================================================== */

.design-card {
    position: relative;

    min-width: 0;

    border: 1.5px solid #e0e7f0;

    border-radius: 12px;

    padding: 7px;

    background: white;

    overflow: hidden;

    transition:
        transform .2s,
        border-color .2s,
        box-shadow .2s;
}


.design-card:hover {
    transform: translateY(-3px);

    border-color: #bed0e7;

    box-shadow:
        0 10px 25px rgba(16, 37, 70, .08);
}


.design-card.selected {
    border-color: var(--pink);

    background:
        linear-gradient(
            145deg,
            white,
            #fff8fb
        );

    box-shadow:
        0 10px 25px rgba(245, 50, 118, .10);
}


.design-radio {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


/* =====================================================
   IMAGE
===================================================== */

.design-image {
    position: relative;

    width: 100%;

    aspect-ratio: 1.25 / 1;

    overflow: hidden;

    border-radius: 8px;

    background: #f3f6fa;
}


.design-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s;
}


.design-card:hover .design-image img {
    transform: scale(1.025);
}


/* =====================================================
   SELECTED BADGE
===================================================== */

.design-selected-badge {
    position: absolute;

    top: 7px;
    right: 7px;

    padding: 4px 8px;

    display: none;

    align-items: center;

    gap: 4px;

    border-radius: 15px;

    background: var(--pink);

    color: white;

    font-size: 8px;

    font-weight: 700;

    box-shadow:
        0 5px 15px rgba(245, 50, 118, .25);
}


.design-card.selected .design-selected-badge {
    display: inline-flex;
}


/* =====================================================
   CARD BODY
===================================================== */

.design-card-body {
    padding: 8px 3px 2px;
}


.design-category {
    display: inline-flex;

    padding: 3px 8px;

    margin-bottom: 4px;

    border-radius: 20px;

    background: #edf5ff;

    color: var(--blue);

    font-size: 8px;

    font-weight: 600;
}


.design-card.selected .design-category {
    background: var(--pink-light);

    color: var(--pink);
}


.design-card h3 {
    font-size: 11px;

    line-height: 1.3;

    margin-bottom: 8px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =====================================================
   DESIGN ACTIONS
===================================================== */

.design-card-actions {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 6px;
}


.design-preview-btn,
.design-select-btn {
    height: 30px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 8px;

    font-weight: 600;

    transition: .2s;
}


.design-preview-btn {
    border: 1px solid #d9e3ef;

    background: white;

    color: var(--text);
}


.design-preview-btn:hover {
    border-color: var(--blue);

    color: var(--blue);
}


.design-select-btn {
    border: none;

    background: var(--pink-light);

    color: var(--pink);
}


.design-select-btn:hover {
    background: #fbdbe8;
}


.design-card.selected .design-select-btn {
    background: var(--pink);

    color: white;
}


/* =====================================================
   ERROR
===================================================== */

.design-selection-error {
    display: none;

    margin-bottom: 15px;

    padding: 10px 12px;

    border-radius: 9px;

    background: #fff2f6;

    color: var(--pink);

    font-size: 10px;
}


.design-selection-error.visible {
    display: flex;

    align-items: center;

    gap: 7px;
}


/* =====================================================
   EMPTY SEARCH
===================================================== */

.design-empty {
    display: none;

    padding: 45px 20px;

    text-align: center;

    color: var(--text-light);
}


.design-empty.visible {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;
}


.design-empty i {
    font-size: 30px;

    color: #a8b7c8;
}


.design-empty strong {
    color: var(--text);

    font-size: 13px;
}


.design-empty span {
    font-size: 10px;
}


/* =====================================================
   SELECTED DESIGN SUMMARY
===================================================== */

.selected-design-summary {
    display: none;
}


.selected-design-summary.visible {
    display: block;
}


.selected-design-heading {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 14px;
}


.selected-design-heading small {
    display: block;

    color: var(--text-light);

    font-size: 8px;
}


.selected-design-heading strong {
    display: block;

    font-size: 15px;
}


.selected-design-content {
    display: grid;

    grid-template-columns:
        85px
        1fr;

    gap: 13px;

    align-items: center;
}


.selected-design-content img {
    width: 85px;
    height: 105px;

    object-fit: cover;

    border-radius: 8px;

    border: 1px solid var(--border);
}


.selected-design-category {
    display: inline-flex;

    padding: 4px 9px;

    margin-bottom: 7px;

    border-radius: 20px;

    background: var(--pink-light);

    color: var(--pink);

    font-size: 8px;

    font-weight: 700;
}


.selected-design-content p {
    color: var(--text-light);

    font-size: 9px;

    line-height: 1.5;
}


.summary-design-divider {
    height: 1px;

    background: #edf0f4;

    margin: 18px 0;
}


/* =====================================================
   PHONE DESIGN PREVIEW
===================================================== */

.preview-screen {
    position: relative;

    overflow: hidden;
}


.preview-design-image {
    display: none;

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 10;
}


.preview-screen.design-mode .preview-design-image {
    display: block;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

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

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .design-toolbar {
        align-items: stretch;

        flex-direction: column;
    }


    .design-filters {
        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 4px;
    }


    .design-filter {
        flex-shrink: 0;
    }


    .design-search {
        width: 100%;

        min-width: 0;
    }


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

        gap: 9px;
    }


    .design-card {
        padding: 6px;
    }


    .design-card-actions {
        grid-template-columns: 1fr;
    }


    .design-preview-btn,
    .design-select-btn {
        width: 100%;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

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


    .design-image {
        aspect-ratio: 1.45 / 1;
    }

}

/* =====================================================
   STEP 4 - PERSONALIZATION
===================================================== */

.personalization-title {
    margin-bottom: 17px;
}


.personalization-title h3 {
    font-size: 15px;
}


.personalization-title p {
    margin-top: 3px;

    color: var(--text-light);

    font-size: 10px;
}


/* =====================================================
   GRID
===================================================== */

.personalization-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;
}


/* =====================================================
   CARD
===================================================== */

.personalization-card {
    border: 1px solid #e0e7f0;

    border-radius: 13px;

    background: #fafbfd;

    transition:
        border-color .2s,
        background .2s,
        box-shadow .2s;
}


.personalization-card.active {
    border-color: #d8e4f1;

    background: white;

    box-shadow:
        0 6px 18px rgba(16, 37, 70, .045);
}


/* cards con contenido ocupan toda la fila */

.personalization-card:has(.personalization-content) {
    grid-column: span 2;
}


/* =====================================================
   CARD HEADER
===================================================== */

.personalization-card-header {
    min-height: 76px;

    padding: 14px 15px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.personalization-card-info {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 11px;
}


.personalization-icon {
    width: 39px;
    height: 39px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #f1f5fb;

    color: #6c85a7;

    font-size: 15px;

    transition: .2s;
}


.personalization-card.active
.personalization-icon {
    background: var(--pink-light);

    color: var(--pink);
}


.personalization-card-info strong {
    display: block;

    color: var(--text);

    font-size: 12px;
}


.personalization-card-info span {
    display: block;

    margin-top: 2px;

    color: var(--text-light);

    font-size: 10px;

    line-height: 1.4;
}


/* =====================================================
   SWITCH
===================================================== */

.builder-switch {
    position: relative;

    width: 42px;
    height: 23px;

    flex-shrink: 0;

    cursor: pointer;
}


.builder-switch input {
    position: absolute;

    width: 0;
    height: 0;

    opacity: 0;
}


.builder-switch-slider {
    position: absolute;

    inset: 0;

    border-radius: 30px;

    background: #dbe3ed;

    transition: .25s;
}


.builder-switch-slider::before {
    content: "";

    position: absolute;

    width: 17px;
    height: 17px;

    top: 3px;
    left: 3px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, .14);

    transition: .25s;
}


.builder-switch input:checked
+ .builder-switch-slider {
    background: var(--pink);
}


.builder-switch input:checked
+ .builder-switch-slider::before {
    transform: translateX(19px);
}


/* =====================================================
   CONTENT
===================================================== */

.personalization-content {
    padding:
        0
        15px
        15px;

    border-top: 1px solid #edf1f5;

    padding-top: 15px;
}


.personalization-card:not(.active)
.personalization-content {
    display: none;
}


/* =====================================================
   GALLERY
===================================================== */

.gallery-upload {
    min-height: 145px;

    border: 1.5px dashed #cbd8e7;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            #fafcff,
            #fffafd
        );

    text-align: center;

    cursor: pointer;

    transition: .2s;
}


.gallery-upload:hover {
    border-color: var(--pink);

    background: #fff9fb;
}


.gallery-upload input {
    display: none;
}


.gallery-upload-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 5px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--pink-light);

    color: var(--pink);

    font-size: 17px;
}


.gallery-upload strong {
    color: var(--text);

    font-size: 11px;
}


.gallery-upload span:not(.gallery-upload-icon) {
    color: var(--text-light);

    font-size: 10px;
}


.gallery-upload small {
    margin-top: 4px;

    color: #9babbd;

    font-size: 8px;
}


/* =====================================================
   GALLERY PREVIEW
===================================================== */

.gallery-preview {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 8px;

    margin-top: 12px;
}


.gallery-preview-item {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 8px;

    background: #f2f5f9;
}


.gallery-preview-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.gallery-preview-number {
    position: absolute;

    bottom: 5px;
    right: 5px;

    width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(16, 37, 70, .78);

    color: white;

    font-size: 7px;
}


/* =====================================================
   TABLET / MOBILE
===================================================== */

@media (max-width: 768px) {

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


    .personalization-card,
    .personalization-card:has(.personalization-content) {
        grid-column: auto;
    }


    .personalization-card-header {
        min-height: 70px;
    }


    .gallery-preview {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* =====================================================
   STEP 5 - CHECKOUT
===================================================== */

.checkout-ready {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 25px;

    padding: 16px;

    border: 1px solid #dcefe6;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f5fcf8,
            #f9fffc
        );
}


.checkout-ready-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #e5f6ee;

    color: #36936f;

    font-size: 17px;
}


.checkout-ready strong {
    display: block;

    font-size: 12px;

    color: var(--text);
}


.checkout-ready span {
    display: block;

    margin-top: 2px;

    font-size: 10px;

    color: var(--text-light);
}


/* =====================================================
   SECTIONS
===================================================== */

.checkout-section {
    padding-bottom: 26px;

    margin-bottom: 26px;

    border-bottom: 1px solid #edf1f5;
}


.checkout-section-heading {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 16px;
}


.checkout-section-heading > div:nth-child(2) {
    flex: 1;
}


.checkout-section-heading h3 {
    font-size: 14px;
}


.checkout-section-heading p {
    margin-top: 2px;

    color: var(--text-light);

    font-size: 9px;
}


.checkout-edit-btn {
    height: 31px;

    padding: 0 11px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 1px solid #dbe4ef;

    border-radius: 20px;

    background: white;

    color: var(--text-light);

    font-size: 9px;

    cursor: pointer;

    transition: .2s;
}


.checkout-edit-btn:hover {
    border-color: var(--blue);

    color: var(--blue);

    background: #f8fbff;
}


/* =====================================================
   EVENT
===================================================== */

.checkout-event-card {
    padding: 17px;

    border: 1px solid #e0e7f0;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            white,
            #fbfdff
        );
}


.checkout-event-main {
    padding-bottom: 14px;

    margin-bottom: 14px;

    border-bottom: 1px solid #edf1f5;
}


.checkout-event-type {
    display: inline-flex;

    padding: 3px 9px;

    margin-bottom: 5px;

    border-radius: 20px;

    background: var(--pink-light);

    color: var(--pink);

    font-size: 8px;

    font-weight: 700;
}


.checkout-event-main h3 {
    font-family: Georgia, serif;

    font-size: 19px;

    line-height: 1.2;
}


.checkout-event-people {
    display: block;

    margin-top: 3px;

    color: var(--text-light);

    font-size: 10px;
}


.checkout-event-details {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 13px;
}


.checkout-detail {
    display: flex;

    align-items: flex-start;

    gap: 9px;
}


.checkout-detail > i {
    width: 29px;
    height: 29px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: #f1f6fc;

    color: var(--blue);

    font-size: 11px;
}


.checkout-detail small {
    display: block;

    color: var(--text-light);

    font-size: 8px;
}


.checkout-detail strong {
    display: block;

    margin-top: 1px;

    color: var(--text);

    font-size: 10px;
}


.checkout-detail span {
    display: block;

    margin-top: 2px;

    color: var(--text-light);

    font-size: 9px;

    line-height: 1.4;
}


/* =====================================================
   DESIGN
===================================================== */

.checkout-design-card {
    display: grid;

    grid-template-columns:
        105px
        1fr;

    gap: 15px;

    align-items: center;

    padding: 12px;

    border: 1px solid #e0e7f0;

    border-radius: 12px;

    background: white;
}


.checkout-design-image {
    width: 105px;
    height: 125px;

    overflow: hidden;

    border-radius: 9px;

    background: #f3f6fa;
}


.checkout-design-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.checkout-design-category {
    display: inline-flex;

    margin-bottom: 6px;

    padding: 3px 8px;

    border-radius: 20px;

    background: var(--pink-light);

    color: var(--pink);

    font-size: 8px;

    font-weight: 700;
}


.checkout-design-info h3 {
    font-size: 15px;

    margin-bottom: 4px;
}


.checkout-design-info p {
    max-width: 350px;

    color: var(--text-light);

    font-size: 9px;

    line-height: 1.5;
}


/* =====================================================
   PERSONALIZATION SUMMARY
===================================================== */

.checkout-personalization-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px;
}


.checkout-personalization-item {
    min-height: 48px;

    padding: 9px 11px;

    display: flex;

    align-items: center;

    gap: 9px;

    border: 1px solid #e3e9f1;

    border-radius: 9px;

    background: #fbfcfe;
}


.checkout-personalization-item i {
    width: 27px;
    height: 27px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--pink-light);

    color: var(--pink);

    font-size: 9px;
}


.checkout-personalization-item strong {
    display: block;

    font-size: 9px;
}


.checkout-personalization-item span {
    display: block;

    margin-top: 1px;

    color: var(--text-light);

    font-size: 9px;
}


/* =====================================================
   PAYMENT CARD
===================================================== */

.checkout-payment-card {
    padding: 21px;

    border: 1px solid #f2dce5;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            white,
            #fff9fb
        );

    box-shadow:
        0 10px 28px rgba(245, 50, 118, .06);
}


.checkout-payment-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}


.checkout-payment-caption {
    display: block;

    color: var(--text-light);

    font-size: 8px;
}


.checkout-payment-header h3 {
    margin-top: 2px;

    font-size: 15px;
}


.checkout-secure {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 5px 9px;

    border-radius: 20px;

    background: #edf8f3;

    color: #328563;

    font-size: 8px;

    font-weight: 700;
}


/* =====================================================
   PLAN
===================================================== */

.checkout-plan-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.checkout-plan-info {
    display: flex;

    align-items: center;

    gap: 10px;
}


.checkout-plan-icon {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--pink-light);

    color: var(--pink);
}


.checkout-plan-info strong {
    display: block;

    font-size: 12px;
}


.checkout-plan-info span {
    display: block;

    color: var(--text-light);

    font-size: 9px;
}


.checkout-line-price {
    font-size: 12px;
}


.checkout-price-divider {
    height: 1px;

    margin: 18px 0;

    background: #eee4e8;
}


/* =====================================================
   TOTAL
===================================================== */

.checkout-total {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.checkout-total > div:first-child span {
    display: block;

    color: var(--text);

    font-size: 12px;

    font-weight: 700;
}


.checkout-total > div:first-child small {
    display: block;

    color: var(--text-light);

    font-size: 8px;
}


.checkout-total-price {
    display: flex;

    align-items: baseline;

    gap: 5px;
}


.checkout-total-price strong {
    font-size: 28px;

    color: var(--text);
}


.checkout-total-price span {
    font-size: 10px;

    font-weight: 700;
}


/* =====================================================
   PAYMENT METHOD
===================================================== */

.checkout-payment-method {
    display: grid;

    grid-template-columns:
        38px
        1fr
        auto;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    padding: 13px;

    border: 1px solid #dfe7f0;

    border-radius: 10px;

    background: white;
}


.checkout-payment-method-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #eef5ff;

    color: var(--blue);
}


.checkout-payment-method strong {
    display: block;

    font-size: 10px;
}


.checkout-payment-method span {
    display: block;

    margin-top: 2px;

    color: var(--text-light);

    font-size: 9px;
}


.checkout-payment-method > i {
    color: #a4b1c1;

    font-size: 9px;
}


/* =====================================================
   TERMS
===================================================== */

.checkout-terms {
    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 18px;

    cursor: pointer;
}


.checkout-terms input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.checkout-checkbox {
    position: relative;

    width: 17px;
    height: 17px;

    flex-shrink: 0;

    border: 1.5px solid #cbd7e6;

    border-radius: 5px;

    background: white;

    transition: .2s;
}


.checkout-terms input:checked
+ .checkout-checkbox {
    border-color: var(--pink);

    background: var(--pink);
}


.checkout-terms input:checked
+ .checkout-checkbox::after {
    content: "✓";

    position: absolute;

    inset: 0;

    display: grid;
    place-items: center;

    color: white;

    font-size: 10px;

    font-weight: 800;
}


.checkout-terms > span:last-child {
    color: var(--text-light);

    font-size: 10px;

    line-height: 1.5;
}


.checkout-terms a {
    color: var(--blue);

    font-weight: 600;
}


.checkout-terms-error {
    display: none;

    align-items: center;

    gap: 6px;

    margin-top: 8px;

    color: var(--pink);

    font-size: 8px;
}


.checkout-terms-error.visible {
    display: flex;
}


/* =====================================================
   SECURITY
===================================================== */

.checkout-security {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;

    margin-top: 20px;

    padding-top: 15px;

    border-top: 1px solid #eee8eb;
}


.checkout-security span {
    display: flex;

    align-items: center;

    gap: 5px;

    color: var(--text-light);

    font-size: 9px;
}


.checkout-security i {
    color: #55a584;
}


/* =====================================================
   PAY BUTTON
===================================================== */

.checkout-pay-btn {
    min-width: 190px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .checkout-event-details {
        grid-template-columns: 1fr;
    }


    .checkout-personalization-list {
        grid-template-columns: 1fr;
    }


    .checkout-design-card {
        grid-template-columns:
            90px
            1fr;
    }


    .checkout-design-image {
        width: 90px;
        height: 110px;
    }


    .checkout-section-heading {
        align-items: flex-start;
    }


    .checkout-edit-btn {
        margin-left: auto;
    }


    .checkout-security {
        gap: 11px;
    }

}


@media (max-width: 480px) {

    .checkout-design-card {
        grid-template-columns: 1fr;
    }


    .checkout-design-image {
        width: 100%;
        height: 180px;
    }


    .checkout-total-price strong {
        font-size: 24px;
    }

}

.gallery-error {
    display: none;

    margin-top: 12px;
    padding: 12px 14px;

    border: 1px solid #f1b8b8;
    border-radius: 8px;

    background: #fff5f5;

    color: #b42318;

    font-size: 13px;
    line-height: 1.5;
}

.gallery-error.visible {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gallery-error i {
    margin-top: 2px;

    color: #dc2626;
}

.music-catalog {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.music-option {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;

    border: 1px solid #e8e4eb;
    border-radius: 12px;

    background: #fff;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.music-option:hover {
    border-color: #c7b2cf;
    transform: translateY(-1px);
}

.music-option.selected {
    border-color: #8f5ca8;

    box-shadow:
        0 0 0 3px rgba(143, 92, 168, .08);
}

.music-radio {
    display: none;
}

.music-option-radio {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    border: 2px solid #bbb1c0;
    border-radius: 50%;

    position: relative;
}

.music-option.selected .music-option-radio {
    border-color: #8f5ca8;
}

.music-option.selected .music-option-radio::after {
    content: '';

    position: absolute;

    width: 8px;
    height: 8px;

    top: 3px;
    left: 3px;

    border-radius: 50%;

    background: #8f5ca8;
}

.music-cover {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    border-radius: 8px;

    object-fit: cover;
}

.music-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2ebf5;

    color: #8f5ca8;
}

.music-option-info {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-width: 0;
}

.music-option-info strong {
    color: #2d2930;

    font-size: 14px;
}

.music-option-info small {
    margin-top: 3px;

    color: #817986;

    font-size: 12px;
}

.music-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 10px;

    border: 0;
    border-radius: 8px;

    background: #f3edf6;

    color: #805496;

    font-size: 12px;

    cursor: pointer;
}

.music-preview-btn.playing {
    background: #8f5ca8;

    color: white;
}

.music-selection-error {
    display: none;

    margin-bottom: 12px;
    padding: 10px 12px;

    border-radius: 8px;

    background: #fff5f5;

    color: #b42318;

    font-size: 13px;
}

.music-selection-error.visible {
    display: flex;
    align-items: center;
    gap: 7px;
}

.music-empty {
    padding: 25px;

    text-align: center;

    color: #827a87;
}

/* =====================================================
   CUSTOMER ACCESS
===================================================== */

.customer-access-card {
    padding: 17px;

    border: 1px solid #e0e7f0;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fbfdff
        );
}


.customer-access-message {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 18px;

    padding: 12px;

    border-radius: 10px;

    background: #f3f8ff;
}


.customer-access-message-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #e5f0ff;

    color: var(--blue);
}


.customer-access-message strong {
    display: block;

    font-size: 10px;

    color: var(--text);
}


.customer-access-message span {
    display: block;

    margin-top: 2px;

    font-size: 9px;

    line-height: 1.5;

    color: var(--text-light);
}

/* =====================================================
   ITINERARIO
===================================================== */

.itinerary-intro {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 16px;
    padding: 11px 13px;

    border-radius: 10px;

    background: #f5f9ff;

    color: var(--text-light);

    font-size: 11px;
}

.itinerary-intro i {
    color: var(--blue);
}


/* LISTA */

.itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* ITEM */

.itinerary-item {
    padding: 16px;

    border: 1px solid #e3eaf2;

    border-radius: 13px;

    background: #fff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.itinerary-item:hover {
    border-color: #cfdcec;

    box-shadow:
        0 5px 18px rgba(16, 37, 70, .05);
}


/* HEADER */

.itinerary-item-header {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 14px;
}

.itinerary-item-header strong {
    flex: 1;

    font-size: 12px;

    color: var(--text);
}

.itinerary-item-number {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--pink-light);

    color: var(--pink);

    font-size: 10px;
    font-weight: 700;
}


/* CAMPOS */

.itinerary-fields {
    display: grid;
    grid-template-columns: 150px 1fr 180px;
    gap: 13px;
}

.itinerary-description-field {
    grid-column: 1 / -1;
}


/* DELETE */

.itinerary-remove-btn {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: #fff2f4;

    color: #e64b65;

    cursor: pointer;

    transition: .2s ease;
}

.itinerary-remove-btn:hover {
    background: #ffe3e8;
}


/* ADD */

.itinerary-add-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 14px;
    padding: 12px 16px;

    border: 1px dashed #c6d7ec;
    border-radius: 11px;

    background: #f9fbfe;

    color: var(--blue);

    font-weight: 600;

    cursor: pointer;

    transition: .2s ease;
}

.itinerary-add-btn:hover {
    border-color: var(--blue);

    background: #f2f7ff;
}


/* ERROR */

.itinerary-error {
    display: none;

    margin-top: 10px;

    color: #dc3545;

    font-size: 11px;
}

.itinerary-error.visible {
    display: block;
}


/* RESPONSIVE */

@media (max-width: 768px) {

    .itinerary-fields {
        grid-template-columns: 1fr 1fr;
    }

    .itinerary-description-field {
        grid-column: 1 / -1;
    }

}

@media (max-width: 520px) {

    .itinerary-fields {
        grid-template-columns: 1fr;
    }

    .itinerary-description-field {
        grid-column: auto;
    }

}


/* =====================================================
   DESIGN PREVIEW MODAL
===================================================== */

.design-preview-modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


/* ABIERTO */

.design-preview-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* BACKDROP */

.design-preview-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(8, 22, 45, .62);

    backdrop-filter:
        blur(5px);
}


/* DIALOG */

.design-preview-dialog {
    position: relative;

    width: min(520px, 100%);
    max-height: calc(100vh - 48px);

    display: flex;
    flex-direction: column;

    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 25px 80px
        rgba(10, 30, 60, .28);

    overflow: hidden;

    transform:
        translateY(18px)
        scale(.97);

    transition:
        transform .25s ease;
}


.design-preview-modal.is-open
.design-preview-dialog {

    transform:
        translateY(0)
        scale(1);
}


/* =====================================================
   HEADER
===================================================== */

.design-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 20px;

    border-bottom:
        1px solid var(--border);
}


.design-preview-eyebrow {
    display: block;

    margin-bottom: 3px;

    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;

    color: var(--pink);
}


.design-preview-header h3 {
    margin: 0;

    font-size: 18px;

    color: var(--text);
}


/* CLOSE */

.design-preview-close {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #f3f6fa;

    color: var(--text);

    font-size: 15px;

    cursor: pointer;

    transition: .2s ease;
}


.design-preview-close:hover {
    background: #e8eef6;

    transform: rotate(5deg);
}


/* =====================================================
   BODY
===================================================== */

.design-preview-body {
    flex: 1;

    min-height: 0;

    padding: 22px;

    overflow-y: auto;

    background:
        linear-gradient(
            145deg,
            #f6f9fd,
            #fff5f9
        );
}


/* DEVICE */

.design-preview-device {
    width: min(330px, 100%);

    margin: 0 auto;

    padding: 9px;

    border-radius: 26px;

    background: #16191d;

    box-shadow:
        0 18px 45px
        rgba(19, 39, 70, .18);
}


.design-preview-device img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 19px;

    background: #fff;
}


/* =====================================================
   FOOTER
===================================================== */

.design-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 16px 20px;

    border-top:
        1px solid var(--border);

    background: #fff;
}


.design-preview-info {
    min-width: 0;
}


.design-preview-info strong {
    display: block;

    margin-bottom: 3px;

    font-size: 13px;

    color: var(--text);
}


.design-preview-info span {
    display: block;

    font-size: 10px;

    color: var(--text-light);
}


/* SELECT BUTTON */

.design-preview-select-btn {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 11px 16px;

    border: 0;
    border-radius: 10px;

    background: var(--pink);

    color: #fff;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}


.design-preview-select-btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(245, 50, 118, .22);
}


/* =====================================================
   BODY LOCK
===================================================== */

body.modal-open {
    overflow: hidden;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 600px) {

    .design-preview-modal {
        padding: 12px;
    }


    .design-preview-dialog {
        max-height:
            calc(100vh - 24px);

        border-radius: 16px;
    }


    .design-preview-body {
        padding: 16px;
    }


    .design-preview-device {
        width: min(
            290px,
            100%
        );
    }


    .design-preview-footer {
        flex-direction: column;
        align-items: stretch;
    }


    .design-preview-select-btn {
        width: 100%;
    }

}

