/* Configurador "Crea tu página" — formulario + vista previa en vivo.
   Prefijo .cfg- para no chocar con pages-pro. La preview usa la variable
   --cfg-accent que el JS actualiza con el color elegido por el cliente. */

.cfg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 960px) {
    .cfg-layout { grid-template-columns: 1fr; }
}

/* ------------------------------- Planes -------------------------------- */

.cfg-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 1rem;
    margin: .75rem 0 2.4rem;
}

@media (max-width: 900px) {
    .cfg-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cfg-plan:last-child {
        grid-column: 1 / -1;
    }
}

.cfg-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dedfe5;
    border-radius: 22px;
    padding: 1.8rem;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 16px 45px rgba(15, 22, 42, .06);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.cfg-plan::before {
    position: absolute;
    top: 0;
    right: 1.8rem;
    left: 1.8rem;
    height: 3px;
    border-radius: 0 0 99px 99px;
    background: #111827;
    content: "";
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .22s ease, transform .22s ease;
}

.cfg-plan:hover {
    border-color: #b9bdc8;
    box-shadow: 0 24px 55px rgba(15, 22, 42, .11);
    transform: translateY(-5px);
}

.cfg-plan.is-active {
    border-color: #4263ff;
    box-shadow: 0 0 0 3px rgba(66, 99, 255, .16), 0 24px 55px rgba(15, 22, 42, .14);
}

