/* =====================================================
   NFC – Mis Contactos
   Archivo: /assets/nfc-mis-contactos.css
   ===================================================== */

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

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

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

/* ── Tarjeta de contacto ── */
.nfc-mis-contactos-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; /* fallback si no hay imagen */
}

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

/* Capa semitransparente sobre el fondo para legibilidad */
.nfc-item-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
    	90deg,
    	rgba(0,0,0,0.55) 0%,
    	rgba(0,0,0,0.45) 40%,
    	rgba(0,0,0,0.20) 100%
	);
}

/* ── Avatar (foto de perfil) ── */
.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;
    display: block;
}

/* Avatar sin foto → 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;
}

/* ── Texto central ── */
.nfc-item-body {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 0 16px;
    min-width: 0; /* necesario para que text-overflow funcione */
}

.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-desc {
    font-size: 0.82rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.45;

    /* máximo 2 líneas con puntos suspensivos */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

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

/* Botón "Ver" – verde claro */
.nfc-btn-ver {
    background: #a8e6a3;
    color: #1a4a17 !important;
}

/* Botón "Suprimir" – rojo claro */
.nfc-btn-suprimir {
    background: #f4a0a0;
    color: #5a1010 !important;
}

/* ── Sin contactos ── */
.nfc-mis-contactos-container .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;
    }
}
/* Icono menú Mis contactos */
.woocommerce-MyAccount-navigation-link--mis-contactos a::before {
    content: "\f2bb";
    font-family: "eicons";
    font-weight: 900;
    margin-right: 8px;
    font-size: 1rem;
    vertical-align: middle;
}