/* Asistente de presupuestos (templates/quote-wizard.php). Estilo del asistente anterior:
   pasos con círculos unidos por una línea, títulos centrados, panel gris claro y botones amarillos. */

.ltw-quote-wizard {
    --ltw-quote-accent: #E8D088;
    --ltw-quote-accent-dark: #d9bd63;
    --ltw-quote-ink: #333;
    --ltw-quote-muted: #6b7280;
    --ltw-quote-line: #e0e0e0;
    --ltw-quote-panel: #f9f9f9;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 6rem; /* abajo: sitio para la barra fija del configurador */
    color: var(--ltw-quote-ink);
}

/* ---------- Progreso ---------- */

.ltw-quote-wizard .ltw-quote-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 0 3rem;
    padding: 0;
    list-style: none;
}

.ltw-quote-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--ltw-quote-line);
}

.ltw-quote-wizard .ltw-quote-progress-step {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    color: #666;
    font-size: 0.875rem;
    text-align: center;
}

.ltw-quote-wizard .ltw-quote-progress-step::before {
    display: none;
}

.ltw-quote-progress-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ltw-quote-line);
    color: #666;
    font-weight: 600;
    transition: background-color 0.3s;
}

.ltw-quote-progress-step.is-done .ltw-quote-progress-num {
    background: #f3e7c0;
    color: var(--ltw-quote-ink);
}

.ltw-quote-progress-step.is-active .ltw-quote-progress-num {
    background: var(--ltw-quote-accent);
    color: var(--ltw-quote-ink);
}

.ltw-quote-progress-step.is-active .ltw-quote-progress-label {
    color: var(--ltw-quote-accent-dark);
    font-weight: 600;
}

@media (max-width: 640px) {
    .ltw-quote-wizard .ltw-quote-progress {
        margin-bottom: 2rem;
    }

    .ltw-quote-progress-step:not(.is-active) .ltw-quote-progress-label {
        visibility: hidden;
    }
}

/* En la configuración el progreso ocupa menos: el configurador ya es largo */
.ltw-quote-wizard[data-step="3"] .ltw-quote-progress {
    margin-bottom: 1.5rem;
}

