/* ==========================================================================
   Carrusel de Profesores — Argencello 6.0
   Agregar en: wp-content/themes/blocksy-child/style.css
   o en un @import desde style.css apuntando a css/carousel-profesores.css
   ========================================================================== */

/* ── Variables (coherentes con la paleta Argencello) ──────────────────────── */
:root {
    --ac-amber:       #854F0B;
    --ac-accent:      #BA7517;
    --ac-dark:        #2C2C2A;
    --ac-cream:       #FAEEDA;
    --ac-cream-soft:  #F5F2EA;
    --ac-border:      #E5E2D9;
    --ac-white:       #ffffff;
    --ac-radius:      8px;
    --ac-transition:  0.22s ease;
}

/* ── Contenedor general ───────────────────────────────────────────────────── */
.ac-profesores-wrap {
    width: 100%;
    margin: 0;
}

/* ── Sección ──────────────────────────────────────────────────────────────── */
.ac-carousel-section {
    padding: 48px 0 40px;
    overflow: hidden;
}

.ac-carousel-section--destacados {
    background-color: var(--ac-dark);
    border-top: 3px solid var(--ac-accent);
    border-bottom: 1px solid #444;
}

.ac-carousel-section--destacados .ac-carousel-title {
    color: var(--ac-cream);
}

.ac-carousel-section--destacados .ac-carousel-ver-todos {
    color: var(--ac-accent);
}

.ac-carousel-section--destacados .swiper-button-prev,
.ac-carousel-section--destacados .swiper-button-next {
    background: #3a3936;
    border-color: #555;
    color: var(--ac-accent);
}

.ac-prof-card--destacado {
    border-top: 3px solid var(--ac-accent);
}

.ac-prof-badge--destacado {
    background: var(--ac-accent);
}

.ac-carousel-section--premium {
    background-color: var(--ac-cream);
    border-top: 3px solid var(--ac-amber);
    border-bottom: 1px solid var(--ac-border);
}

.ac-carousel-section--comunidad {
    background-color: var(--ac-cream-soft);
    border-bottom: 1px solid var(--ac-border);
}

/* ── Header de sección ────────────────────────────────────────────────────── */
.ac-carousel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 32px 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.ac-carousel-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--ac-dark);
    margin: 0;
    line-height: 1.2;
}

.ac-carousel-title span {
    color: var(--ac-amber);
}

.ac-carousel-ver-todos {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ac-amber);
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color var(--ac-transition);
}

.ac-carousel-ver-todos:hover {
    color: var(--ac-accent);
    text-decoration: underline;
}

/* ── Swiper overrides ─────────────────────────────────────────────────────── */
.ac-swiper {
    padding: 8px 32px 48px !important;
    overflow: visible !important;
}

/* Botones nav */
.ac-swiper .swiper-button-prev,
.ac-swiper .swiper-button-next {
    color: var(--ac-amber);
    width: 36px;
    height: 36px;
    background: var(--ac-white);
    border: 1px solid var(--ac-border);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    top: calc(50% - 24px);
    transition: background var(--ac-transition), color var(--ac-transition);
}

.ac-swiper .swiper-button-prev:hover,
.ac-swiper .swiper-button-next:hover {
    background: var(--ac-amber);
    color: var(--ac-white);
}

.ac-swiper .swiper-button-prev::after,
.ac-swiper .swiper-button-next::after {
    font-size: 12px;
    font-weight: 700;
}

/* Paginación */
.ac-swiper .swiper-pagination-bullet {
    background: var(--ac-border);
    opacity: 1;
}

.ac-swiper .swiper-pagination-bullet-active {
    background: var(--ac-amber);
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.ac-prof-card {
    display: flex;
    flex-direction: column;
    background: var(--ac-white);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition:
        transform var(--ac-transition),
        box-shadow var(--ac-transition),
        border-color var(--ac-transition);
    height: 100%;
}

.ac-prof-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(133, 79, 11, 0.12);
    border-color: var(--ac-accent);
    color: inherit;
    text-decoration: none;
}

/* Card premium: un poco más alta y con borde amber */
.ac-prof-card--premium {
    border-top: 3px solid var(--ac-amber);
}

/* ── Foto ─────────────────────────────────────────────────────────────────── */
.ac-prof-foto {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--ac-cream-soft);
    flex-shrink: 0;
}

.ac-prof-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ac-prof-card:hover .ac-prof-foto img {
    transform: scale(1.04);
}

/* Avatar con inicial (fallback sin foto) */
.ac-prof-inicial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--ac-amber);
    background: var(--ac-cream);
    position: absolute;
    inset: 0;
}

/* Badge verificado */
.ac-prof-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--ac-amber);
    color: var(--ac-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* ── Info ─────────────────────────────────────────────────────────────────── */
.ac-prof-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ac-prof-nombre {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ac-dark);
    line-height: 1.3;
    display: block;
}

/* Cards de comunidad: nombre un poco más chico */
.ac-prof-card--comunidad .ac-prof-nombre {
    font-size: 0.95rem;
}

.ac-prof-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    color: #6b6762;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.ac-prof-meta svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.ac-prof-modalidad {
    display: inline-block;
    background: var(--ac-cream);
    color: var(--ac-amber);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 3px;
    margin-top: 4px;
    align-self: flex-start;
    border: 1px solid var(--ac-border);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ac-carousel-header {
        padding: 0 16px 20px;
    }

    .ac-swiper {
        padding: 8px 16px 40px !important;
    }

    .ac-carousel-title {
        font-size: 1.35rem;
    }

    .ac-swiper .swiper-button-prev,
    .ac-swiper .swiper-button-next {
        display: none; /* En móvil se maneja con swipe */
    }
}
