/* =====================================================
   TARJETAS DE PROFESIONALES - DISEÑO MINIMALISTA Y PACÍFICO
   ===================================================== */

/* Importar Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* =====================================================
   CONTENEDOR GRID DE PROFESIONALES
   ===================================================== */

.ct-professionals-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 40px 20px;
    background: transparent;
}

/* =====================================================
   TARJETA INDIVIDUAL - DISEÑO QUE TRANSMITE PAZ
   ===================================================== */

.ct-professional-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(162, 213, 214, 0.3);
    box-shadow: 0 8px 32px rgba(80, 164, 167, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 100%;
    max-width: 320px;
    min-height: 280px;
    height: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Hover suave y pacífico */
.ct-professional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(80, 164, 167, 0.12);
    border-color: rgba(80, 164, 167, 0.5);
}

/* =====================================================
   AVATAR CIRCULAR GRANDE Y SUAVE
   ===================================================== */

.ct-card-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(162, 213, 214, 0.4);
    box-shadow: 0 4px 16px rgba(80, 164, 167, 0.1);
    flex-shrink: 0;
    background: #ffffff;
    transition: all 0.3s ease;
}

.ct-professional-card:hover .ct-card-avatar {
    border-color: rgba(80, 164, 167, 0.5);
    box-shadow: 0 6px 20px rgba(80, 164, 167, 0.15);
}

.ct-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =====================================================
   NOMBRE DEL PROFESIONAL
   ===================================================== */

.ct-card-name {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #177275;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    max-width: 100%;
    word-wrap: break-word;
    flex-shrink: 0;
}

/* =====================================================
   TAG DE ESPECIALIDAD - TAMAÑO REDUCIDO DRÁSTICAMENTE
   ===================================================== */

.ct-card-specialty-tag {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.45rem;
    font-weight: 400;
    color: #A0AEC0;
    margin: 0;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    background: rgba(232, 248, 249, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(80, 164, 167, 0.15);
    height: 14px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.7;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.ct-card-specialty-tag:hover {
    background: rgba(232, 248, 249, 0.5);
    border-color: rgba(80, 164, 167, 0.25);
    opacity: 0.85;
}

/* =====================================================
   CONTENEDOR DE ESPECIALIDADES - ESPACIO VERTICAL CASI CERO
   ===================================================== */

.ct-pro-card__specialties {
    margin-bottom: 2px;
    min-height: 16px;
    max-height: 20px;
    gap: 2px;
    padding: 0;
    line-height: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* =====================================================
   BOTÓN CTA - GRADIENTE TURQUESA MUY SUAVE
   ===================================================== */

.ct-card-button {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #E8F8F9 0%, #A2D5D6 100%);
    color: #177275;
    border: 2px solid rgba(80, 164, 167, 0.3);
    border-radius: 16px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(80, 164, 167, 0.15);
    letter-spacing: 0.01em;
    text-transform: none;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
}

.ct-card-button:hover {
    background: linear-gradient(135deg, #A2D5D6 0%, #50A4A7 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 164, 167, 0.25);
    border-color: #50A4A7;
}

.ct-card-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(80, 164, 167, 0.2);
}

/* =====================================================
   RESPONSIVE - ADAPTACIÓN SUAVE
   ===================================================== */

/* Tablet */
@media (max-width: 768px) {
    .ct-professional-card {
        padding: 32px;
        max-width: 280px;
        min-height: 260px;
    }

    .ct-card-avatar {
        width: 80px;
        height: 80px;
    }

    .ct-card-name {
        font-size: 1.15rem;
    }

    .ct-card-button {
        padding: 14px 24px;
    }

    .ct-professionals-grid {
        padding: 32px 16px;
        gap: 20px;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .ct-professional-card {
        padding: 24px;
        max-width: 260px;
        min-height: 240px;
        gap: 20px;
    }

    .ct-card-avatar {
        width: 70px;
        height: 70px;
    }

    .ct-card-name {
        font-size: 1.05rem;
    }

    .ct-card-specialty {
        font-size: 0.85rem;
    }

    .ct-card-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .ct-professionals-grid {
        padding: 24px 12px;
        gap: 16px;
    }
}

/* =====================================================
   ESTADOS ESPECIALES
   ===================================================== */

/* Focus para accesibilidad */
.ct-professional-card:focus-within,
.ct-card-button:focus {
    outline: 2px solid #50A4A7;
    outline-offset: 2px;
}

/* Loading state */
.ct-professional-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ct-professional-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #f3f4f6;
    border-top-color: #50A4A7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   OPTIMIZACIONES DE RENDIMIENTO
   ===================================================== */

/* Prevenir parpadeo */
.ct-professional-card {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Transiciones suaves para todos los elementos */
.ct-professional-card * {
    transition: inherit;
}

/* Evitar selección durante scroll */
.ct-professionals-grid.dragging {
    cursor: grabbing;
    user-select: none;
}

.ct-professionals-grid.dragging .ct-professional-card {
    pointer-events: none;
}