.ltw-quote-wizard[data-step="3"] .ltw-quote-progress-num {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

.ltw-quote-wizard[data-step="3"] .ltw-quote-progress::before {
    top: 16px;
}

.ltw-quote-basket {
    display: table;
    margin: -1.5rem auto 2rem;
    padding: 0.5rem 1.125rem;
    border: 1px solid var(--ltw-quote-accent);
    border-radius: 999px;
    background: #fdf9ec;
    color: var(--ltw-quote-ink);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.ltw-quote-basket:hover {
    background: var(--ltw-quote-accent);
}

.ltw-quote-wizard[data-step="3"] .ltw-quote-basket {
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* ---------- Pasos ---------- */

.ltw-quote-step[hidden],
.ltw-quote-wizard [hidden] {
    display: none !important;
}

.ltw-quote-step {
    animation: ltw-quote-in 0.3s;
}

@keyframes ltw-quote-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.ltw-quote-step-head {
    margin-bottom: 2rem;
    text-align: center;
}

.ltw-quote-step-head h2 {
    margin: 0;
}

.ltw-quote-step-foot {
    margin-top: 2rem;
    text-align: center;
}

/* Botones: los del tema (button-primary / button-secondary); aquí solo lo que cambia */
.ltw-quote-wizard .button-primary[disabled],
.ltw-quote-wizard .button-primary.is-loading {
    opacity: 0.6;
    cursor: wait;
}

.ltw-quote-back {
    padding: 0;
    border: 0;
    background: none !important;
    color: var(--ltw-quote-muted);
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
}

.ltw-quote-back:hover {
    color: var(--ltw-quote-ink);
}

/* ---------- Paso 1 ---------- */

.ltw-quote-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.875rem;
    max-width: 800px;
    margin: 0 auto;
}

.ltw-quote-wizard .ltw-quote-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 1.875rem;
    border: 2px solid var(--ltw-quote-line);
    border-radius: 12px;
    background: var(--ltw-quote-panel) !important;
    color: var(--ltw-quote-ink);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.ltw-quote-wizard .ltw-quote-type:hover,
.ltw-quote-wizard .ltw-quote-type:focus-visible {
    border-color: var(--ltw-quote-accent);
    transform: translateY(-4px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.ltw-quote-type strong {
    font-size: 1.375rem;
}

.ltw-quote-type span:last-child {
    color: #666;
    font-size: 0.9375rem;
}

/* ---------- Paso 2: etiquetas ---------- */

.ltw-quote-tags {
    position: relative; /* referencia de offsetLeft al centrar la etiqueta elegida */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 130px;
}

.ltw-quote-tags--row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.ltw-quote-wizard .ltw-quote-tag {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--ltw-quote-line);
    border-radius: 8px;
    background: #fff !important;
    color: var(--ltw-quote-ink);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.ltw-quote-tags--row .ltw-quote-tag {
    border-radius: 999px;
}

.ltw-quote-wizard .ltw-quote-tag:hover {
    border-color: var(--ltw-quote-accent);
}

.ltw-quote-wizard .ltw-quote-tag.is-active {
    border-color: var(--ltw-quote-accent);
    background: var(--ltw-quote-accent) !important;
}

.ltw-quote-tag-count {
    margin-left: 0.25rem;
    color: var(--ltw-quote-muted);
    font-size: 0.75rem;
}

.ltw-quote-tag.is-active .ltw-quote-tag-count {
    color: var(--ltw-quote-ink);
}

/* Menaje: rejilla de tarjetas */
.ltw-quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.ltw-quote-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1.25rem;
    border: 2px solid var(--ltw-quote-line);
    border-radius: 12px;
    background: var(--ltw-quote-panel);
    color: var(--ltw-quote-ink);
    text-align: center;
    text-decoration: none;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.ltw-quote-card:hover {
    border-color: var(--ltw-quote-accent);
    transform: translateY(-4px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.ltw-quote-card-image {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    aspect-ratio: 1;
}

.ltw-quote-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* --bg-fix lo pone el servidor en las fotos con fondo gris claro */
    filter: brightness(var(--bg-fix, 1));
}

.ltw-quote-card-capacity {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ltw-quote-muted);
}

.ltw-quote-card-name {
    font-size: 1.0625rem;
    line-height: 1.3;
}

.ltw-quote-card-price {
    margin-bottom: 0.75rem;
    color: var(--ltw-quote-muted);
    font-size: 0.875rem;
}

.ltw-quote-card .ltw-quote-card-button {
    margin-top: auto;
}

@media (max-width: 640px) {
    .ltw-quote-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .ltw-quote-card {
        padding: 0.75rem;
    }

    .ltw-quote-card-name {
        font-size: 0.9375rem;
    }

    .ltw-quote-wizard .ltw-quote-card .ltw-quote-card-button {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* ---------- Paso 3: foto / vista 3D a la izquierda, configurador a la derecha ---------- */

.ltw-quote-config-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    margin-bottom: 1.25rem;
}

.ltw-quote-config-head h2 {
    order: -1;
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.ltw-quote-config {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .ltw-quote-config {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2.5rem;
        align-items: start;
    }

    .ltw-quote-gallery {
        position: sticky;
        top: 6rem;
    }
}

.ltw-quote-gallery-main {
    position: relative;
}

.ltw-quote-gallery .woocommerce-product-gallery__image a {
    display: block;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.ltw-quote-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

/* Lo que en la ficha es información de compra no hace falta para presupuestar */
.ltw-quote-form .ltw-pc-shipping-inline {
    display: none;
}

/* ---------- Paso 4 ---------- */

.ltw-quote-final {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .ltw-quote-final {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        align-items: start;
    }
}

.ltw-quote-summary,
.ltw-quote-client,
.ltw-quote-done {
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--ltw-quote-panel);
}

.ltw-quote-wizard .ltw-quote-line-list {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

/* El tema pone un icono delante de cada li de .site-main: aquí no */
.ltw-quote-wizard .ltw-quote-line-list li,
.ltw-quote-wizard .ltw-quote-line-details li {
    padding-left: 0;
    margin-bottom: 0;
}

.ltw-quote-wizard .ltw-quote-line {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem 2.5rem 1rem 0;
    border-bottom: 1px solid var(--ltw-quote-line);
}

.ltw-quote-line-image {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
}

.ltw-quote-wizard .ltw-quote-line-details {
    margin: 0.25rem 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    color: var(--ltw-quote-muted);
}

.ltw-quote-line-details span {
    color: var(--ltw-quote-ink);
}

.ltw-quote-line-prices {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
}

.ltw-quote-line-total {
    font-weight: 600;
    white-space: nowrap;
}

.ltw-quote-wizard .ltw-quote-line-remove {
    position: absolute;
    top: 0.75rem;
    right: 0;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #fff !important;
    color: var(--ltw-quote-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.ltw-quote-wizard .ltw-quote-line-remove:hover {
    color: #b91c1c;
}

@media (max-width: 640px) {
    .ltw-quote-summary,
    .ltw-quote-client,
    .ltw-quote-done {
        padding: 1rem;
    }

    .ltw-quote-wizard .ltw-quote-line {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .ltw-quote-line-image {
        width: 64px;
        height: 64px;
    }

    .ltw-quote-line-total {
        grid-column: 2;
    }
}

.ltw-quote-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.25rem 0.75rem;
    margin: 0 0 1.5rem;
    font-size: 1.125rem;
}

.ltw-quote-total strong {
    font-size: 1.5rem;
}

.ltw-quote-total small {
    flex-basis: 100%;
    text-align: right;
    color: var(--ltw-quote-muted);
    font-size: 0.8125rem;
}

.ltw-quote-wizard .ltw-quote-client h3,
.ltw-quote-wizard .ltw-quote-done h3 {
    margin-top: 0;
    font-size: 1.375rem;
}

.ltw-quote-field {
    margin-bottom: 1rem;
}

/* Con id: el tema da a todas las etiquetas de formulario display:block y 20 px con un selector fuerte */
#ltw-quote-wizard .ltw-quote-field label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
}

.ltw-quote-field input,
.ltw-quote-field select,
.ltw-quote-field textarea {
    width: 100%;
}

.ltw-quote-field .iti {
    width: 100%;
}

/* Casillas de privacidad y novedades */
#ltw-quote-wizard .ltw-quote-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
}

#ltw-quote-wizard .ltw-quote-check input {
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0.0625rem 0 0;
    accent-color: #333;
}

#ltw-quote-wizard .ltw-quote-check a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #E8D088;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.ltw-quote-check + .ltw-quote-error,
.ltw-quote-check + .ltw-quote-check + .ltw-quote-error {
    margin-top: 0.25rem;
}

.ltw-quote-error {
    margin: 0 0 1rem;
    color: #b91c1c;
    font-size: 0.875rem;
}

.ltw-quote-client .button-primary,
.ltw-quote-done .button-primary,
.ltw-quote-done .button-secondary {
    width: 100%;
    margin-bottom: 0.75rem;
}

.ltw-quote-note {
    margin: 0;
    color: var(--ltw-quote-muted);
    font-size: 0.8125rem;
}

/* ---------- Página como landing ---------- */

/* Portada: a todo el ancho, bajo la cabecera transparente del tema (como las landings) */
.ltw-quote-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 3.5rem;
    overflow: hidden;
    background: #343434;
    color: #fff;
}

.ltw-quote-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ltw-quote-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 31, 31, 0.55) 0%, rgba(31, 31, 31, 0.7) 100%);
}

.ltw-quote-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 9.5rem 1.25rem 3.5rem; /* arriba: la cabecera del tema va encima */
    text-align: center;
}

.ltw-quote-hero-eyebrow {
    margin: 0 0 1rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: rgba(232, 208, 136, 0.18);
    color: #E8D088;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ltw-quote-hero .ltw-quote-hero-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    text-wrap: balance;
}

.ltw-quote-hero-lead {
    max-width: 640px;
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.125rem;
    line-height: 1.5;
}

.ltw-quote-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.ltw-quote-hero .ltw-quote-hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.92);
}

