:root {
    /* Paleta de Colores AquaNova */
    --color-primary: #0284c7; /* Sky 600 */
    --color-primary-dark: #0369a1; /* Sky 700 */
    --color-secondary: #0f172a; /* Slate 900 */
    --color-accent: #38bdf8; /* Sky 400 */
    --color-background: #f5f5f5; /* Slate 50 */
    --color-surface: #ffffff; /* White */
    --color-text-primary: #1e293b; /* Slate 800 */
    --color-text-secondary: #64748b; /* Slate 500 */
    --color-border: #e2e8f0; /* Slate 200 */
    --color-border-hover: #cbd5e1; /* Slate 300 */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-warning-bg: #fffbeb;
    --color-warning-border: #fcd34d;
    --color-danger: #ef4444; /* Rojo intenso */
    
    /* Nuevo color para badge de descuento (Azul vibrante tipo Indigo/Purple) */
    --color-promo-badge: #4f46e5; 
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
}

/* Reset y Base */
* { 
    box-sizing: border-box;
    margin: 0; padding: 0; 
     /* FIX: Elimina el cuadro azul de selección (tap highlight) en móviles */
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 0; 
}
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

/* Utilidades */
.bbl-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.bbl-section { padding: 4rem 0; }
.bbl-text-center { text-align: center; }
.bbl-hidden { display: none !important; }
.bbl-visible { opacity: 1 !important; transform: translateY(0) !important; }
.hidden { display: none !important; }

/* --- CLASES DE RESALTE (HIGHLIGHTS) --- */

/* 1. Highlight en Barra Promo (Amarillo/Dorado por defecto - Descuentos) */
.bbl-promo-highlight {
    color: #fbbf24; /* Amber 400 */
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* 2. Highlight en Barra Promo (Rojo - Regalos) */
.bbl-promo-highlight-red {
    color: #e11d48; /* Rose 300 (Claro para contraste sobre fondo oscuro) */
    font-weight: 900;
    /*text-transform: uppercase;*/
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* 3. Highlight General de Títulos (Azul AquaNova) */
.bbl-title-highlight {
    color: var(--color-accent); /* Sky 400 */
}

/* 4. Highlight para "Gratis" o Éxito (Verde) */
.bbl-highlight-free {
    color: var(--color-success);
    font-weight: 800;
}

/* 5. Highlight tipo Badge en texto (Ya existente pero formalizado) */
.bbl-highlight-discount {
    color: #d97706; 
    font-weight: 800;
    background: #fef3c7;
    padding: 0 0.25rem;
    border-radius: 0.25rem;
}

/* --- BARRA DE PROMOCIÓN (Top Bar) --- */
#promo-bar {
    background-color: var(--color-secondary);
    color: var(--color-surface); 
    padding: 0.75rem 0; 
    position: relative;
    z-index: 100;
    display: none; /* Se activa con JS */
    border-bottom: 3px solid var(--color-accent);
}

.bbl-promo-content {
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: center;
    min-height: 40px; 
}

.bbl-promo-text {
    font-weight: 700;
    font-size: 1.05rem; 
    color: var(--color-surface) !important; 
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 0.75rem;
    line-height: 1.5; 
    flex-wrap: wrap;
}

.bbl-promo-timer {
    background: rgba(255,255,255,0.15); 
    padding: 0.4rem 1rem;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-accent); 
    display: flex;
    gap: 0.5rem;
    align-items: center; 
    border: 1px solid rgba(255,255,255,0.1);
    line-height: 1; 
    height: 100%;
}

.bbl-promo-timer span:first-child {
     color: var(--color-surface); 
     font-family: 'Open Sans', sans-serif;
     font-size: 0.85rem;
     margin-right: 0.25rem;
     display: flex;
     align-items: center;
}

/* Botón de regalo estilo Badge */
.bbl-gift-badge {
    background-color: var(--color-danger);
    color: var(--color-surface);
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    line-height: 1; 
}

.bbl-gift-badge:hover {
    transform: scale(1.05);
    background-color: #dc2626;
}

