/* Cotizador — Stop Cotillón */

:root {
    --sc-pink: #ec1f6a;
    --sc-pink-dark: #c9185a;
    --sc-pink-light: #fdeef2;
    --sc-text: #1a1a1a;
    --wa-green: #25d366;
    --wa-green-dark: #1ebe5b;
}

#cotizador-widget {
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer */

.cotizador-footer {
    background: var(--sc-text);
    color: #fff;
    font-size: 0.9rem;
}

.cotizador-footer a {
    color: #fff;
    text-decoration: underline;
}

.cotizador-footer a:hover {
    color: var(--sc-pink-light);
}

/* Header */

.cotizador-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.cotizador-logo {
    display: flex;
    align-items: center;
}

.cotizador-logo-img {
    height: 60px;
    width: auto;
}

.cotizador-link {
    color: var(--sc-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.cotizador-link:hover {
    color: var(--sc-pink);
}

.btn-whatsapp-cta {
    background: var(--wa-green);
    color: #fff;
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border: none;
}

.btn-whatsapp-cta:hover {
    background: var(--wa-green-dark);
    color: #fff;
}

.btn-pink-cta {
    background: var(--sc-pink);
    color: #fff;
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border: none;
}

.btn-pink-cta:hover {
    background: var(--sc-pink-dark);
    color: #fff;
}

.btn-pink-cta:disabled {
    background: #ddd;
    color: #999;
}

/* Hero */

.cotizador-hero {
    background: var(--sc-pink-light);
}

.cotizador-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--sc-text);
    margin: 0;
}

.cotizador-hero-title .text-highlight {
    color: var(--sc-pink);
}

/* Stepper (referencia visual dentro del hero) */

.cotizador-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.cotizador-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #999;
}

.cotizador-stepper .step-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #fff;
    color: #999;
}

.cotizador-stepper .step.completo .step-circle {
    background: var(--sc-pink);
    border-color: var(--sc-pink);
    color: #fff;
}

.cotizador-stepper .step.completo .step-label {
    color: var(--sc-text);
    font-weight: 600;
}

.cotizador-stepper .step-line {
    width: 2rem;
    height: 2px;
    background: #ddd;
    margin-top: 1.1rem;
}

.cotizador-stepper .step.activo .step-circle {
    box-shadow: 0 0 0 3px rgba(236, 31, 106, 0.25);
}

.cotizador-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.cotizador-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cotizador-card h2 {
    font-size: 1.1rem;
    margin: 0;
}

.cotizador-card-subtitle {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.cotizador-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--sc-pink-light);
    color: var(--sc-pink);
    font-size: 1.25rem;
}

.cotizador-lista {
    max-height: 480px;
    overflow-y: auto;
}

/* Producto: fila horizontal a todo el ancho (imagen + nombre), en vez de
   una grilla — aprovecha mejor el espacio angosto de la columna. */
.producto-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    position: relative;
}

.producto-card:hover {
    border-color: var(--sc-pink);
}

.producto-card img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0;
    background: #f8f9fa;
}

.producto-card-nombre {
    font-size: 0.9rem;
}

.producto-card-check {
    display: none;
    margin-left: auto;
    color: var(--sc-pink);
    font-size: 1.1rem;
}

.producto-card.seleccionado {
    border-color: var(--sc-pink);
    background: var(--sc-pink-light);
}

.producto-card.seleccionado .producto-card-check {
    display: block;
}

/* Diseño: tarjetas en grilla (ver el `row` en index.php), con la misma
   marca visual de selección que producto. */
.diseno-card {
    cursor: pointer;
    border: 1px solid #eee;
}

.diseno-card:hover {
    border-color: var(--sc-pink);
}

.diseno-card.seleccionado {
    border-color: var(--sc-pink);
    border-width: 2px;
    background: var(--sc-pink-light);
}

.cotizador-filtros:not(:empty) {
    margin-bottom: 1rem;
}

#canvas-preview,
.cotizador-canvas {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 0.5rem;
}

/* Mobile: comportamiento tipo wizard (una columna a la vez) con el
   stepper siempre visible marcando en qué paso estás. */
@media (max-width: 767.98px) {
    .cotizador-hero .cotizador-stepper {
        position: sticky;
        top: 0;
        z-index: 20;
        width: 100%;
        justify-content: space-between;
        background: var(--sc-pink-light);
        padding: 0.75rem 0.75rem;
        margin: 0 -0.75rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .cotizador-stepper .step {
        cursor: pointer;
    }

    .cotizador-columna {
        display: none;
    }

    .cotizador-columna.activo {
        display: block;
    }

    #btn-siguiente-evento {
        margin-top: 0.75rem;
    }

    .cotizador-logo-img {
        height: 38px;
    }

    .btn-whatsapp-cta {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

/* Botón "no encuentro mi producto" (columna 1) */

.cotizador-no-encontro {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #eee;
    text-align: center;
}

/* Subir mi propio diseño (columna 2) */

.cotizador-mi-diseno {
    margin-bottom: 1rem;
}

.cotizador-mi-diseno-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem;
    border: 2px dashed #ddd;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    color: #888;
    margin: 0;
}

.cotizador-mi-diseno-label:hover {
    border-color: var(--sc-pink);
    color: var(--sc-pink);
}

.cotizador-mi-diseno-label i {
    font-size: 1.5rem;
}

.cotizador-mi-diseno-label span {
    font-weight: 600;
    font-size: 0.9rem;
}

.cotizador-mi-diseno-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border: 2px solid var(--sc-pink);
    background: var(--sc-pink-light);
    border-radius: 0.5rem;
}

.cotizador-mi-diseno-preview img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.375rem;
    background: #fff;
    flex-shrink: 0;
}

.cotizador-mi-diseno-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
    min-width: 0;
}

.cotizador-mi-diseno-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cotizador-mi-diseno-info .btn-link {
    text-align: left;
    text-decoration: none;
    font-weight: 600;
}

.cotizador-mi-diseno-info .btn-link:hover {
    text-decoration: underline;
}