.ltw-quote-hero .ltw-quote-hero-points li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.ltw-quote-hero .ltw-quote-hero-points li::before {
    content: '';
    position: static;
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #E8D088 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

@media (max-width: 640px) {
    .ltw-quote-hero-inner {
        padding-top: 7.5rem;
        padding-bottom: 2.5rem;
    }

    .ltw-quote-hero-lead {
        font-size: 1rem;
    }

    .ltw-quote-hero .ltw-quote-hero-points {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        font-size: 0.8125rem;
    }
}

/* La herramienta, en una tarjeta que destaca del resto de la página */
/* Sin JS, las anclas quedan bajo la cabecera fija del tema (90 px); con JS se calcula exacto */
.ltw-quote-page:not(.ltw-quote-focus) .ltw-quote-wizard,
.ltw-quote-how {
    scroll-margin-top: 90px;
}

/* Configurando o en el resumen: solo la herramienta (las secciones de la página se ocultan) */
.ltw-quote-focus .entry-content > :not(.ltw-quote-wizard):not(.ltw-quote-hero):not(h1) {
    display: none;
}

/* Cierre de la página (bloque HTML del contenido): de vuelta a la herramienta */
.ltw-quote-cta {
    width: 100vw;
    margin: 3rem 0 0 calc(50% - 50vw);
    padding: 4rem 1.25rem;
    background: #f3e7c0;
    text-align: center;
}

.ltw-quote-cta h2 {
    margin: 0 0 0.75rem;
}

.ltw-quote-cta p {
    margin: 0 0 1.75rem;
}

/* ---------- Cómo funciona ---------- */

.ltw-quote-how {
    width: 100vw;
    margin: 5rem 0 0 calc(50% - 50vw);
    padding: 5rem 1.25rem;
    background: #faf6ea;
}

.ltw-quote-how-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ltw-quote-how-eyebrow {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: #f3e7c0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ltw-quote-how .ltw-quote-how-title {
    margin: 0 auto 1rem;
    max-width: 720px;
    text-wrap: balance;
}

.ltw-quote-how-lead {
    max-width: 620px;
    margin: 0 auto 3.5rem;
    color: #555;
    font-size: 1.0625rem;
}

.ltw-quote-how .ltw-quote-how-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0 0 3rem;
    padding: 0;
}

