/* Phoenix Sales Experts - Clean Carousel */

.phoenix-experts-carousel {
    --phoenix-cols: 1;
    --phoenix-gap: 24px;
    --phoenix-peek: 70px;
    --phoenix-photo: 110px;
    --phoenix-primary: #0093c1;
    --phoenix-primary-deep: #007a9e;
    --phoenix-accent: #6366f1;
    --phoenix-whatsapp: #25d366;
    --phoenix-whatsapp-deep: #128c7e;
    direction: rtl;
    position: relative;
    box-sizing: border-box;
}

.phoenix-experts-carousel *,
.phoenix-experts-carousel *::before,
.phoenix-experts-carousel *::after {
    box-sizing: border-box;
}

/* Track: horizontal scroll with snap; top padding leaves room for photo overflow above each card */
.phoenix-experts-track {
    display: flex;
    gap: var(--phoenix-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: calc(var(--phoenix-photo) / 2 + 14px) 6px 30px;
    margin: 0 -6px;
    overscroll-behavior-inline: contain;
    cursor: grab;
}
.phoenix-experts-track.is-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}
.phoenix-experts-track.is-dragging a,
.phoenix-experts-track.is-dragging img {
    pointer-events: none;
}
.phoenix-experts-track::-webkit-scrollbar { display: none; }
.phoenix-experts-track:focus { outline: none; }
.phoenix-experts-track:focus-visible {
    outline: 2px solid rgba(0, 147, 193, 0.45);
    outline-offset: 4px;
    border-radius: 16px;
}

/* Card width: cols + peek so user sees a bit of the next slide */
.phoenix-experts-track > .phoenix-expert-card {
    flex: 0 0 calc((100% - (var(--phoenix-cols) - 1) * var(--phoenix-gap) - var(--phoenix-peek)) / var(--phoenix-cols));
    scroll-snap-align: start;
}

/* Responsive columns */
@media (min-width: 640px) {
    .phoenix-experts-carousel { --phoenix-cols: 2; --phoenix-peek: 80px; }
}
@media (min-width: 1024px) {
    .phoenix-experts-carousel { --phoenix-cols: var(--phoenix-cols-desktop, 3); --phoenix-peek: 90px; }
}
.phoenix-experts-carousel[data-columns="1"] { --phoenix-cols: 1 !important; }

/* ============ CARD ============ */
.phoenix-expert-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: calc(var(--phoenix-photo) / 2 + 16px) 22px 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.phoenix-expert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(0, 147, 193, 0.08);
}

/* ============ PHOTO ============ */
.phoenix-expert-photo-wrap {
    position: absolute;
    top: calc(var(--phoenix-photo) / -2);
    left: 50%;
    transform: translateX(-50%);
    width: var(--phoenix-photo);
    height: var(--phoenix-photo);
    z-index: 2;
}

.phoenix-expert-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(0, 147, 193, 0.12);
    background: #f1f5f9;
    display: block;
    transition: transform 0.4s ease;
}

.phoenix-expert-card:hover .phoenix-expert-photo {
    transform: scale(1.04);
}

/* Status pulse */
.phoenix-expert-status {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.phoenix-expert-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    position: relative;
}
.phoenix-expert-status-dot::before,
.phoenix-expert-status-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.5);
    animation: phoenix-pulse 2s ease-out infinite;
}
.phoenix-expert-status-dot::after { animation-delay: 1s; }
@keyframes phoenix-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    80%  { transform: scale(2.4); opacity: 0;   }
    100% { transform: scale(2.4); opacity: 0;   }
}

/* ============ BODY ============ */
.phoenix-expert-body {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.phoenix-expert-name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.4;
    letter-spacing: 0;
}

.phoenix-expert-title {
    font-size: 13px;
    color: var(--phoenix-primary-deep);
    font-weight: 700;
    margin-bottom: 12px;
}

.phoenix-expert-tagline {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 14px;
}

