/*
 * Vehicle Battery Finder Pro - front.css
 * Versión 1.0.6-bc (bateriascanarias) - 21/05/2026
 */

/* === Bloque general === */
.vbfp-premium-block {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.vbfp-header {
    text-align: center;
    margin-bottom: 25px;
}

.vbfp-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.vbfp-header .vbfp-subtitle {
    color: #5a6772;
    font-size: 14px;
}

/* === Selector tipo vehículo === */
.vbfp-vehicle-type-selector {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.vbfp-type-btn {
    padding: 10px 25px;
    margin: 0 10px 10px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.vbfp-type-btn.active,
.vbfp-type-btn:hover {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.vbfp-col {
    margin-bottom: 15px;
}

/* === Paso de tecnología === */
.vbfp-technology-step {
    margin-top: 10px;
    margin-bottom: 5px;
}

.vbfp-technology-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 18px;
}

.vbfp-technology-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.vbfp-technology-copy {
    margin-bottom: 12px;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
}

.vbfp-technology-copy strong {
    color: #222;
}

.vbfp-technology-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vbfp-tech-btn {
    border: 1px solid #d0d7de;
    background: #fff;
    color: #222;
    border-radius: 20px;
    padding: 9px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vbfp-tech-btn:hover,
.vbfp-tech-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.vbfp-actions {
    text-align: center;
    margin-top: 20px;
}

/* === Resultados === */
.vbfp-results {
    margin-top: 30px;
}

.vbfp-results-wrapper {
    margin-top: 8px;
}

.vbfp-results-title {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 700;
}

.vbfp-grouped-intro {
    margin-bottom: 24px;
    padding: 14px 18px;
    background: #eef6ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    font-size: 14px;
    color: #1f3a5f;
}

.vbfp-grouped-intro strong {
    display: block;
    margin-bottom: 4px;
}

.vbfp-help-link {
    display: inline-block;
    margin-top: 8px;
    color: #007bff;
    font-weight: 700;
    text-decoration: none;
}

.vbfp-help-link:hover {
    text-decoration: underline;
}

/* === Grupo por tecnología === */
.vbfp-technology-group {
    margin-bottom: 35px;
}

.vbfp-group-header {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e8eb;
}

.vbfp-group-title {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    color: #222;
}

.vbfp-group-subtitle {
    font-size: 13px;
    color: #6b7785;
}

.vbfp-product-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.vbfp-product-row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
    display: flex;
}

/* === Card de producto === */
.vbfp-product-item {
    position: relative;
    background: #fff;
    border: 1px solid #e5e8eb;
    border-radius: 8px;
    padding: 18px 16px 20px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.vbfp-product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #d0d7de;
}

/* === Sutil fondo por marca (muy ligero, no satura) === */
.vbfp-brand-bg-xtech {
    border-top: 3px solid #28a745;
}

.vbfp-brand-bg-varta {
    border-top: 3px solid #1f6feb;
}

.vbfp-brand-bg-tudor {
    border-top: 3px solid #9aa6b2;
}

/* === Badge esquina "Recomendada" === */
.vbfp-badge-recommended {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: #fff;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(40,167,69,0.3);
}

/* === Badge marca (Recomendada / Premium / Más vendida) === */
.vbfp-brand-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.vbfp-brand-xtech {
    background: #e7f8ed;
    color: #1d6e35;
    border: 1px solid #b7e3c5;
}

.vbfp-brand-varta {
    background: #e6f0fd;
    color: #1245a8;
    border: 1px solid #b9d2f7;
}

.vbfp-brand-tudor {
    background: #f1f3f5;
    color: #4a5560;
    border: 1px solid #d8dde2;
}

/* === Imagen producto === */
.vbfp-thumb {
    display: block;
    margin-bottom: 14px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
}

.vbfp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* === Cuerpo card === */
.vbfp-product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vbfp-product-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    min-height: 38px;
}

.vbfp-product-title a {
    color: #222;
    text-decoration: none;
}

.vbfp-product-title a:hover {
    color: #007bff;
}

/* === Chip de tecnología === */
.vbfp-tech-chip {
    display: inline-block;
    align-self: center;
    margin: 4px 0 12px;
    padding: 4px 12px;
    border-radius: 14px;
    background: #f1f3f5;
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
}

/* === Precio === */
.vbfp-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #d4380d;
    margin-bottom: 14px;
    margin-top: auto;
}

/* === Botón Ver batería === */
.vbfp-btn-ver {
    display: inline-block;
    padding: 9px 16px;
    width: 100%;
    background: #007bff;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.vbfp-btn-ver:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

/* === CTA al final: Llamar + WhatsApp === */
.vbfp-cta-help {
    margin-top: 30px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef4fb 100%);
    border-radius: 10px;
    border: 1px solid #d6e4f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.vbfp-cta-text {
    flex: 1;
    min-width: 220px;
}

.vbfp-cta-text h5 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #222;
}

.vbfp-cta-text p {
    margin: 0;
    color: #5a6772;
    font-size: 14px;
    line-height: 1.45;
}

.vbfp-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vbfp-btn-call,
.vbfp-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.2;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vbfp-btn-call {
    background: #007bff;
}

.vbfp-btn-call:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,123,255,0.35);
}

.vbfp-btn-whatsapp {
    background: #25d366;
}

.vbfp-btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37,211,102,0.35);
}

.vbfp-btn-call strong,
.vbfp-btn-whatsapp strong {
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* === Loader === */
.vbfp-loader {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* === Mensaje "sin resultados" con CTA === */
.vbfp-no-results {
    margin: 16px 0 0;
    padding: 20px 24px;
    background: #fff8e1;
    border: 1px solid #ffe080;
    border-radius: 8px;
    color: #6b4a00;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.vbfp-no-results strong {
    display: block;
    margin-bottom: 6px;
    color: #4a3300;
    font-size: 15px;
}

/* === Móvil === */
@media (max-width: 767px) {
    .vbfp-premium-block {
        padding: 20px 15px;
    }

    .vbfp-type-btn {
        width: calc(50% - 10px);
        margin: 0 5px 10px;
        padding: 10px 12px;
    }

    .vbfp-technology-buttons {
        flex-direction: column;
    }

    .vbfp-tech-btn {
        width: 100%;
    }

    .vbfp-cta-help {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .vbfp-cta-text {
        min-width: 100%;
    }

    .vbfp-cta-buttons {
        width: 100%;
        flex-direction: column;
    }

    .vbfp-btn-call,
    .vbfp-btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .vbfp-product-title {
        min-height: 0;
    }
}

/* Botón buscador naranja - override drecambios */
.vbfp-open-modal.btn,
button.vbfp-open-modal,
.vbfp-product-hook .vbfp-open-modal {
  background-color: #FF7A00 !important;
  border-color: #FF7A00 !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(255,122,0,.35) !important;
}
.vbfp-open-modal.btn:hover,
.vbfp-open-modal.btn:focus,
button.vbfp-open-modal:hover,
button.vbfp-open-modal:focus {
  background-color: #E86E00 !important;
  border-color: #E86E00 !important;
  color: #fff !important;
}
