/* krakryp/assets/css/advertising.css */
/* Estilos para la nueva página de publicidad */

/* NUEVO: Estilo para la imagen del anuncio */
.ad-card-image {
    width: 100%;
    height: 160px; /* Altura fija para uniformidad */
    object-fit: cover; /* Recorta la imagen para que encaje */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid #e0e0e0; /* Un separador ligero */
}

.ad-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ad-card .card-title {
    font-weight: 600;
}

#collapseButton {
    transition: all 0.3s ease;
}

#collapseButton .fas {
    transition: transform 0.3s ease;
}

/* Estilo para el icono de la flecha cuando el botón está presionado */
#collapseButton[aria-expanded="true"] .fas {
    transform: rotate(180deg);
}


/* ============================================================
   CRIPTOMONEDAS DESTACADAS (promocionadas desde el panel admin)
   ============================================================ */
.crypto-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.crypto-promo-card {
    background: #ffffff;
    border: 1px solid #e6e9f2;
    border-radius: 14px;
    padding: 1.1rem 1.1rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.crypto-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.cpc-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.cpc-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    background: #f1f4fa;
    flex-shrink: 0;
}
.cpc-meta { display: flex; flex-direction: column; min-width: 0; }
.cpc-symbol { font-weight: 700; font-size: 1rem; color: #2c3e50; line-height: 1.2; }
.cpc-name {
    font-size: .8rem;
    color: #8a94a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cpc-price {
    margin-left: auto;
    font-weight: 700;
    color: #2c3e50;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cpc-actions { display: flex; gap: .55rem; margin-top: auto; }
.cpc-btn {
    flex: 1;
    text-align: center;
    padding: .55rem .5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: filter .15s ease, transform .15s ease;
}
.cpc-btn i { font-size: .82rem; margin-right: .25rem; }
.cpc-btn:hover { transform: translateY(-1px); filter: brightness(.96); }
.cpc-buy  { background: #059669; color: #ffffff; }
.cpc-buy:hover  { color: #ffffff; }
.cpc-sell { background: #ffffff; color: #dc2626; border-color: #f3c7c4; }
.cpc-sell:hover { background: #dc2626; color: #ffffff; border-color: #dc2626; }


/* ============================================================
   BLOQUE PÚBLICO DE PROMOCIONES (layouts/partials/_promociones.php)
   ============================================================ */
.kk-promos { background: #ffffff; }

.kk-promos-eyebrow {
    display: inline-block;
    padding: .35rem .9rem;
    border-radius: 50px;
    background: #fdf6e3;
    border: 1px solid #f1c40f;
    color: #8a6d0b;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kk-promos-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    padding-left: .75rem;
    border-left: 4px solid #f1c40f;
}

.kk-promos-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2d3a, #2c3e50);
    color: #f1c40f;
    font-size: 2.2rem;
}

.kk-promos-badge {
    align-self: flex-start;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a94a6;
    margin-bottom: .35rem;
}