/* La línea que une los pasos, por detrás de los iconos */
.ltw-quote-how-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    border-top: 2px dashed #e2cf92;
}

.ltw-quote-how .ltw-quote-how-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

.ltw-quote-how .ltw-quote-how-step::before {
    display: none;
}

.ltw-quote-how-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: #E8D088;
    color: #333;
    box-shadow: 0 0 0 8px #faf6ea;
}

.ltw-quote-how-num {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #faf6ea;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.ltw-quote-how-body {
    flex: 1;
    width: 100%;
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(51, 51, 51, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ltw-quote-how-step:hover .ltw-quote-how-body {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(51, 51, 51, 0.1);
}

.ltw-quote-how .ltw-quote-how-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1875rem;
    line-height: 1.25;
}

.ltw-quote-how .ltw-quote-how-body p {
    margin: 0;
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.ltw-quote-how-actions p {
    margin: 1rem auto 0;
    max-width: 520px;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Tablet: 2 × 2 sin línea */
@media (max-width: 1023px) {
    .ltw-quote-how .ltw-quote-how-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 1.5rem;
    }

    .ltw-quote-how-steps::before {
        display: none;
    }
}

/* Móvil: línea de tiempo vertical, icono a la izquierda */
@media (max-width: 640px) {
    .ltw-quote-how {
        margin-top: 3.5rem;
        padding: 3.5rem 1.25rem;
    }

    .ltw-quote-how-lead {
        margin-bottom: 2.5rem;
        font-size: 1rem;
    }

    .ltw-quote-how .ltw-quote-how-steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: left;
    }

    .ltw-quote-how-steps::before {
        display: block;
        top: 28px;
        bottom: 28px;
        left: 28px;
        right: auto;
        border-top: 0;
        border-left: 2px dashed #e2cf92;
    }

    .ltw-quote-how .ltw-quote-how-step {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .ltw-quote-how-icon {
        flex: none;
        width: 56px;
        height: 56px;
        margin: 0;
    }

    .ltw-quote-how-icon svg {
        width: 24px;
        height: 24px;
    }

    .ltw-quote-how-num {
        width: 22px;
        height: 22px;
        font-size: 0.6875rem;
    }

    .ltw-quote-how-body {
        padding: 1rem 1.125rem;
    }
}

/* ---------- Paso 2: estantería de vasos ---------- */

/* Escenario (vasos) y ficha del elegido, lado a lado en escritorio */
.ltw-quote-shelf-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ltw-quote-shelf {
    --ltw-floor: 4.6rem; /* alto del suelo: los vasos se apoyan en su borde */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border-radius: 20px;
    /* Gris claro liso. Las fotos se funden con él (mix-blend-mode: multiply): por eso ni el
       vaso ni sus contenedores llevan transform, opacity ni filter, que las aislarían del fondo;
       los efectos van en la propia <img> */
    background: #f3f3f1;
    isolation: isolate;
}

.ltw-quote-shelf-track {
    --ltw-shelf-item: 270px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2.5rem calc(50% - var(--ltw-shelf-item) / 2) 1.25rem;
    outline: none;
}

.ltw-quote-shelf-track::-webkit-scrollbar {
    display: none;
}

.ltw-quote-wizard .ltw-quote-shelf-item {
    --ad: max(var(--d, 0), calc(var(--d, 0) * -1)); /* distancia sin signo */
    position: relative;
    flex: 0 0 var(--ltw-shelf-item);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 0 -28px; /* se solapan un poco: profundidad */
    padding: 0;
    border: 0;
    background: none !important;
    color: #9a958a;
    cursor: inherit;
    scroll-snap-align: center;
    -webkit-user-drag: none;
    user-select: none;
}

.ltw-quote-wizard .ltw-quote-shelf-item:not(.is-active):hover img {
    opacity: 0.95;
}

.ltw-quote-shelf-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.ltw-quote-shelf-item:not(.is-active) .ltw-quote-shelf-label {
    opacity: calc(1 - min(var(--ad), 3) * 0.3);
    font-size: 0.75rem;
}

/* Sombra en el suelo */
.ltw-quote-shelf-image::after {
    content: '';
    position: absolute;
    left: calc(22% + min(var(--ad), 3) * 4%);
    right: calc(22% + min(var(--ad), 3) * 4%);
    bottom: 6%;
    height: 9%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.ltw-quote-shelf-image img {
    /* Tamaño según la distancia al elegido, apoyado en el suelo; --bg-fix aclara las fotos con fondo */
    --sd: calc(1 - min(var(--ad), 3) * 0.17);
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transform: translateY(calc((1 - var(--sd)) * 34%)) scale(calc(1.35 * var(--sd)));
    transform-origin: 50% 62%;
    opacity: calc(1 - min(var(--ad), 3) * 0.22);
    filter: brightness(var(--bg-fix, 1)) saturate(calc(1 - min(var(--ad), 3) * 0.2)) blur(calc(min(var(--ad), 3) * 0.4px));
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s, filter 0.45s;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.ltw-quote-shelf-image img.is-swapping {
    opacity: 0.35;
}

.ltw-quote-shelf-image img.is-instant {
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s;
}

.ltw-quote-shelf-label {
    padding: 0.25rem 0.875rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

.ltw-quote-shelf-item.is-active .ltw-quote-shelf-label {
    background: #333;
    color: #fff;
}

.ltw-quote-wizard .ltw-quote-shelf-nav {
    position: absolute;
    top: 45%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #333;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s, opacity 0.2s, transform 0.2s;
}

/* Zona de clic más grande que el círculo: un clic en la vora no cae en el vaso de detrás */
.ltw-quote-wizard .ltw-quote-shelf-nav::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
}

.ltw-quote-wizard .ltw-quote-shelf-nav:hover:not(:disabled) {
    background: #E8D088 !important;
    transform: translateY(-50%) scale(1.06);
}

.ltw-quote-wizard .ltw-quote-shelf-nav:disabled {
    opacity: 0;
    pointer-events: none;
}

.ltw-quote-shelf-nav[data-dir="-1"] {
    left: 0.875rem;
}

.ltw-quote-shelf-nav[data-dir="1"] {
    right: 0.875rem;
}

/* Ficha del vaso elegido */
.ltw-quote-shelf-info {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ltw-quote-cup {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 2rem;
    border: 1px solid #ecebe8;
    border-radius: 20px;
    background: #fff;
}

/* Al cambiar de vaso, el contenido funde y la caja no se mueve */
.ltw-quote-cup > * {
    transition: opacity 0.12s ease;
}

.ltw-quote-cup.is-changing > * {
    opacity: 0;
}

.ltw-quote-cup-kicker {
    margin: 0;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ltw-quote-cup-capacity {
    margin: 0.25rem 0 0.5rem;
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ltw-quote-shelf-info .ltw-quote-cup-price {
    margin: 0 0 1.5rem;
    color: #6b7280;
    font-size: 1rem;
}

.ltw-quote-cup-price .woocommerce-Price-amount {
    color: #333;
    font-size: 1.625rem;
    font-weight: 700;
}

.ltw-quote-cup-price span {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400;
}

.ltw-quote-cup-colors {
    /* Sitio para dos filas de colores: con 3 o con 11, la ficha mide lo mismo */
    min-height: 7.5rem;
    margin: 0 0 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #ecebe8;
}

.ltw-quote-cup-colors-title {
    margin: 0 0 0.75rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.ltw-quote-cup-color-name {
    color: #333;
}

.ltw-quote-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ltw-quote-wizard .ltw-quote-swatch {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--swatch) !important;
    box-shadow: 0 0 0 1px #d9d9d6;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ltw-quote-wizard .ltw-quote-swatch.is-translucent {
    background:
        repeating-conic-gradient(#e6e6e6 0 25%, #fff 0 50%) 50% / 10px 10px !important;
}

.ltw-quote-wizard .ltw-quote-swatch:hover {
    transform: scale(1.1);
}

.ltw-quote-wizard .ltw-quote-swatch.is-active {
    box-shadow: 0 0 0 2px #333;
}

.ltw-quote-cup .ltw-quote-cup-go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    text-align: center;
}

.ltw-quote-cup-note {
    margin: 0.75rem 0 0;
    color: #6b7280;
    font-size: 0.8125rem;
    text-align: center;
}

/* Regla de capacidades: una línea con un punto por vaso, rellena hasta el elegido */
.ltw-quote-ruler {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 2.25rem auto 0;
    padding: 0 0.5rem;
}

.ltw-quote-ruler-line {
    position: absolute;
    top: 9px;
    left: calc(0.5rem + 20px);
    right: calc(0.5rem + 20px);
    height: 4px;
    border-radius: 4px;
    background: #e5e5e2;
}

.ltw-quote-ruler-line span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #333;
    /* transform y no width: se anima en la GPU, sin tirones */
    transform: scaleX(var(--progress, 0));
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.ltw-quote-wizard .ltw-quote-ruler .ltw-quote-tag {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none !important;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

.ltw-quote-ruler-dot {
    width: 22px;
    height: 22px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #e5e5e2;
    box-shadow: 0 0 0 1px #d9d9d6;
    transition: background-color 0.3s, transform 0.3s;
}

.ltw-quote-ruler .ltw-quote-tag.is-before .ltw-quote-ruler-dot {
    background: #333;
    box-shadow: none;
}

.ltw-quote-ruler .ltw-quote-tag.is-active .ltw-quote-ruler-dot {
    background: #333;
    box-shadow: 0 0 0 4px #E8D088;
    transform: scale(1.15);
}

.ltw-quote-wizard .ltw-quote-ruler .ltw-quote-tag.is-active {
    color: #333;
    font-weight: 700;
}

.ltw-quote-wizard .ltw-quote-ruler .ltw-quote-tag:hover .ltw-quote-ruler-dot {
    transform: scale(1.15);
}

@media (max-width: 1023px) {
    .ltw-quote-shelf-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ltw-quote-shelf-wrap {
        margin: 0 -1rem;
        padding: 0.5rem;
        border-radius: 0;
    }

    .ltw-quote-shelf {
        --ltw-floor: 4.1rem;
    }

    .ltw-quote-shelf-track {
        --ltw-shelf-item: 190px;
        padding-top: 1.5rem;
    }


    .ltw-quote-wizard .ltw-quote-shelf-nav {
        width: 38px;
        height: 38px;
    }

    .ltw-quote-shelf-nav[data-dir="-1"] {
        left: 0.375rem;
    }

    .ltw-quote-shelf-nav[data-dir="1"] {
        right: 0.375rem;
    }

    .ltw-quote-cup {
        padding: 1.25rem;
    }

    .ltw-quote-cup-capacity {
        font-size: 2.5rem;
    }

    /* La regla se desliza en horizontal */
    .ltw-quote-ruler {
        justify-content: flex-start;
        gap: 1.75rem;
        overflow-x: auto;
        margin: 1.5rem -1rem 0;
        padding: 0 1.25rem 0.5rem;
        scrollbar-width: none;
        /* Los extremos se difuminan: se ve que sigue, sin capacidades cortadas a medias */
        -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
        mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
    }

    .ltw-quote-ruler::-webkit-scrollbar {
        display: none;
    }

    .ltw-quote-ruler-line {
        display: none;
    }

    .ltw-quote-wizard .ltw-quote-ruler .ltw-quote-tag {
        flex: none;
    }
}

.ltw-quote-cup-price .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
    color: inherit;
    font-size: inherit;
}

/* Cambio de paso sin recargar */
.ltw-quote-wizard.is-loading .ltw-quote-dynamic,
.ltw-quote-wizard.is-loading .ltw-quote-step:not([hidden]) {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s;
}

.ltw-quote-wizard.is-loading {
    cursor: progress;
}

.ltw-quote-dynamic > .ltw-quote-step {
    animation: ltw-quote-in 0.3s;
}

/* Entrada directa a un paso 3/4 (sin cabecera transparente): sin portada */
.ltw-quote-focus:not(.ltw-quote-overlay) .ltw-quote-hero {
    display: none;
}

.ltw-quote-shelf-track {
    cursor: grab;
}

.ltw-quote-shelf-track.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.ltw-quote-shelf-track.is-dragging img {
    pointer-events: none;
}
