/*
 * Biolans Diagnóstico — Response Styles v2.3.0
 * Sistema visual limpio, alineado con el brand Biolans
 * Tipografía: Montserrat (títulos) + Source Sans Pro (cuerpo)
 * ============================================================
 */

/* ── Wrapper principal ──────────────────────────────────────── */
.biolans-result {
    max-width: 680px;
    margin: 0 auto;
    font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
    color: #1a1a1a;
    padding: 8px 0 32px;
    animation: br-appear 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes br-appear {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Saludo ──────────────────────────────────────────────────── */
.biolans-result__greeting {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 28px;
    line-height: 1.4;
}

.biolans-result__greeting strong {
    color: #1B3A8C;
    font-weight: 800;
}

/* ── Sección genérica ────────────────────────────────────────── */
.biolans-result__section {
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #E2E6EF;
    border-radius: 8px;
    padding: 20px 22px;
    transition: box-shadow 0.18s ease;
}

.biolans-result__section:hover {
    box-shadow: 0 3px 14px rgba(27, 58, 140, 0.07);
}

/* Label de sección */
.biolans-result__section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1B3A8C;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.biolans-result__section-label .br-emoji {
    font-size: 0.95rem;
    line-height: 1;
}

/* Texto de sección */
.biolans-result__section p {
    font-size: 0.97rem;
    line-height: 1.75;
    color: #374151;
    margin: 0;
}

/* ── Rutinas ─────────────────────────────────────────────────── */
.biolans-result__routines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.biolans-result__routine-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    border: 2px solid #1B3A8C;
    background: #fff;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.12s ease,
        box-shadow 0.18s ease;
    gap: 12px;
}

.biolans-result__routine-btn:hover {
    background: #1B3A8C;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(27, 58, 140, 0.22);
    text-decoration: none !important;
}

/* Rutina principal: relleno naranja */
.biolans-result__routine-btn--primary {
    background: #E87722;
    border-color: #E87722;
}

.biolans-result__routine-btn--primary:hover {
    background: #c9641a;
    border-color: #c9641a;
    box-shadow: 0 4px 14px rgba(232, 119, 34, 0.3);
}

.biolans-result__routine-btn--primary .br-routine-left,
.biolans-result__routine-btn--primary .br-routine-arrow {
    color: #fff;
}

.biolans-result__routine-btn:hover .br-routine-left,
.biolans-result__routine-btn:hover .br-routine-arrow {
    color: #fff;
}

.br-routine-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1B3A8C;
    transition: color 0.18s ease;
}

.br-routine-icon {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.br-routine-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.br-routine-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.br-routine-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
}

.br-routine-arrow {
    font-size: 1.1rem;
    color: #1B3A8C;
    transition: color 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
}

.biolans-result__routine-btn:hover .br-routine-arrow {
    transform: translateX(4px);
}

/* ── Productos ───────────────────────────────────────────────── */
.biolans-result__products-wrap {
    background: #fff;
    border: 1px solid #E2E6EF;
    border-radius: 8px;
    padding: 20px 22px;
    margin-bottom: 14px;
    transition: box-shadow 0.18s ease;
}

.biolans-result__products-wrap:hover {
    box-shadow: 0 3px 14px rgba(27, 58, 140, 0.07);
}

.biolans-result__products-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1B3A8C;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.biolans-result__products-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.br-product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #F7F9FF;
    border: 1px solid #E2E6EF;
    border-radius: 6px;
    text-decoration: none !important;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.12s ease;
    gap: 12px;
}

.br-product-card:hover {
    background: #EEF2FB;
    border-color: #1B3A8C;
    transform: translateX(3px);
    text-decoration: none !important;
}

.br-product-name {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.18s ease;
    flex: 1;
}

.br-product-card:hover .br-product-name {
    color: #1B3A8C;
}

.br-product-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1B3A8C;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    transition: gap 0.15s ease;
}

.br-product-card:hover .br-product-cta {
    gap: 7px;
}

/* Producto sin URL: sin hover */
.br-product-card--no-link {
    pointer-events: none;
    cursor: default;
}

.br-product-card--no-link .br-product-cta {
    display: none;
}

/* ── CTA WhatsApp ─────────────────────────────────────────────── */
.biolans-result__cta {
    margin-top: 24px;
    text-align: center;
}

.biolans-result__wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 4px;
    background: #25D366;
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition:
        background 0.18s ease,
        transform 0.12s ease,
        box-shadow 0.18s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.28);
}

.biolans-result__wa-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(37, 211, 102, 0.38);
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Error ───────────────────────────────────────────────────── */
.biolans-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    padding: 20px 22px;
    border-radius: 8px;
    color: #991b1b;
    max-width: 540px;
    margin: 0 auto;
}

.biolans-error strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 8px;
}

.biolans-error p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .biolans-result__section,
    .biolans-result__products-wrap {
        padding: 16px 16px;
    }

    .biolans-result__routine-btn {
        padding: 14px 16px;
    }

    .br-routine-name {
        font-size: 0.85rem;
    }

    .biolans-result__wa-btn {
        width: 100%;
        justify-content: center;
    }
}
