/* ==========================================================================
   views/contactos.css — Estilos exclusivos de Contactos (contactos.html)
   Prefijo de clases: ct-
   ========================================================================== */

/* Avatar de iniciales */
.ct-avatar {
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}
.ct-avatar-lg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 0 0 3px var(--white);
}

/* Tarjeta de emergencia */
.ct-sos {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(140deg, #FFF1F2 0%, #FFE4E6 100%);
    border: 1px solid #FECDD3;
    position: relative;
    overflow: hidden;
}
.ct-sos::before {
    content: "SOS";
    position: absolute;
    right: -6px;
    top: -14px;
    font-size: 72px;
    font-weight: 800;
    color: rgba(225, 29, 72, .07);
    letter-spacing: -.04em;
    pointer-events: none;
}
.ct-sos-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 6px 18px -10px rgba(225, 29, 72, .35);
}
.ct-sos-body { flex: 1; min-width: 0; }
.ct-sos-body p { font-size: 14.5px; font-weight: 700; color: var(--primary-base); }
.ct-sos-body span { display: block; font-size: 12px; color: var(--greyscale-500); }
.ct-sos-body small { display: block; font-size: 12.5px; font-weight: 600; color: var(--c-rose); margin-top: 2px; }

.ct-call {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, #34D399, #059669);
    box-shadow: 0 8px 18px -6px rgba(5, 150, 105, .6);
    animation: ct-pulse 2.4s ease-out infinite;
}
.ct-call:hover { color: var(--white); }
.ct-call:active { transform: scale(.92); }

@keyframes ct-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); }
    70%  { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Acciones en la lista */
.ct-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ct-actions a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-teal);
    background: var(--c-teal-bg);
}
.ct-actions a + a { color: var(--c-blue); background: var(--c-blue-bg); }
.ct-actions a:active { transform: scale(.92); }

.mod-tile span { font-weight: 600; }

/* Chips de filtro: anula el estilo global de <button> de la plantilla (width:100%, hover) */
.mod-toolbar button.ui-chip { width: auto; padding: 8px 14px; font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--greyscale-700); }
.mod-toolbar button.ui-chip:hover { color: var(--greyscale-700); background: var(--white); border-color: var(--greyscale-200); }
.mod-toolbar button.ui-chip.active,
.mod-toolbar button.ui-chip.active:hover { color: var(--white); background: var(--primary-base); border-color: var(--primary-base); }