/* Estilo base (sin promo) */
.bbl-base-promo-text {
    color: var(--color-surface) !important;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- HERO --- */
.bbl-hero-section {
    position: relative;
    min-height: 85vh; 
    width: 100%;
    overflow: hidden;
    background-color: var(--color-secondary);
    color: var(--color-surface);
    padding-top: 2rem; 
}
.bbl-hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}
.bbl-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bbl-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(15, 23, 42, 0.75); 
}
.bbl-hero-content-wrapper {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; 
    padding: 0 1rem;
}
.bbl-hero-grid-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    align-items: center;
}
.bbl-hero-text {
    text-align: center;
}
.bbl-hero-subtitle {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}
.bbl-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.bbl-hero-description {
    font-size: 1.125rem;
    color: var(--color-border); /* Usando border color light slate */
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}
.bbl-hero-cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-surface);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    transition: transform 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.4);
    text-decoration: none;
}
.bbl-hero-cta-button:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(2, 132, 199, 0.5);
    color: var(--color-surface);
}
.bbl-hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.bbl-hero-image {
    width: 100%;
    max-width: 28rem;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

@keyframes bbl-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}
.bbl-fish-animation {
    animation: bbl-float 6s ease-in-out infinite;
}

@media (min-width: 768px) {
    .bbl-hero-grid-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .bbl-hero-text { text-align: left; }
    .bbl-hero-description { margin-left: 0; margin-right: 0; }
    .bbl-main-title { font-size: 3.5rem; }
    .bbl-hero-cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* --- BARRA DE PAGO Y CONFIANZA --- */
.bbl-payment-trust-bar { 
    background-color: var(--color-surface); 
    padding: 1.5rem 0; 
    border-bottom: 1px solid #f1f5f9;
}
.bbl-payment-trust-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 2rem;
}
.bbl-payment-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.bbl-payment-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.bbl-payment-icons img {
    height: 40px; 
}

/* --- SECCIÓN PROCESO --- */
.bbl-process-section {
    background: var(--color-surface);
    position: relative;
    padding-bottom: 2rem;
}
.bbl-steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
@media (min-width: 768px) {
    .bbl-steps-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .bbl-steps-container { grid-template-columns: repeat(4, 1fr); }
}

.bbl-step-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.bbl-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.bbl-step-number {
    position: absolute;
    top: -15px; left: 50%; transform: translateX(-50%);
    width: 35px; height: 35px;
    background: var(--color-primary); 
    color: var(--color-surface);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; border: 3px solid var(--color-surface);
}
.bbl-step-icon {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}
.bbl-step-title {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}
.bbl-step-desc {
    font-size: 0.9rem; color: var(--color-text-secondary);
}

/* --- TÍTULO CATÁLOGO (MEJORADO) --- */
.bbl-builder-title-wrapper {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem; 
    text-align: center; 
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    margin-top: 0; 
    z-index: 10;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 768px) {
    .bbl-builder-title-wrapper { padding: 3rem; }
}

/* ESTADO POR DEFECTO - SE SOBREESCRIBE POR JS DINÁMICAMENTE */
.bbl-builder-title-wrapper.bbl-premium-highlight {
    border-width: 2px;
    /* El color se inyectará via JS para coincidir con el badge */
}

.bbl-builder-title-wrapper .bbl-badge {
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
    background-color: var(--color-primary); /* Default */
    color: var(--color-surface);
    font-size: 0.875rem; font-weight: 800; padding: 0.5rem 1.5rem; border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.bbl-builder-title-wrapper h2 {
    font-size: 2rem; font-weight: 900;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    text-align: center; 
}

.bbl-builder-title-wrapper p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto; 
    text-align: center;
}

/* CORRECCIÓN VISUALIZACIÓN TEXTO FINAL */
.bbl-builder-title-wrapper .bbl-promo-text-static {
    color: var(--color-text-primary) !important; /* Forzar color oscuro */
    font-weight: 700 !important; /* Forzar negrita */
    font-size: 1.15rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 5;
}

/* Constructor de Paquetes */
.bbl-builder-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem; 
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .bbl-builder-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.bbl-fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* --- TARJETA DE PEZ --- */
.bbl-fish-item {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); 
    overflow: hidden;
    transition: all 0.3s ease;
    border: none; 
    display: flex;
    flex-direction: column;
    cursor: pointer; 
    height: 100%;
    position: relative;
}
.bbl-fish-item:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ESTADO SELECCIONADO */
.bbl-fish-item.bbl-is-selected { 
    box-shadow: 0 0 0 2px var(--color-primary), 0 20px 25px -5px rgba(0, 0, 0, 0.1); 
    background-color: #f0f9ff; 
}