.phoenix-expert-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 16px;
}
.phoenix-expert-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 11px;
    border-radius: 999px;
    line-height: 1.4;
    border: 1px solid #e2e8f0;
}
.phoenix-expert-pill svg,
.phoenix-expert-pill i {
    width: 13px;
    height: 13px;
    color: var(--phoenix-primary);
    fill: var(--phoenix-primary);
    flex-shrink: 0;
}

/* ============ ACTIONS ============ */
.phoenix-expert-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: auto;
}
.phoenix-expert-actions-split,
.phoenix-expert-actions:has(.phoenix-expert-btn-whatsapp):has(.phoenix-expert-btn-primary) {
    grid-template-columns: minmax(0, 4fr) minmax(44px, 1fr);
}

.phoenix-experts-carousel .phoenix-expert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 11px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    color: #ffffff !important;
    text-decoration: none !important;
    background-size: 150% 150%;
    background-position: 0 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-position 0.24s ease;
}
.phoenix-experts-carousel .phoenix-expert-btn:hover,
.phoenix-experts-carousel .phoenix-expert-btn:focus,
.phoenix-experts-carousel .phoenix-expert-btn:visited,
.phoenix-experts-carousel .phoenix-expert-btn:active {
    color: #ffffff !important;
    text-decoration: none !important;
}
.phoenix-experts-carousel .phoenix-expert-btn:focus-visible {
    outline: 3px solid rgba(15, 23, 42, 0.16);
    outline-offset: 3px;
}
.phoenix-expert-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #ffffff !important;
    fill: currentColor !important;
}
.phoenix-expert-btn svg path {
    fill: currentColor !important;
}
.phoenix-expert-btn-label {
    min-width: 0;
    overflow-wrap: anywhere;
    unicode-bidi: plaintext;
    color: inherit !important;
}

.phoenix-experts-carousel .phoenix-expert-btn-primary {
    background-image: linear-gradient(135deg, var(--phoenix-primary) 0%, var(--phoenix-accent) 50%, var(--phoenix-primary-deep) 100%);
    box-shadow: 0 6px 16px rgba(0, 147, 193, 0.28);
    direction: ltr;
}
.phoenix-experts-carousel .phoenix-expert-btn-primary:hover,
.phoenix-experts-carousel .phoenix-expert-btn-primary:focus {
    background-position: 100% 50%;
    filter: brightness(1.04) saturate(1.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 147, 193, 0.4);
}

.phoenix-experts-carousel .phoenix-expert-btn-whatsapp {
    background-image: linear-gradient(135deg, var(--phoenix-whatsapp) 0%, #18b85b 48%, var(--phoenix-whatsapp-deep) 100%);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
}
.phoenix-expert-actions-split .phoenix-expert-btn-whatsapp {
    padding-inline: 10px;
}
.phoenix-expert-actions-split .phoenix-expert-btn-whatsapp svg {
    width: 18px;
    height: 18px;
}
.phoenix-experts-carousel .phoenix-expert-btn-whatsapp:hover,
.phoenix-experts-carousel .phoenix-expert-btn-whatsapp:focus {
    background-position: 100% 50%;
    filter: brightness(1.04) saturate(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.4);
}

/* ============ MOBILE ============ */
@media (max-width: 600px) {
    .phoenix-experts-carousel { --phoenix-gap: 18px; --phoenix-peek: 50px; --phoenix-photo: 96px; }
    .phoenix-expert-card { padding: calc(var(--phoenix-photo) / 2 + 14px) 18px 20px; }
    .phoenix-expert-name { font-size: 18px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .phoenix-expert-card,
    .phoenix-expert-photo,
    .phoenix-expert-btn { transition-duration: 0.01ms !important; }
    .phoenix-expert-status-dot::before,
    .phoenix-expert-status-dot::after { animation: none !important; }
    .phoenix-experts-track { scroll-behavior: auto !important; }
}
