﻿.content-cards{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


.card-expert{
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ededed;
    padding: 20px;
    max-width: 300px;
}


.header-card-expert{
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
}

.header-card-expert img{
    width: 120px;
}

.header-card-expert h2{
    color: #133370;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0px;
}

.header-card-expert p:nth-child(3){
    color: #0073b9;
    font-weight: 600;
    margin-bottom: 0px;
}

.header-card-expert p:nth-child(4){
    color: #38C2D4;
    font-weight: 600;
}

.body-card-expert a:nth-child(2),
.body-card-expert a:nth-child(3){
    display: block;
    color: #38C2D4;
}

.body-card-expert a:nth-child(2) img,
.body-card-expert a:nth-child(3) img{
    margin-right: 5px;
    margin-bottom: 5px;
}

  /* tool tip */
  .schedule-container {
    position: relative;
    display: inline-block;
}

.schedule-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00bcd4;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.schedule-link:hover {
    background-color: #f0f9ff;
}


/* Tooltip que aparece ABAJO */
.schedule-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #0073b9;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 160px;
}

/* Flecha que apunta hacia ARRIBA */
.schedule-tooltip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #0891b2;
}

/* Mostrar tooltip al hacer hover */
.schedule-container:hover .schedule-tooltip {
    opacity: 1;
    visibility: visible;
}

.schedule-item {
    display: block;
    margin-bottom: 2px;
    text-align: center;
}

.schedule-item:last-child {
    margin-bottom: 0;
}
/* Skeleton */

.skeleton .skeleton-line{
    background-color: #e0e0e0;
    border-radius: 6px;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Imagen circular */

.skeleton-img{
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background-color: #e0e0e0;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Lineas */
.skeleton-line{
    height: 16px;
    margin: 10px auto;
}

/* Variaciones */
.skeleton-line.titulo{
    width: 60%;
    height: 20px;
}

.skeleton-line.linea1{
    width: 50%;
}

.skeleton-line.linea2{
    width: 40%;
}

.skeleton-line.direccion{
    width: 60%;
    height: 14px;
    margin: 8px auto;
}

@keyframes pulse {
    0% { background-color: #eee;}
    50% {background-color: #ddd;}
    100% { background-color: #eee;}
}


@media (min-width: 769px) and (max-width: 1024px){
    .content-cards{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px){
    .content-cards{
        grid-template-columns: repeat(2, 1fr);
    }
}