/* CLASE PARA OCULTAR POR FILTRO */
.bbl-fish-item.bbl-hidden-by-filter {
    display: none; 
}

/* Estilos Item Agotado */
.bbl-fish-item--unavailable { 
    pointer-events: none; 
}
.bbl-fish-item--unavailable .bbl-fish-image-wrapper,
.bbl-fish-item--unavailable .bbl-fish-details,
.bbl-fish-item--unavailable .bbl-fish-item-controls {
    opacity: 0.6;
    filter: grayscale(1);
}
.bbl-fish-item.bbl-fish-item--unavailable::before {
    content: 'AGOTADO';
    position: absolute;
    z-index: 20; 
    top: 18px;
    right: -30px;
    width: 120px;
    padding: 5px 10px;
    background-color: var(--color-danger); 
    color: var(--color-surface);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.bbl-fish-image-wrapper { height: 200px; overflow: hidden; background: #eee; position: relative; }
.bbl-fish-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.bbl-fish-item:hover .bbl-fish-image { transform: scale(1.05); }

.bbl-fish-details { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.bbl-fish-name { font-weight: 700; color: var(--color-text-primary); font-size: 1.1rem; line-height: 1.3; }

/* --- NUEVOS ESTILOS PARA PRECIOS PROGRESIVOS --- */
.bbl-price-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto; /* Empujar precios hacia abajo */
}

/* Precio estándar cuando no hay oferta */
.bbl-standard-price {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.15rem;
}

/* Estructura Visual de Descuento (Visible en Temporada) */
.bbl-discount-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.bbl-prices-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bbl-original-price {
    text-decoration: line-through;
    color: var(--color-text-secondary); /* Gris slate */
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
}

.bbl-discounted-price {
    color: var(--color-promo-badge); /* Azul vibrante */
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.2;
}

.bbl-discount-badge {
    background-color: var(--color-promo-badge);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
    min-width: 50px;
}

/* ------------------------------------------ */

.bbl-fish-item-controls {
    padding: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-background);
}

.bbl-control-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 2px solid var(--color-border-hover);
    background: var(--color-surface);
    color: var(--color-text-primary);
    cursor: pointer;
    font-weight: bold;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    z-index: 2; 
    -webkit-tap-highlight-color: transparent; /* ELIMINA EL EFECTO AZUL EN MÓVILES */
    outline: none;
}

.bbl-control-btn:hover { background: var(--color-primary); color: var(--color-surface); border-color: var(--color-primary); }
.bbl-control-btn:disabled {
    cursor: not-allowed;
    background-color: #f1f5f9;
    color: #cbd5e1;
    border-color: var(--color-border);
}

/* Panel Resumen */
.bbl-summary-panel {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 20px; 
    height: fit-content;
    border: 1px solid var(--color-border);
    z-index: 50; 
}
.bbl-summary-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }

.bbl-progress-container { margin-bottom: 1.5rem; }
.bbl-progress-label { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.5rem; font-weight: 600; }
.bbl-progress-track { height: 8px; background: var(--color-border); border-radius: 4px; overflow: hidden; }
.bbl-progress-fill { height: 100%; background: var(--color-primary); width: 0%; transition: width 0.5s ease-out; }

.bbl-summary-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.95rem; }
.bbl-total-row { border-top: 2px dashed var(--color-border); margin-top: 1rem; padding-top: 1rem; font-weight: 800; font-size: 1.25rem; color: var(--color-primary-dark); }
.bbl-discount-text { color: var(--color-success); }

/* CTA GENERAL */
.bbl-cta-button {
    display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem;
    width: 100%; padding: 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 700; cursor: pointer; text-decoration: none;
    transition: all 0.2s; border: none; font-size: 1rem;
}
.bbl-cta-button.bbl-primary { background: var(--color-primary); color: var(--color-surface); box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.4); }
.bbl-cta-button.bbl-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.bbl-cta-button.bbl-secondary { background: var(--color-surface); color: var(--color-text-secondary); border: 1px solid var(--color-border-hover); }
.bbl-cta-button.bbl-clear { background: transparent; color: var(--color-danger); font-size: 0.875rem; margin-top: 0.5rem; }
.bbl-cta-button:disabled, .bbl-is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.bbl-cta-button.bbl-whatsapp { background: #25D366; color: var(--color-surface); }

#contact .bbl-cta-button {
    width: 100%; /* Default mobile */
}
@media (min-width: 768px) {
    #contact .bbl-cta-button {
        width: auto;
        padding: 1rem 3rem;
        font-size: 1.1rem;
        min-width: 300px;
    }
}

