/* =====================================================
   NFC – Mis Tarjetas
   Archivo: /assets/nfc-mis-tarjetas.css
   Inspirado en nfc-mis-contactos.css
   ===================================================== */

/* ── Contenedor principal ── */
.nfc-mis-tarjetas-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    font-family: Georgia, 'Times New Roman', serif;
}

/* ── Título ── */
.nfc-mis-tarjetas-container h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

/* ── Texto de cuota ── */
.nfc-mis-tarjetas-container .nfc-quota {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 22px;
}

/* ── Botón crear tarjeta ── */
.nfc-create-card {
    display: inline-block;
    margin: 0 auto 26px;
    padding: 9px 20px;
    border-radius: 30px;
    background: #cfe7ff;
    color: #124a7a;
    font-weight: 600;
    text-decoration: none;
    transition: transform .12s, opacity .15s;
}

.nfc-create-card:hover {
    transform: scale(1.04);
    opacity: 0.9;
}

/* ── Lista sin bullets ── */
.nfc-mis-tarjetas-container .nfc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── Tarjeta ── */
.nfc-mis-tarjetas-container .nfc-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 110px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
    background: #e8e8e8;
}

/* ── Imagen fondo tarjeta ── */
.nfc-item-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.82);
    z-index: 0;
}

.nfc-item-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.55) 0%,
        rgba(255,255,255,0.30) 40%,
        rgba(255,255,255,0.10) 100%
    );
}

/* ── Avatar ── */
.nfc-item-avatar {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 18px;
    background: #fff;
    border: 3px solid rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nfc-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder inicial */
.nfc-item-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #555;
    background: #f0f0f0;
}

/* ── Contenido central ── */
.nfc-item-body {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 0 16px;
    min-width: 0;
}

.nfc-item-body .nfc-item-nombre {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nfc-item-body .nfc-item-slug {
    font-size: 0.82rem;
    color: #ffffff;
}

/* ── Tarjeta inactiva ── */
.nfc-card-inactive {
    font-size: 0.78rem;
    color: #b30000;
    font-weight: 600;
}

/* ── Botones ── */
.nfc-item-actions {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-right: 18px;
}

.nfc-item-actions a {
    display: inline-block;
    width: 90px;
    text-align: center;
    padding: 7px 0;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .12s, opacity .15s;
}

.nfc-item-actions a:hover {
    opacity: 0.9;
    transform: scale(1.04);
}

/* ── Botones específicos ── */

.nfc-btn-ver {
    background: #a8e6a3;
    color: #1a4a17 !important;
}

.nfc-btn-editar {
    background: #ffe8a3;
    color: #6a4a00 !important;
}

.nfc-btn-stats {
    background: #cfe7ff;
    color: #124a7a !important;
}

/* ── Sin tarjetas ── */
.nfc-empty {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-top: 24px;
}

/* ── Responsive ── */
@media (max-width: 520px) {

    .nfc-item {
        height: auto;
        min-height: 90px;
        padding: 12px 0;
    }

    .nfc-item-avatar {
        width: 56px;
        height: 56px;
        margin-left: 12px;
    }

    .nfc-item-body {
        padding: 0 10px;
    }

    .nfc-item-actions {
        margin-right: 12px;
    }

    .nfc-item-actions a {
        width: 76px;
        font-size: 0.8rem;
    }

}