/* Styles for Persona Carousel - Users */
.persona-carousel {
    position: relative;
    padding: 30px 10px;
    box-sizing: border-box;
}

.persona-carousel .pc-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-inner {
    display: flex;
    gap: 40px;
    transition: transform 0.45s ease;
    align-items: center; /* tarjetas centradas verticalmente */
    padding: 20px 0;
}

.persona-carousel .card {
    width: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
    text-align: center;
    padding-bottom: 12px;
    transform-origin: center;
    transition: transform .3s ease, filter .3s ease, opacity .3s ease, top .3s ease;
    position: relative;
    top: 0;
}

.polaroid-photo {
    background: #fff;
    padding: 18px 18px 6px 18px;
    border-bottom: 12px solid #f4f1ea;
}

.polaroid-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.pc-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
    background: #f8f8f8;
    border-radius: 6px;
}

.pc-photo {
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.pc-photo iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(1.2); /* para que no deje márgenes */
}

.card-body {
    padding: 6px 12px 18px;
}

.pc-name {
    margin: 8px 0 4px;
    font-size: 30px;
    font-weight: bold;
    color: #2b4c8c;
}

.pc-role {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

.pc-bio {
    font-size: 13px;
    color: #555;
    padding: 0 8px;
    min-height: 40px;
}

.pc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 36px;
    cursor: pointer;
    z-index: 5;
    color: #333;
}

.pc-prev { left: 8px; }
.pc-next { right: 8px; }

/* Tarjetas difuminadas */
.card.blurred {
    filter: blur(4px) brightness(.85);
    opacity: .55;
    transform: scale(.92);
}

/* Tarjeta activa */
.card.active {
    transform: scale(1.1);
    filter: none;
    opacity: 1;
    top: 0; /* centrada vertical */
}

/* Tarjetas vecinas */
.card.prev, .card.next {
    transform: scale(0.95);
    filter: blur(10px) brightness(0.9);
    opacity: 0.8;
    top: 15px; /* desplazadas verticalmente */
    display: inline-block;
}

/* Ocultar todas las demás tarjetas */
.card:not(.active):not(.prev):not(.next) {
    display: none;
}

/* Responsive */
@media (max-width:900px){
  .card{width:220px;}
}

@media (max-width:600px){
  .carousel-inner{gap:16px;}
  .card{width:180px;}
  .pc-arrow{font-size:28px;}
}