.bbl-validation-message {
    margin-top: 1rem; padding: 0.75rem; border-radius: var(--radius-md); font-size: 0.875rem; text-align: center;
}
.bbl-validation-message.bbl-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* --- REVIEWS --- */
.rg-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 1.5rem;
    margin-top: 3rem; 
}
.rg-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    color: #333;
    transition: transform 0.3s ease; 
}
.rg-card:hover {
    transform: translateY(-5px); 
}
.rg-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.rg-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.rg-author-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}
.rg-author-info .rg-sub-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.rg-rating {
    color: var(--color-warning); /* Color ámbar */
    font-size: 0.875rem;
    display: flex;
    gap: 0.1rem;
}
.rg-source {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}
.rg-card-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    margin: 0;
}
.rg-platform-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rg-platform-icon i { font-size: 1.5rem; }
.rg-platform-icon.facebook { color: #1877F2; }
.rg-platform-icon.google svg { width: 24px; height: 24px; }
.rg-platform-icon.yelp svg { width: 24px; height: 24px; }

.rg-load-more-container { text-align: center; margin-top: 3rem; }
.rg-load-more-btn { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); padding: 0.75rem 2rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.rg-load-more-btn:hover { background: var(--color-primary); color: var(--color-surface); }

/* --- WHY US --- */
.bbl-why-us-section { background: var(--color-background); }

.bbl-section-title { text-align: center; margin-bottom: 3rem; }
.bbl-section-tag { display: inline-block; background: #e0f2fe; color: #0284c7; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 1rem; }
.bbl-animated-title { font-size: 2rem; font-weight: 800; color: var(--color-secondary); }
.bbl-p-container { max-width: 600px; margin: 0 auto; color: var(--color-text-secondary); }
.bbl-why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

.bbl-why-us-item { 
    text-align: center; 
    padding: 2rem; 
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bbl-why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary); /* Un toque sutil de color al hover */
}

.bbl-why-us-heading { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.bbl-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.bbl-color-rose { color: #e11d48; } .bbl-color-amber { color: #d97706; } .bbl-color-sky { color: #0284c7; }

/* --- FAQ --- */
.bbl-faq-section { background: var(--color-background); }
.bbl-faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.bbl-faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s ease; }
.bbl-faq-item:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-hover); transform: translateY(-2px); }
.bbl-faq-item.bbl-active { border-color: var(--color-primary); box-shadow: var(--shadow-md); }

.bbl-faq-question { 
    width: 100%; 
    text-align: left; 
    padding: 1.25rem; 
    background: none; 
    border: none; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.bbl-question-content { display: flex; align-items: center; gap: 1rem; }
.bbl-faq-icon-circle { width: 40px; height: 40px; border-radius: 50%; background: #f0f9ff; color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background 0.3s, color 0.3s; }
.bbl-faq-item:hover .bbl-faq-icon-circle { background: var(--color-primary); color: var(--color-surface); }
.bbl-faq-question span { font-weight: 700; color: var(--color-text-primary); font-size: 1.05rem; }
.bbl-faq-toggle-icon { color: #94a3b8; transition: transform 0.3s; }
.bbl-faq-item.bbl-active .bbl-faq-toggle-icon { transform: rotate(180deg); color: var(--color-primary); }

.bbl-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); background: var(--color-background); }
.bbl-faq-answer p { padding: 1.25rem; color: var(--color-text-secondary); line-height: 1.6; border-top: 1px solid #f1f5f9; margin: 0; }

/* Footer */
footer { background: var(--color-secondary); color: var(--color-surface); padding: 2rem 0 2rem; text-align: center; }
.bbl-footer-logo { width: 165px; margin-bottom: 1.5rem; /*filter: brightness(0) invert(1);*/ }
.bbl-footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.bbl-footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; }
.bbl-footer-links a:hover { color: var(--color-surface); }

/* BARRA FLOTANTE MEJORADA */
.bbl-floating-summary-bar { 
    position: fixed; bottom: 0; left: 0; width: 100%; 
    background: var(--color-surface); padding: 1rem 1.5rem; 
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1); 
    z-index: 90; display: flex; justify-content: space-between; align-items: center; 
    transform: translateY(100%); transition: transform 0.3s ease-in-out; border-top: 1px solid var(--color-border); 
}

