/* ============================================
   BILLETERA SONRISAS — Specific Styles
   Extends styles.css — same variables, same system
   ============================================ */

/* --- TAG PILL --- */
.bw-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--orange-bg);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- HERO (single column, centered, like App page) --- */
.bw-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.bw-hero__subtitle {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.7;
    margin: 16px auto 20px;
    max-width: 560px;
}
.bw-chips-hero {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
}
.bw-chip-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}
.bw-hero__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- SECTION TAG (orange label above titles) --- */
.bw-section-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 8px;
}

/* --- FILTER CHIPS --- */
.bw-filters {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.bw-filters::-webkit-scrollbar { display: none; }
.bw-filter {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.bw-filter:hover {
    border-color: var(--orange);
    color: var(--orange);
}
.bw-filter.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* --- CARD GRID --- */
.bw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- AFFILIATE CARD --- */
.bw-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.25s ease;
}
.bw-card:hover {
    border-color: var(--orange);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.bw-card__img {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.bw-card__img img {
    max-width: 80%;
    max-height: 100px;
    object-fit: contain;
}
.bw-card__tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--white);
    color: var(--orange);
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.bw-card__body {
    padding: 18px 20px 20px;
}
.bw-card__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2px;
}
.bw-card__sede {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 8px;
}
.bw-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 14px;
}
.bw-card__meta svg {
    width: 14px;
    height: 14px;
    color: var(--orange);
    flex-shrink: 0;
}
.bw-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: gap 0.2s ease;
}
.bw-card__btn:hover { gap: 8px; }

/* Hidden state for filter */
.bw-card.hidden { display: none; }

/* --- "VER TODAS" BUTTON --- */
.bw-show-all {
    text-align: center;
    margin-top: 32px;
}

/* --- CTA AFFILIATE BANNER --- */
.bw-affiliate {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 48px 56px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.bw-affiliate::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    left: -50px;
    top: -50px;
    border-radius: 50%;
    background: rgba(240,128,33,0.1);
}
.bw-affiliate__left {
    position: relative;
}
.bw-affiliate__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}
.bw-affiliate__right {
    position: relative;
}
.bw-affiliate__text {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 8px;
}
.bw-affiliate__micro {
    font-size: 13px;
    color: var(--gray-400);
    font-style: italic;
    line-height: 1.6;
}

/* --- MODAL (image top, content bottom) --- */
.bw-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(29,29,27,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 24px;
}
.bw-modal-overlay.active { display: flex; }

.bw-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.bw-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
}
.bw-modal__close:hover {
    background: var(--white);
    color: var(--black);
}

/* Modal image: horizontal banner on top */
.bw-modal__img {
    width: 100%;
    height: 160px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.bw-modal__img img {
    max-height: 90px;
    max-width: 70%;
    object-fit: contain;
}
.bw-modal__body {
    padding: 28px 32px 32px;
}
.bw-modal__title {
    font-size: 22px;
    font-weight: 800;
    margin: 8px 0 4px;
}
.bw-modal__sede {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 12px;
}
.bw-modal__desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}
.bw-modal__section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Benefits list */
.bw-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}
.bw-benefit__check {
    width: 20px;
    height: 20px;
    background: var(--orange-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.bw-benefit__check svg { width: 11px; height: 11px; color: var(--orange); }
.bw-benefit__text {
    font-size: 14px;
    color: var(--black);
    line-height: 1.5;
}

/* Info box */
.bw-modal__info {
    margin-top: 20px;
    padding: 14px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.bw-modal__info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
}
.bw-modal__info-item svg { width: 15px; height: 15px; color: var(--gray-400); flex-shrink: 0; }
.bw-modal__info-item a { color: var(--orange); }

.bw-modal__footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-200);
}
.bw-modal__footer .btn {
    font-size: 14px;
    padding: 12px 24px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .bw-grid { grid-template-columns: repeat(2, 1fr); }
    .bw-affiliate { grid-template-columns: 1fr; gap: 24px; padding: 36px 32px; }
}

@media (max-width: 768px) {
    .bw-grid { grid-template-columns: 1fr 1fr; }
    .bw-affiliate {
        grid-template-columns: 1fr;
        padding: 28px 24px;
        border-radius: var(--radius-lg);
    }
    .bw-affiliate__title { font-size: 26px; }
    .bw-modal { max-width: 100%; border-radius: var(--radius-lg); }
    .bw-modal__body { padding: 24px; }
}

@media (max-width: 480px) {
    .bw-grid { grid-template-columns: 1fr; }
}
