/* =============================================================
   MyAnnita · Dashboard Oportunidades v3 · DS v2.0
   Scope: .mya-opv3-scope (inside .main-panel)
   Fondo global: #111 · Cards: #1e1e1e · Chips: #202020
   ============================================================= */

/* Fifties Bold – solo para el saludo */
@font-face {
    font-family: 'Fifties';
    src: url('../fonts/fifties-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Override del main-panel cuando está activo el dashboard v3 */
body.page-template-page-profile .mya-opv3-scope ~ * { display: none; }
body.page-template-page-profile .main-panel { background: #111 !important; }
body.page-template-page-profile .content-wrapper--opv3 { padding: 0 !important; margin: 0 !important; background: #111; }

/* Wrapper global */
.mya-opv3-scope {
    background: #111;
    min-height: 100vh;
    padding: 20px 16px 60px;
    font-family: 'Inter', sans-serif;
    color: #FEF7E7;
}

/* ---- SALUDO ---- */
.opv3-greet {
    margin-bottom: 18px;
}
.opv3-greet-line {
    font-family: 'Fifties', 'Hanken Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #FEF7E7;
    letter-spacing: 0.3px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.opv3-greet-line em {
    color: #DAFF02;
    font-style: normal;
}
.opv3-stars {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 4px;
}
/* Cluster de 3 destellos, escalado al saludo real (canónico: ~1.33× el font del greet). */
.opv3-stars svg {
    width: 1.35em;
    height: auto;
    fill: #DAFF02;
}
.opv3-sub {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    line-height: 1.45;
}

/* ---- FILTER CHIPS ---- */
.opv3-fchips {
    display: flex;
    gap: 7px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}
.opv3-fchips::-webkit-scrollbar { display: none; }

.opv3-fchip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    background: #1a1a1a;
    color: #777;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}
.opv3-fchip.is-on {
    background: #1a1a1a;
    color: #DAFF02;
    border-color: #DAFF02;
}
.opv3-fchip--link {
    border: none;
    background: #1e1e1e;
}
.opv3-fchip--link.is-on {
    background: linear-gradient(135deg, #DAFF02 0%, #c4e800 100%);
    color: #191919;
    border: none;
    box-shadow: 0 2px 14px rgba(218,255,2,0.45);
    font-weight: 800;
}
.opv3-fchip--link.is-on svg { color: #191919; }
.opv3-fchip--link svg { color: #777; }
.opv3-fchip svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.opv3-dollar {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
}
.opv3-newdot {
    position: absolute;
    top: -3px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #DAFF02;
    border-radius: 50%;
    border: 1.5px solid #111;
    display: block;
}
.opv3-fchip.is-on .opv3-newdot { display: none; }

/* ---- CARDS CONTAINER ---- */
.opv3-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 0;
}

/* ---- SINGLE CARD ---- */
.opv3-card {
    border-radius: 13px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    background: #1e1e1e;
    position: relative;
    transition: opacity 0.18s, transform 0.18s;
}
.opv3-card.is-hidden {
    display: none;
}

/* Cover photo */
.opv3-cover {
    height: 116px;
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
}
.opv3-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.opv3-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

/* BADGE NUEVA – ribbon diagonal */
.opv3-rib-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 66px;
    height: 66px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}
.opv3-rib {
    position: absolute;
    top: 15px;
    left: -20px;
    width: 86px;
    padding: 4px 0;
    text-align: center;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.5px;
    transform: rotate(-45deg);
    background: #FEF7E7;
    color: #191919;
}

/* Value block – bottom-left over cover */
.opv3-val-block {
    position: absolute;
    left: 10px;
    bottom: 8px;
    z-index: 6;
}
.opv3-net-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}
.opv3-net-line svg {
    width: 11px;
    height: 11px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.opv3-net-line span {
    font-size: 8.5px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.opv3-price {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}
.opv3-price--camp { color: #DAFF02; }
.opv3-price--colab { color: #CB93FF; }
.opv3-content-line {
    font-size: 8.5px;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
}
.opv3-content-line--colab { color: rgba(203,147,255,0.85); }

/* Type tag – bottom-right of cover, only in Link section */
.opv3-type-tag {
    position: absolute;
    bottom: 9px;
    right: 10px;
    z-index: 6;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.16);
}
.opv3-type-tag--camp { color: #DAFF02; }
.opv3-type-tag--colab { color: #CB93FF; }
.opv3-type-tag svg {
    width: 9px;
    height: 9px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.opv3-tt-ic {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 900;
    font-size: 10px;
}

/* Card body */
.opv3-body {
    padding: 10px;
}
.opv3-body-top {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-bottom: 9px;
}
.opv3-blog {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.opv3-blog img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.opv3-blog-placeholder {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #555;
}
.opv3-meta {
    flex: 1;
    min-width: 0;
}
.opv3-brand-name {
    display: block;
    font-size: 8px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    line-height: 1;
}
.opv3-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #FEF7E7;
    line-height: 1.15;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.opv3-desc {
    font-size: 9px;
    color: #777;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.opv3-btn-details {
    display: block;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    background: #0f0f0f;
    color: #9d6bff !important;
    font-size: 10.5px;
    font-weight: 800;
    border: 1px solid #2e2e2e;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Inter', sans-serif;
}
.opv3-btn-details:hover {
    background: #171717;
    color: #9d6bff !important;
}

/* ---- SEPARADOR ---- */
.opv3-divider {
    height: 1px;
    background: #222;
    margin: 22px 0 16px;
}
.opv3-grow-lead {
    font-size: 11.5px;
    color: #888;
    margin-bottom: 14px;
    font-weight: 600;
}

/* ---- CHIPS 01/02 (acordeones) ---- */
.opv3-achips {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.opv3-acard {
    border-radius: 13px;
    position: relative;
    border: 1px solid;
    background: #202020;
}
.opv3-acard--l {
    border-color: rgba(218,255,2,0.5);
    box-shadow: 0 0 18px rgba(218,255,2,0.18), inset 0 0 12px rgba(218,255,2,0.04);
}
.opv3-acard--v {
    border-color: rgba(113,56,255,0.5);
    box-shadow: 0 0 18px rgba(113,56,255,0.22), inset 0 0 12px rgba(113,56,255,0.05);
}
.opv3-acard-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 13px;
    cursor: pointer;
    user-select: none;
}
.opv3-ac-num {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
}
.opv3-num-l { color: #DAFF02; }
.opv3-num-v { color: #7138FF; }
.opv3-ac-title {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    color: #FEF7E7;
    line-height: 1.3;
}
.opv3-chev {
    width: 16px;
    height: 16px;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s;
    flex-shrink: 0;
}
.opv3-chev--l { stroke: #DAFF02; }
.opv3-chev--v { stroke: #7138FF; }
.opv3-chev.is-open { transform: rotate(180deg); }

.opv3-acard-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.opv3-acard-body.is-open { max-height: 360px; }

/* Botón cerrar tarjeta (×) — portado del canónico */
.opv3-acard-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #191919;
    border: 1px solid #2a2a2a;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.opv3-acard-close svg {
    width: 11px;
    height: 11px;
    stroke: rgba(255,255,255,0.6);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}
.opv3-acard-close:hover svg { stroke: #fff; }
.opv3-acard-body-inner {
    padding: 0 13px 13px;
}
.opv3-ac-desc {
    font-size: 9.5px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 10px;
}
.opv3-btn-row {
    display: flex;
    gap: 7px;
    align-items: center;
}
.opv3-abtn {
    flex: 1;
    padding: 11px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.15s;
}
.opv3-abtn:hover { opacity: 0.88; }
.opv3-abtn--l { background: #DAFF02; color: #191919 !important; }
.opv3-abtn--v { background: #7138FF; color: #fff !important; }
.opv3-abtn-copy {
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.15s;
    border: none;
    flex-shrink: 0;
}
.opv3-abtn-copy--l {
    border: 1px solid #DAFF02;
    color: #DAFF02;
}
.opv3-abtn-copy--v {
    border: 1px solid #7138FF;
    color: #CB93FF;
}
.opv3-abtn-copy:hover { opacity: 0.75; }

/* Toast copy */
.opv3-toast {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    z-index: 9000;
    transition: all 0.25s;
    white-space: nowrap;
}
.opv3-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.opv3-toast--l { background: #191919; border: 1px solid #DAFF02; color: #DAFF02; }
.opv3-toast--v { background: #191919; border: 1px solid #7138FF; color: #CB93FF; }

/* ---- EMPTY STATE ---- */
.opv3-empty {
    text-align: center;
    padding: 30px 16px 20px;
}
.opv3-empty .opv3-greet-line {
    justify-content: center;
    margin-bottom: 8px;
}
.opv3-empty .opv3-sub {
    text-align: center;
    font-size: 12.5px;
    margin-bottom: 24px;
    color: #888;
}
.opv3-empty .opv3-achips { margin-top: 0; }
.opv3-acard--l.is-expanded-default .opv3-acard-body,
.opv3-acard--v.is-expanded-default .opv3-acard-body {
    max-height: 220px;
}
.opv3-acard--l.is-expanded-default .opv3-chev,
.opv3-acard--v.is-expanded-default .opv3-chev {
    transform: rotate(180deg);
}

/* ---- COMPACT FOOTER (vistas logueadas) ---- */
.mya-footer-compact {
    background: #111;
    border-top: 1px solid #1e1e1e;
    padding: 20px 16px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.mya-footer-compact .mya-fc-wm {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #DAFF02;
    letter-spacing: -0.3px;
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
}
.mya-footer-compact .mya-fc-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.mya-footer-compact .mya-fc-links a {
    color: #888 !important;
    font-size: 11px;
    text-decoration: none !important;
    transition: color 0.15s;
}
.mya-footer-compact .mya-fc-links a:hover { color: #ccc !important; }
.mya-footer-compact .mya-fc-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}
.mya-footer-compact .mya-fc-social a {
    color: #888;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
}
.mya-footer-compact .mya-fc-social a:hover { color: #ccc; }
.mya-footer-compact .mya-fc-social svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mya-footer-compact .mya-fc-copy {
    font-size: 10px;
    color: #555;
    line-height: 1.4;
}
/* El widget flotante de chat (WhatsApp "Preguntame", position:fixed abajo-derecha) tapaba
   el copyright legal "© ... GetViralARG SRL" (se leía cortado como "GetViralt"). Le damos
   clearance al footer compacto para que el widget no oculte el texto. */
.mya-footer-compact { padding-bottom: 80px; }

/* ============================================================
   RESPONSIVE · DESKTOP ≥ 768px
   ============================================================ */
@media (min-width: 768px) {
    .mya-opv3-scope {
        padding: 28px 32px 80px;
        max-width: 1100px;
        margin: 0 auto;
    }
    .opv3-greet-line { font-size: 28px; }
    .opv3-sub { font-size: 13px; }

    .opv3-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .opv3-fchips { gap: 9px; }
    .opv3-fchip { font-size: 12px; padding: 8px 15px; }

    .opv3-cover { height: 130px; }
    .opv3-price { font-size: 20px; }
    .opv3-title { font-size: 13px; }
    .opv3-desc { font-size: 10px; }
    .opv3-brand-name { font-size: 9px; }
    .opv3-btn-details { font-size: 11px; padding: 9px; }

    .opv3-achips { flex-direction: row; }
    .opv3-acard { flex: 1; }
    .opv3-ac-num { font-size: 30px; }
    .opv3-ac-title { font-size: 12px; }
    .opv3-ac-desc { font-size: 11px; }
    .opv3-abtn { font-size: 15px; padding: 12px 14px; }
    .opv3-abtn-copy { font-size: 15px; padding: 12px 18px; }

    .mya-footer-compact {
        padding: 24px 120px 24px 32px; /* +88px derecha: clearance para el widget flotante de chat */
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    .mya-footer-compact .mya-fc-wm { margin-bottom: 0; }
    .mya-footer-compact .mya-fc-links { margin-bottom: 0; }
    .mya-footer-compact .mya-fc-social { margin-bottom: 0; }
}

@media (min-width: 1100px) {
    .opv3-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