@media (min-width: 1024px) {
    .bbl-floating-summary-bar {
        justify-content: center; /* Centrado en escritorio */
        gap: 3rem;
    }
}

.bbl-info-main { font-weight: 800; font-size: 1.1rem; color: var(--color-secondary); display: block; }
.bbl-info-discount { font-size: 0.9rem; color: var(--color-success); font-weight: 600; }
.bbl-total { font-weight: 800; font-size: 1.5rem; color: var(--color-primary-dark); } 
.bbl-floating-summary-bar .bbl-cta-button {
    width: auto; padding: 0.75rem 2rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- CLASES DE CENTRADO DINÁMICO (SMART CENTERING) --- */
.bbl-floating-summary-bar.bbl-bar-centered {
    justify-content: center;
    gap: 2rem;
}
.bbl-cta-button.hidden-force, .bbl-total.hidden-force, .bbl-total-container.hidden-force {
    display: none !important; /* Forzar ocultamiento */
}

/* --- AJUSTES MÓVILES PARA BARRA FLOTANTE --- */
@media (max-width: 640px) {
    .bbl-floating-summary-bar {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    .bbl-info-main { font-size: 0.85rem; }
    .bbl-info-discount { font-size: 0.75rem; }
    .bbl-total { font-size: 1.1rem; }
    .bbl-floating-summary-bar .bbl-cta-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .bbl-info { flex-shrink: 1; min-width: 0; }
    
    /* Ajuste de centrado en móvil */
    .bbl-floating-summary-bar.bbl-bar-centered {
        gap: 1rem;
    }
}

/* Modals */
.bbl-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 200; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.bbl-modal-overlay.bbl-visible { opacity: 1; pointer-events: auto; }
.bbl-modal-content { background: var(--color-surface); padding: 2rem; border-radius: var(--radius-lg); width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.bbl-modal-form-group { margin-bottom: 1.5rem; }
.bbl-modal-input { width: 100%; padding: 0.75rem; border: 1px solid var(--color-border-hover); border-radius: var(--radius-md); font-size: 1rem; }
.bbl-modal-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.bbl-toggle-summary-btn { background: none; border: none; color: var(--color-primary); font-weight: 600; cursor: pointer; width: 100%; text-align: left; padding: 0.5rem 0; margin-bottom: 0.5rem; display: flex; justify-content: space-between; }
.bbl-modal-summary-text { background: #f1f5f9; padding: 1rem; border-radius: var(--radius-md); font-family: monospace; font-size: 0.85rem; white-space: pre-wrap; margin-bottom: 1rem; }
.bbl-modal-warning { background: var(--color-warning-bg); border: 1px solid var(--color-warning-border); padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1rem; display: flex; gap: 0.75rem; font-size: 0.875rem; color: #92400e; }
.bbl-modal-policy-check { display: flex; gap: 0.5rem; align-items: baseline; margin-bottom: 1.5rem; font-size: 0.875rem; }

/* Media Queries */
@media (max-width: 768px) {
    .bbl-builder-layout { margin-top: 0; } 
    .bbl-summary-panel { position: static; margin-top: 2rem; }
}

/* --- MODIFICADO: BARRA DE HERRAMIENTAS NO-STICKY --- */
.bbl-catalog-toolbar {
    position: relative; /* Normal flow */
    background: var(--color-surface); /* Fondo sólido */
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.bbl-filter-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

/* Switch tipo iOS */
.bbl-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.bbl-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.bbl-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.bbl-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bbl-switch input:checked + .bbl-slider {
    background-color: var(--color-primary);
}

.bbl-switch input:focus + .bbl-slider {
    box-shadow: 0 0 1px var(--color-primary);
}

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

.bbl-toggle-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bbl-count-badge {
    background-color: var(--color-secondary);
    color: white;
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    transition: background-color 0.3s;
}

.bbl-switch input:checked ~ .bbl-toggle-label .bbl-count-badge {
    background-color: var(--color-primary);
}

/* Estado vacío del filtro */
.bbl-empty-filter-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    background: var(--color-background);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--color-border);
    color: var(--color-text-secondary);
}