/* ======================================== HISTORIAL CONSEJO DIRECTIVO ======================================== */
.historial-consejo {
    padding: 100px 20px;
    background: #f8fafc;
}

.historial-grid {
    max-width: 1300px;
    margin: auto;
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
}

.historial-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    transition: .4s;
}

.historial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .15);
}

.historial-imagen {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.historial-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .6s;
}

.historial-card:hover .historial-imagen img {
    transform: scale(1.08);
}

.overlay-anio {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 23, 42, .9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.historial-contenido {
    padding: 25px;
}

.documento-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: 14px;
    text-decoration: none;
    color: #334155;
    transition: .3s;
}

.documento-item:hover {
    background: #eff6ff;
    transform: translateX(6px);
}

.documento-item i:first-child {
    font-size: 1.4rem;
    color: #2563eb;
    width: 35px;
    text-align: center;
}

.documento-item h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.documento-item p {
    margin: 3px 0 0;
    font-size: .85rem;
    color: #64748b;
}

.documento-item .fa-arrow-right {
    margin-left: auto;
    color: #2563eb;
}

@media(max-width:768px) {
    .historial-grid {
        grid-template-columns: 1fr;
    }

    .historial-imagen {
        height: 220px;
    }
}




/******************
SIGUIENTE SECTION
******************/

.consejo-directivo {
    padding: 100px 20px;
    background: #f8fafc;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 60px;
}

.titulo-seccion span {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: .85rem;
    font-weight: 600;
}

.titulo-seccion h2 {
    margin-top: 15px;
    font-size: 2.5rem;
    color: #0f172a;
}

.titulo-seccion p {
    color: #64748b;
    max-width: 700px;
    margin: 15px auto;
}

.grid-consejo {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.flip-card {
    height: 360px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    backface-visibility: hidden;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

.flip-card-front {
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.flip-card-front img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 20px;
}

.flip-card-front h3 {
    color: #0f172a;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.flip-card-front p {
    color: #64748b;
}

.flip-card-back {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    transform: rotateY(180deg);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.flip-card-back img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, .2);
    margin-bottom: 15px;
}

.flip-card-back h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.flip-card-back span {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.info p {
    margin: 8px 0;
    font-size: .9rem;
}

.info i {
    margin-right: 8px;
}

/* =========================================================
   ACTAS DE REUNIÓN
========================================================= */

.actas-lista {
    display: none;
    margin-top: -2px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 14px 14px;
}

.actas-lista.activa {
    display: block;
}


/* =========================================================
   TARJETA INDIVIDUAL DEL ACTA
========================================================= */

.acta-card {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;

    margin-bottom: 8px;
    padding: 10px;

    text-decoration: none;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.acta-card:last-child {
    margin-bottom: 0;
}


.acta-card:hover {
    transform: translateX(3px);

    background: #fffafa;

    border-color: #fecaca;

    box-shadow: 0 5px 15px rgba(127, 29, 29, .08);
}


/* =========================================================
   NÚMERO
========================================================= */

.acta-numero {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   ÍCONO PDF
========================================================= */

.acta-icono {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #fee2e2;

    color: #dc2626;

    font-size: 14px;
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.acta-info {
    flex: 1;
    min-width: 0;
}


.acta-info h5 {
    margin: 0;

    color: #334155;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.4;

    /*
    | Si el título es muy largo,
    | no rompe la tarjeta.
    */

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


.acta-info span {
    display: block;

    margin-top: 2px;

    color: #94a3b8;

    font-size: 10px;
    font-weight: 500;
}


/* =========================================================
   FLECHA
========================================================= */

.acta-flecha {
    flex: 0 0 25px;

    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;

    font-size: 10px;

    transition: .2s ease;
}


.acta-card:hover .acta-flecha {
    color: #b91c1c;
    transform: translateX(2px);
}


/* =========================================================
   BOTÓN ACTAS
========================================================= */

.actas-wrapper
.documento-item {
    position: relative;
}


.actas-flecha {
    transition: transform .2s ease;
}