/* =============================================
   AUTORIDADES - Comisión Directiva
   ============================================= */

.autor-section {
    padding: 40px 0 50px;
}

/* Header */
.autor-header {
    text-align: center;
    margin-bottom: 40px;
}

.autor-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f0faf2;
    border-radius: 50%;
    margin-bottom: 14px;
}

.autor-header-icon i {
    font-size: 28px;
    color: #0B5C21;
}

.autor-header h1 {
    font-family: 'Lato', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.autor-header p {
    font-size: 15px;
    color: #666;
    margin: 0 auto;
    max-width: 500px;
}

/* =====================
   HERO CAROUSEL
   Slider animado con fotos cuerpo entero
   ===================== */

.autor-hero {
    position: relative;
    background: linear-gradient(135deg, #063314 0%, #0B5C21 50%, #094a1a 100%);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 48px;
    min-height: 420px;
    display: flex;
    align-items: stretch;
}

/* Lado izquierdo: info */
.autor-hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 20px 48px 48px;
    position: relative;
    z-index: 2;
}

.autor-hero-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c8a84e;
    font-weight: 600;
    margin-bottom: 12px;
}

.autor-hero-nombre {
    font-family: 'Lato', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.autor-hero-cargo {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 20px 0;
}

.autor-hero-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.autor-hero-email:hover {
    color: #c8a84e;
}

/* Navegación del carousel */
.autor-hero-nav {
    display: flex;
    gap: 6px;
    margin-top: 28px;
}

.autor-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.autor-hero-dot.active {
    background: #c8a84e;
    width: 28px;
    border-radius: 5px;
}

/* Lado derecho: foto */
.autor-hero-foto {
    width: 300px;
    min-width: 300px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.autor-hero-foto img {
    height: 400px;
    width: auto;
    object-fit: contain;
    object-position: bottom;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Decoración */
.autor-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(200, 168, 78, 0.06);
    z-index: 0;
}

.autor-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 15%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    z-index: 0;
}

/* Slide: fade in/out */
.autor-slide {
    display: none;
}

.autor-slide.active {
    display: flex;
    width: 100%;
    animation: autorFadeIn 0.5s ease;
}

@keyframes autorFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Placeholder sin foto */
.autor-hero-nofoto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.autor-hero-nofoto i {
    font-size: 100px;
    color: rgba(255,255,255,0.08);
}

/* =====================
   GRILLA DE MIEMBROS
   ===================== */

.autor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.autor-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.autor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

/* Foto cara circular */
.autor-card-foto {
    padding: 28px 0 0;
    display: flex;
    justify-content: center;
}

.autor-card-foto img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid #e8f5ea;
    transition: border-color 0.3s;
}

.autor-card:hover .autor-card-foto img {
    border-color: #0B5C21;
}

.autor-card-foto .autor-no-foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f0faf2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autor-no-foto i {
    font-size: 40px;
    color: #c8e6cc;
}

/* Info */
.autor-card-body {
    padding: 16px 18px 22px;
}

.autor-card-nombre {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.autor-card-cargo {
    font-size: 13px;
    color: #0B5C21;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.autor-card-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}

.autor-card-email:hover {
    color: #0B5C21;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 1100px) {
    .autor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .autor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .autor-hero {
        min-height: 340px;
    }

    .autor-hero-foto {
        width: 220px;
        min-width: 220px;
    }

    .autor-hero-foto img {
        height: 320px;
    }

    .autor-hero-nombre {
        font-size: 26px;
    }

    .autor-hero-cargo {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .autor-section {
        padding: 24px 0 36px;
    }

    .autor-header h1 {
        font-size: 22px;
    }

    /* Hero vertical en móvil */
    .autor-hero {
        flex-direction: column-reverse;
        min-height: auto;
        border-radius: 14px;
    }

    .autor-hero-info {
        padding: 24px 20px;
        text-align: center;
        align-items: center;
    }

    .autor-hero-nombre {
        font-size: 22px;
    }

    .autor-hero-cargo {
        font-size: 15px;
    }

    .autor-hero-nav {
        justify-content: center;
    }

    .autor-hero-foto {
        width: 100%;
        min-width: auto;
        height: 280px;
        justify-content: center;
    }

    .autor-hero-foto img {
        height: 260px;
    }

    /* Grid 2 columnas */
    .autor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .autor-card-foto {
        padding: 18px 0 0;
    }

    .autor-card-foto img,
    .autor-no-foto {
        width: 90px;
        height: 90px;
    }

    .autor-card-body {
        padding: 12px 10px 16px;
    }

    .autor-card-nombre {
        font-size: 13px;
    }

    .autor-card-cargo {
        font-size: 11px;
    }

    .autor-card-email {
        font-size: 10px;
    }
}
