/* ===== AUTO OFFERS BUILDER — FRONTEND ===== */
.aob-section {
    --aob-primary:   #001E50;
    --aob-secondary: #00B0F0;
    --aob-accent:    #0040C1;
    --aob-card-bg:   #ffffff;
    --aob-img-from:  #F0F4FF;
    --aob-img-to:    #DDE3EE;
    --aob-cols:      3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: inherit;
}
.aob-error { color: #c00; padding: 12px; }

/* Header */
.aob-section-header { margin-bottom: 32px; }
.aob-brand-logo { max-height: 48px; margin-bottom: 12px; display: block; }
.aob-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--aob-primary);
    margin: 0 0 6px;
    letter-spacing: -.4px;
}
.aob-section-subtitle {
    font-size: 18px;
    color: #6a6a6a;
    margin: 0;
}

/* Grid */
.aob-grid {
    display: grid;
    grid-template-columns: repeat(var(--aob-cols, 3), 1fr);
    gap: 24px;
}
@media (max-width: 1024px) { .aob-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .aob-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Card */
.aob-card {
    background: var(--aob-card-bg);
    border-radius: 12px;
    border: 1.5px solid #eeeeee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,30,80,.09);
    transition: box-shadow .25s, transform .25s;
}
.aob-card:hover {
    box-shadow: 0 6px 24px rgba(0,30,80,.17);
    transform: translateY(-3px);
}

/* Image */
.aob-card-img-wrap {
    background: linear-gradient(135deg, var(--aob-img-from) 0%, var(--aob-img-to) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.aob-car-img {
    width: 88%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 8px 14px rgba(0,30,80,.13));
    transition: transform .3s;
}
.aob-card:hover .aob-car-img { transform: scale(1.03); }

/* Body */
.aob-card-body {
    padding: 16px 18px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.aob-model-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--aob-primary);
    margin: 0 0 10px;
    letter-spacing: -.2px;
}

/* Version tabs */
.aob-version-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.aob-vtab {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--aob-primary);
    background: transparent;
    color: var(--aob-primary);
    cursor: pointer;
    transition: all .16s;
    white-space: nowrap;
    font-family: inherit;
}
.aob-vtab.active,
.aob-vtab:hover {
    background: var(--aob-primary);
    color: #fff;
}
.aob-single-version {
    font-size: 13px;
    color: #6a6a6a;
    margin-bottom: 10px;
    font-style: italic;
}

/* Promo */
.aob-promo { margin-bottom: 12px; }
.aob-promo-precio {
    font-size: 16px;
    color: var(--aob-primary);
    margin-bottom: 5px;
}
.aob-promo-precio strong { font-size: 20px; }
.aob-promo-tag {
    font-size: 13px;
    color: var(--aob-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    padding: 4px 0;
}
.aob-promo-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--aob-secondary);
    flex-shrink: 0;
}
.aob-promo-fin {
    font-size: 14px;
    font-weight: 700;
    color: #00884A;
    margin: 6px 0 4px;
    line-height: 1.4;
    padding: 6px 10px;
    background: rgba(0,136,74,.08);
    border-radius: 6px;
    display: inline-block;
}
.aob-promo-vig {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 3px;
}

/* Accordion */
.aob-accordion {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}
.aob-acc-header {
    width: 100%;
    background: none;
    border: none;
    padding: 9px 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--aob-primary);
    font-family: inherit;
    gap: 8px;
    text-align: left;
    transition: background .15s;
}
.aob-acc-header span { display: flex; align-items: center; gap: 5px; }
.aob-acc-header:hover { background: #f5f5f5; }
.aob-acc-arrow { transition: transform .25s; flex-shrink: 0; }
.aob-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.aob-acc-body.open { max-height: 500px; }
.aob-equip-list {
    padding: 6px 13px 12px;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.aob-equip-list li {
    font-size: 13px;
    color: #5a5a5a;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.4;
}
.aob-equip-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--aob-primary);
}

/* Footer */
.aob-card-footer {
    margin-top: auto;
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.aob-btn-cotizar {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: var(--aob-primary);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    transition: background .18s, transform .15s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.aob-btn-cotizar:hover {
    background: var(--aob-accent);
    transform: translateY(-1px);
    color: #fff !important;
}
.aob-legales-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #8a8a8a;
    text-decoration: underline;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
}
.aob-legales-btn:hover { color: var(--aob-primary); }

/* Modal */
.aob-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.aob-modal-overlay.open { display: flex; }
.aob-modal-box {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    padding: 28px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}
.aob-modal-title {
    font-weight: 700;
    font-size: 17px;
    color: var(--aob-primary, #001E50);
    margin-bottom: 10px;
}
.aob-modal-text {
    font-size: 14px;
    color: #44505f;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}
.aob-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8a8a8a;
    line-height: 1;
}