.cfg-plan.is-active::before {
    background: linear-gradient(90deg, #4263ff, #17cbff);
    opacity: 1;
    transform: scaleX(1);
}

.cfg-plan--featured {
    border-color: #111827;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(23, 203, 255, .18), transparent 32%),
        #111827;
    box-shadow: 0 24px 60px rgba(15, 22, 42, .2);
}

.cfg-plan--featured::before {
    background: #17cbff;
    opacity: 1;
    transform: scaleX(1);
}

.cfg-plan--featured:hover,
.cfg-plan--featured.is-active {
    box-shadow: 0 30px 65px rgba(15, 22, 42, .28);
}

.cfg-plan--featured.is-active {
    border-color: #17cbff;
    box-shadow: 0 0 0 3px rgba(23, 203, 255, .2), 0 30px 65px rgba(15, 22, 42, .3);
}

.cfg-plan__topline {
    min-height: 1.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.cfg-plan__badge {
    padding: .36rem .66rem;
    border-radius: 999px;
    color: #07111f;
    background: #17cbff;
    font-size: .58rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cfg-plan__name {
    color: #111827;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.08;
    margin: 1.2rem 0 1.25rem;
}

.cfg-plan__pricing {
    margin-bottom: 1.3rem;
    padding: 1rem 0;
    border-top: 1px solid #e7e8ec;
    border-bottom: 1px solid #e7e8ec;
}

.cfg-plan__price-label {
    display: block;
    margin-bottom: .45rem;
    color: #737989;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cfg-plan__price {
    display: flex;
    align-items: baseline;
    gap: .08em;
    color: #111827;
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-size: clamp(1.75rem, 2.7vw, 2.2rem);
    font-weight: 680;
    letter-spacing: -.04em;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.cfg-plan__price > span {
    margin-right: .02em;
}

.cfg-plan__price small {
    margin-left: .45rem;
    color: #7b8190;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .58rem;
    font-weight: 500;
    letter-spacing: .08em;
}

.cfg-plan__renewal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: #737989;
    font-size: .7rem;
    margin: .8rem 0 0;
}

.cfg-plan__renewal strong {
    color: #343b4a;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.cfg-plan__desc {
    color: #555d6e;
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 1.35rem;
}

.cfg-plan__features {
    display: grid;
    gap: .7rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cfg-plan__features li {
    color: #343b4a;
    font-size: .81rem;
    line-height: 1.45;
    padding-left: 1.55rem;
    position: relative;
}

.cfg-plan__features li::before {
    display: grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    color: #fff;
    background: #111827;
    content: "✓";
    font-size: .62rem;
    font-weight: 900;
    left: 0;
    top: .08rem;
    position: absolute;
}

.cfg-plan__tag {
    display: inline-block;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: #687083;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.cfg-plan__details {
    border-bottom: 1px solid #e7e8ec;
}

.cfg-plan__details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
    color: #343b4a;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    list-style: none;
}

.cfg-plan__details summary::-webkit-details-marker {
    display: none;
}

.cfg-plan__details summary:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
    border-radius: 4px;
}

.cfg-plan__details summary svg {
    width: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform .2s ease;
}

.cfg-plan__details[open] summary svg {
    transform: rotate(180deg);
}

.cfg-plan__details-body {
    padding: .45rem 0 1.35rem;
}

.cfg-plan__details-body .cfg-plan__desc {
    margin-top: 0;
}

.cfg-plan__select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.85rem;
    margin-top: 1.15rem;
    padding: .65rem .8rem;
    border: 1px solid #d9dce4;
    border-radius: 12px;
    color: #343b4a;
    background: #f8f9fb;
    font-size: .78rem;
    font-weight: 700;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cfg-plan__select-label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.cfg-plan__radio {
    position: relative;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    border: 1.5px solid #9aa1b1;
    border-radius: 50%;
    background: #fff;
}

.cfg-plan__radio::after {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    content: "✓";
    font-size: .62rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.5);
    transition: opacity .18s ease, transform .18s ease;
}

.cfg-plan__select svg {
    width: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    transition: transform .2s ease;
}

.cfg-plan:hover .cfg-plan__select svg {
    transform: translateX(3px);
}

.cfg-plan.is-active .cfg-plan__select {
    border-color: #4263ff;
    color: #fff;
    background: linear-gradient(135deg, #354cf1, #4263ff);
    box-shadow: 0 10px 22px rgba(66, 99, 255, .24);
}

.cfg-plan.is-active .cfg-plan__radio {
    border-color: #fff;
    background: rgba(255, 255, 255, .18);
}

.cfg-plan.is-active .cfg-plan__radio::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cfg-plan.is-active .cfg-plan__select-label > span:last-child::after {
    content: " · seleccionado";
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
}

.cfg-plan--featured .cfg-plan__name,
.cfg-plan--featured .cfg-plan__price,
.cfg-plan--featured .cfg-plan__select {
    color: #fff;
}

.cfg-plan--featured .cfg-plan__tag,
.cfg-plan--featured .cfg-plan__desc,
.cfg-plan--featured .cfg-plan__features li {
    color: #b9c4d5;
}

.cfg-plan--featured .cfg-plan__pricing {
    border-color: rgba(255, 255, 255, .15);
}

.cfg-plan--featured .cfg-plan__details {
    border-color: rgba(255, 255, 255, .15);
}

.cfg-plan--featured .cfg-plan__details summary {
    color: #fff;
}

.cfg-plan--featured .cfg-plan__details summary:focus-visible {
    outline-color: #17cbff;
}

.cfg-plan--featured .cfg-plan__price-label,
.cfg-plan--featured .cfg-plan__renewal,
.cfg-plan--featured .cfg-plan__price small {
    color: #91a0b6;
}

.cfg-plan--featured .cfg-plan__renewal strong {
    color: #fff;
}

.cfg-plan--featured .cfg-plan__features li::before {
    color: #07111f;
    background: #17cbff;
}

.cfg-plan--featured .cfg-plan__select {
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.cfg-plan--featured .cfg-plan__radio {
    border-color: #7b879a;
    background: transparent;
}

.cfg-plan--featured.is-active .cfg-plan__select {
    border-color: #17cbff;
    color: #07111f;
    background: #17cbff;
    box-shadow: 0 12px 26px rgba(23, 203, 255, .24);
}

.cfg-plan--featured.is-active .cfg-plan__radio {
    border-color: #07111f;
    background: rgba(7, 17, 31, .1);
}

.cfg-plan--featured.is-active .cfg-plan__radio::after {
    color: #07111f;
}

.cfg-plan--featured.is-active .cfg-plan__select-label > span:last-child::after {
    color: rgba(7, 17, 31, .68);
}

@media (max-width: 640px) {
    .cfg-plans { grid-template-columns: 1fr; }
    .cfg-plan,
    .cfg-plan:last-child {
        min-height: 0;
        grid-column: auto;
    }

    .cfg-plan__select {
        margin-top: 1.15rem;
    }
}

/* ------------------------------ Formulario ------------------------------ */

.cfg-form {
    background: var(--td-surface, #fff);
    border: 1px solid var(--td-line, #e4e1d8);
    border-radius: 16px;
    padding: 1.6rem;
}

.cfg-form h2 { font-size: 1.05rem; margin: 0 0 1.1rem; }

.cfg-field { margin-bottom: 1.05rem; }

.cfg-field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.cfg-field label small { font-weight: 400; color: #57544c; }

.cfg-field input[type="text"],
.cfg-field input[type="tel"],
.cfg-field select {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--td-line, #e4e1d8);
    border-radius: 10px;
    font: inherit;
    font-size: .9rem;
    background: #fff;
}

.cfg-field input:focus,
.cfg-field select:focus {
    outline: 2px solid #1c1b18;
    outline-offset: -1px;
}

.cfg-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.cfg-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}

.cfg-swatch.is-active {
    border-color: #1c1b18;
}

.cfg-swatch--custom {
    position: relative;
    overflow: hidden;
    background: conic-gradient(#e63946, #f4a261, #2a9d8f, #457b9d, #8338ec, #e63946);
}

.cfg-swatch--custom input {
    position: absolute;
    inset: -8px;
    width: 52px;
    height: 52px;
    opacity: 0;
    cursor: pointer;
}

.cfg-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}

@media (max-width: 520px) {
    .cfg-row-2 { grid-template-columns: 1fr; }
}

.cfg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.3rem;
}

/* ------------------------------- Preview -------------------------------- */

.cfg-preview {
    position: sticky;
    top: 5.5rem;
}

@media (max-width: 960px) {
    /* relative (no static): la burbuja del tour se posiciona contra .cfg-preview */
    .cfg-preview { position: relative; top: 0; }
}

.cfg-preview__note {
    text-align: center;
    font-size: .75rem;
    color: #57544c;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    margin: .8rem 0 0;
}

/* Marco teléfono (plan bio) */
.cfg-phone {
    width: min(320px, 88vw);
    margin: 0 auto;
    border: 10px solid #1c1b18;
    border-radius: 34px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(28, 27, 24, .18);
}

.cfg-phone__screen {
    min-height: 480px;
    padding: 2.2rem 1.3rem 1.6rem;
    background:
        radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--cfg-accent) 18%, #ffffff) 0%, #ffffff 55%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Marco navegador (landing / multipágina) */
.cfg-browser {
    border: 1px solid var(--td-line, #e4e1d8);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 44px rgba(28, 27, 24, .14);
}

.cfg-browser__bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #efede6;
    border-bottom: 1px solid var(--td-line, #e4e1d8);
    padding: .55rem .8rem;
}

.cfg-browser__dots { display: flex; gap: .3rem; }

.cfg-browser__dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cfcabb;
}

.cfg-browser__url {
    flex: 1;
    background: #fff;
    border-radius: 999px;
    border: 1px solid var(--td-line, #e4e1d8);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .7rem;
    color: #57544c;
    padding: .28rem .8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cfg-browser__screen { min-height: 430px; }

/* --------------------- Interior de las previews ------------------------- */

.pv-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cfg-accent);
    color: var(--cfg-accent-ink, #fff);
    font-size: 1.9rem;
    font-weight: 700;
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    margin-bottom: .9rem;
}

.pv-name { font-size: 1.15rem; font-weight: 700; margin: 0; }

.pv-tagline { font-size: .8rem; color: #57544c; margin: .3rem 0 1.4rem; }

.pv-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin: -.35rem 0 1.15rem;
}

.pv-social {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid color-mix(in srgb, var(--cfg-accent) 28%, #d9d6cd);
    border-radius: 50%;
    color: var(--cfg-accent);
    background: #fff;
    transition: transform .15s ease, color .15s ease, background-color .15s ease;
}

.pv-social:hover,
.pv-social:focus-visible {
    color: var(--cfg-accent-ink, #fff);
    background: var(--cfg-accent);
    transform: translateY(-2px);
}

.pv-social.is-placeholder {
    color: #aaa69b;
    border-style: dashed;
    cursor: default;
}

.pv-social.is-placeholder:hover {
    color: #aaa69b;
    background: #fff;
    transform: none;
}

.pv-social:focus-visible {
    outline: 2px solid #1c1b18;
    outline-offset: 2px;
}

.pv-social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pv-links { display: flex; flex-direction: column; gap: .6rem; width: 100%; }

.pv-link {
    display: block;
    padding: .68rem 1rem;
    border-radius: 999px;
    background: var(--cfg-accent);
    color: var(--cfg-accent-ink, #fff);
    font-size: .85rem;
    font-weight: 600;
}

.pv-link--ghost {
    background: transparent;
    color: #1c1b18;
    border: 1.5px solid var(--cfg-accent);
}

.pv-foot {
    margin-top: auto;
    padding-top: 1.4rem;
    font-size: .62rem;
    color: #8a8578;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

/* Landing / multipágina */
.pv-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1.1rem;
    border-bottom: 1px solid #f0eee6;
}

.pv-nav__brand {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    font-size: .82rem;
}

.pv-nav__logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--cfg-accent);
    color: var(--cfg-accent-ink, #fff);
    display: grid;
    place-items: center;
    font-size: .7rem;
    font-weight: 700;
}

.pv-nav__links { display: flex; gap: .8rem; font-size: .66rem; color: #57544c; }

.pv-nav__links b { color: var(--cfg-accent); font-weight: 600; }

.pv-hero {
    padding: 2rem 1.4rem 1.7rem;
    text-align: center;
    background:
        radial-gradient(130% 90% at 50% -20%, color-mix(in srgb, var(--cfg-accent) 16%, #ffffff) 0%, #ffffff 60%);
}

.pv-hero h3 { font-size: 1.3rem; margin: 0 0 .3rem; font-family: "Bricolage Grotesque", system-ui, sans-serif; }

.pv-hero p { font-size: .78rem; color: #57544c; margin: 0 0 1rem; }

.pv-cta {
    display: inline-block;
    background: var(--cfg-accent);
    color: var(--cfg-accent-ink, #fff);
    border-radius: 999px;
    padding: .5rem 1.15rem;
    font-size: .74rem;
    font-weight: 650;
}

.pv-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    padding: 1rem 1.1rem 1.2rem;
}

.pv-card {
    border: 1px solid #f0eee6;
    border-radius: 10px;
    padding: .75rem .6rem;
    text-align: center;
    background: #fbfaf7;
}

.pv-card span { font-size: 1.15rem; display: block; margin-bottom: .3rem; }

.pv-card h4 { font-size: .68rem; margin: 0; }

.pv-card p { font-size: .58rem; color: #8a8578; margin: .2rem 0 0; }

.pv-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin: 0 1.1rem 1.1rem;
    padding: .7rem .9rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--cfg-accent) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--cfg-accent) 24%, #ffffff);
}

.pv-strip p { font-size: .66rem; margin: 0; font-weight: 600; }

.pv-pages {
    display: flex;
    gap: .4rem;
    padding: 0 1.1rem 1.1rem;
    flex-wrap: wrap;
}

.pv-page-chip {
    font-size: .6rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    border: 1px solid #e4e1d8;
    border-radius: 999px;
    padding: .22rem .6rem;
    color: #57544c;
    background: #fff;
}

.pv-page-chip--active {
    background: var(--cfg-accent);
    border-color: var(--cfg-accent);
    color: var(--cfg-accent-ink, #fff);
}

.pv-footer {
    border-top: 1px solid #f0eee6;
    padding: .6rem 1.1rem;
    font-size: .58rem;
    color: #8a8578;
    display: flex;
    justify-content: space-between;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

/* Nota de sistemas personalizados */
.cfg-custom-note {
    margin-top: 2.2rem;
    border: 1px dashed #cfcabb;
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.cfg-custom-note p { margin: 0; font-size: .88rem; }

/* --------------- Tarjetas de precio ("Qué incluye cada plan") --------------- */

.cfg-pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    align-items: stretch;
}

.cfg-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 2rem 1.8rem 1.8rem;
    border: 1px solid transparent;
    border-radius: 24px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(165deg, rgba(35, 55, 228, .45), rgba(23, 203, 255, .35) 42%, rgba(222, 223, 229, .9) 80%) border-box;
    box-shadow: 0 22px 55px rgba(15, 22, 42, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cfg-price-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 160px;
    background: radial-gradient(130% 100% at 88% -25%, rgba(35, 55, 228, .1), transparent 62%);
    pointer-events: none;
}

.cfg-price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 70px rgba(15, 22, 42, .14);
}

.cfg-price-card__top {
    min-height: 1.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.cfg-price-card__tag {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .6rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #2337e4;
}

.cfg-price-card__badge {
    padding: .36rem .66rem;
    border-radius: 999px;
    color: #07111f;
    background: linear-gradient(120deg, #17cbff, #6ee2ff);
    font-size: .58rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cfg-price-card h3 {
    color: #10173a;
    font-size: clamp(1.3rem, 2vw, 1.55rem);
    font-weight: 650;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin: 1.1rem 0 1.2rem;
}

.cfg-price-card__pricing {
    margin-bottom: 1.25rem;
    padding: 1.05rem 0;
    border-top: 1px solid #e7e8ec;
    border-bottom: 1px solid #e7e8ec;
}

.cfg-price-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0;
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1;
    background: linear-gradient(115deg, #10173a 30%, #2337e4 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cfg-price-card__price small {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .58rem;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #7b8190;
}

.cfg-price-card__renewal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: .85rem 0 0;
    color: #737989;
    font-size: .7rem;
}

.cfg-price-card__renewal strong {
    color: #343b4a;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.cfg-price-card__desc {
    color: #555d6e;
    font-size: .88rem;
    line-height: 1.6;
    margin: 0 0 1.3rem;
}

.cfg-price-card__features {
    display: grid;
    gap: .7rem;
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

.cfg-price-card__features li {
    position: relative;
    color: #343b4a;
    font-size: .82rem;
    line-height: 1.45;
    padding-left: 1.6rem;
}

.cfg-price-card__features li::before {
    content: "✓";
    position: absolute;
    top: .08rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #2337e4, #17cbff);
    font-size: .6rem;
    font-weight: 900;
}

.cfg-price-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: auto;
    padding: .78rem 1.2rem;
    border: 1px solid #10173a;
    border-radius: 999px;
    color: #10173a;
    font-size: .8rem;
    font-weight: 700;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.cfg-price-card__cta svg {
    width: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    transition: transform .2s ease;
}

.cfg-price-card__cta:hover {
    color: #fff;
    background: #10173a;
}

.cfg-price-card__cta:hover svg {
    transform: translateX(3px);
}

/* Tarjeta destacada (Landing profesional) — eco de la tarjeta oscura de arriba */
.cfg-price-card--featured {
    border-color: rgba(23, 203, 255, .4);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(23, 203, 255, .22), transparent 48%),
        radial-gradient(130% 120% at 0% 105%, rgba(35, 55, 228, .5), transparent 55%),
        linear-gradient(165deg, #151d45, #0c1228 72%);
    box-shadow: 0 30px 70px rgba(13, 19, 48, .3);
}

.cfg-price-card--featured::before {
    background: radial-gradient(130% 100% at 88% -25%, rgba(23, 203, 255, .16), transparent 62%);
}

.cfg-price-card--featured:hover {
    box-shadow: 0 38px 85px rgba(13, 19, 48, .38);
}

.cfg-price-card--featured .cfg-price-card__tag { color: #6ee2ff; }

.cfg-price-card--featured h3 { color: #fff; }

.cfg-price-card--featured .cfg-price-card__pricing {
    border-color: rgba(255, 255, 255, .15);
}

.cfg-price-card--featured .cfg-price-card__price {
    background: linear-gradient(115deg, #ffffff 35%, #6ee2ff 95%);
    -webkit-background-clip: text;
    background-clip: text;
}

.cfg-price-card--featured .cfg-price-card__price small,
.cfg-price-card--featured .cfg-price-card__renewal { color: #91a0b6; }

.cfg-price-card--featured .cfg-price-card__renewal strong { color: #fff; }

.cfg-price-card--featured .cfg-price-card__desc,
.cfg-price-card--featured .cfg-price-card__features li { color: #c3cde0; }

.cfg-price-card--featured .cfg-price-card__features li::before {
    color: #07111f;
    background: linear-gradient(135deg, #17cbff, #8ceaff);
}

.cfg-price-card--featured .cfg-price-card__cta {
    border-color: transparent;
    color: #07111f;
    background: linear-gradient(120deg, #17cbff, #6ee2ff);
}

.cfg-price-card--featured .cfg-price-card__cta:hover {
    color: #07111f;
    background: linear-gradient(120deg, #45d7ff, #9df0ff);
}

@media (min-width: 961px) {
    .cfg-price-card--featured { transform: translateY(-10px); }

    .cfg-price-card--featured:hover { transform: translateY(-16px); }
}

@media (max-width: 960px) {
    .cfg-pricing { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .cfg-price-card,
    .cfg-price-card__cta svg {
        transition: none;
    }

    .cfg-price-card:hover { transform: none; }
}

/* ----------------- Guía paso a paso sobre la vista previa ----------------- */

.cfg-preview__guidebar {
    display: flex;
    justify-content: center;
    margin-bottom: .9rem;
}

.cfg-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 1.05rem;
    border: 1px solid #d9dce4;
    border-radius: 999px;
    color: #10173a;
    background: #fff;
    cursor: pointer;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.cfg-guide-btn:hover {
    border-color: #4263ff;
    box-shadow: 0 6px 18px rgba(35, 55, 228, .14);
}

.cfg-guide-btn.is-active {
    border-color: #4263ff;
    color: #2337e4;
    box-shadow: 0 0 0 3px rgba(66, 99, 255, .14);
}

.cfg-guide-btn__dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2337e4, #17cbff);
    animation: cfg-guide-pulse 2s ease-in-out infinite;
}

@keyframes cfg-guide-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(35, 55, 228, .35); }
    50% { box-shadow: 0 0 0 6px rgba(35, 55, 228, 0); }
}

/* Elemento señalado */
.cfg-tour-target {
    border-radius: 6px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2337e4 !important;
    animation: cfg-tour-blink 1.6s ease-in-out infinite;
}

@keyframes cfg-tour-blink {
    0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2337e4; }
    50% { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #17cbff; }
}

/* Burbuja del tour */
.cfg-tour {
    position: absolute;
    z-index: 30;
    width: min(270px, calc(100% - 12px));
    padding: 1rem 1.1rem .9rem;
    border: 1px solid rgba(35, 55, 228, .3);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 22, 42, .22);
}

.cfg-tour::before {
    content: "";
    position: absolute;
    top: -6px;
    left: var(--tour-arrow-left, 24px);
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-top: 1px solid rgba(35, 55, 228, .3);
    border-left: 1px solid rgba(35, 55, 228, .3);
    background: #fff;
    transform: rotate(45deg);
}

.cfg-tour--above::before {
    top: auto;
    bottom: -6px;
    border-top: 0;
    border-left: 0;
    border-right: 1px solid rgba(35, 55, 228, .3);
    border-bottom: 1px solid rgba(35, 55, 228, .3);
}

.cfg-tour__close {
    position: absolute;
    top: .5rem;
    right: .55rem;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #737989;
    background: transparent;
    cursor: pointer;
    font-size: .8rem;
    line-height: 1;
}

.cfg-tour__close:hover {
    color: #10173a;
    background: #eef0f5;
}

.cfg-tour__label {
    margin: 0 1.4rem .3rem 0;
    color: #2337e4;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.cfg-tour__text {
    margin: 0 0 .8rem;
    color: #343b4a;
    font-size: .8rem;
    line-height: 1.5;
}

.cfg-tour__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

.cfg-tour__count {
    color: #7b8190;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .62rem;
}

.cfg-tour__btns {
    display: inline-flex;
    gap: .4rem;
}

.cfg-tour__btn {
    padding: .42rem .8rem;
    border: 1px solid #d9dce4;
    border-radius: 999px;
    color: #343b4a;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .7rem;
    font-weight: 700;
}

.cfg-tour__btn:hover {
    border-color: #9aa1b1;
}

.cfg-tour__btn--next {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(120deg, #2337e4, #17cbff);
}

.cfg-tour__btn--next:hover {
    filter: brightness(1.08);
}

/* --------- Preview multipágina: páginas internas y bio incluida ---------- */

.pv-page-chip {
    cursor: pointer;
    font: inherit;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .6rem;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.pv-page-chip:hover {
    border-color: var(--cfg-accent);
    color: #1c1b18;
}

.pv-page-chip--active:hover {
    color: var(--cfg-accent-ink, #fff);
}

.pv-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.6rem 1.4rem 1.4rem;
}

.pv-inner h3 {
    margin: 0;
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-size: 1.15rem;
}

.pv-inner__lead {
    margin: 0;
    color: #57544c;
    font-size: .78rem;
}

.pv-inner .pv-cards {
    width: 100%;
    padding: 0;
}

.pv-inner .pv-socials {
    justify-content: flex-start;
    margin: 0;
}

.pv-skels {
    display: grid;
    gap: .45rem;
    width: 100%;
}

.pv-skel {
    display: block;
    height: .55rem;
    border-radius: 99px;
    background: linear-gradient(90deg, #efede6, #f7f5ef);
}

.pv-map {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .85rem 1rem;
    border: 1px dashed color-mix(in srgb, var(--cfg-accent) 40%, #d9d6cd);
    border-radius: 10px;
    background: color-mix(in srgb, var(--cfg-accent) 7%, #ffffff);
}

.pv-map span {
    font-size: 1.2rem;
}

.pv-map p {
    margin: 0;
    color: #57544c;
    font-size: .72rem;
}

/* Página bio dentro del navegador multipágina */
.pv-bio-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 430px;
    padding: 2.2rem 1.9rem 1.6rem;
    text-align: center;
    background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--cfg-accent) 18%, #ffffff) 0%, #ffffff 55%);
}

.pv-bio-page .pv-links {
    max-width: 300px;
}

/* Aviso "bio incluida" en la landing */
.pv-bio-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin: 0 1.1rem 1rem;
    padding: .5rem .9rem;
    border: 1px solid color-mix(in srgb, var(--cfg-accent) 30%, #ffffff);
    border-radius: 999px;
    color: #343b4a;
    background: color-mix(in srgb, var(--cfg-accent) 8%, #ffffff);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .62rem;
    letter-spacing: .06em;
}

@media (prefers-reduced-motion: reduce) {
    .cfg-guide-btn__dot,
    .cfg-tour-target {
        animation: none;
    }
}
