﻿/*------------------------------------------------------------- Lista noticia -------------------------------------------------------------*/
.junta-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card base */
.junta-card {
    border: 2px solid transparent;
    border-radius: 20px;
    background-color: #ffff;
    padding: 20px;
    transition: all 0.25s ease;
    border: 0.5px solid grey;
}

/* Hover efecto completo */
.junta-link:hover .junta-card {
    border: 2px solid #1f5d47;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.junta-link:hover .junta-title {
    text-decoration: underline;
}

/* Imagen */
.junta-img {
    border-radius: 15px;
    height: 140px;
    object-fit: cover;
}

/* Tag */
.junta-tag {
    color: #2a6f97;
    font-weight: 600;
    font-size: 14px;
}

/* Título */
/*.junta-title {
    font-weight: 500;
    color: #2c2c2c;
    text-underline-offset: 4px;
}*/
.junta-title {
    font-weight: 500;
    color: #2c2c2c;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 👈 máximo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px; /* 👈 mantiene altura uniforme */
    line-height: 1.3;
}

/* Fecha */
.junta-date {
    color: #6c757d;
    font-size: 14px;
}

.no-news-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.no-news-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 500px;
}

.no-news-icon {
    font-size: 50px;
    color: #0c1c3d;
    margin-bottom: 15px;
}

.no-news-card h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

.no-news-card p {
    color: #777;
    margin: 0;
}

/*---------------------------------------paginacion------------------------------------------------*/

.pagination-custom .page-link {
    border-radius: 12px;
    margin: 0 5px;
    border: 1px solid #d1d5db;
    color: #333;
    font-weight: 500;
}

.pagination-custom .page-item.active .page-link {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.pagination-custom .page-link:hover {
    background-color: #e5e7eb;
}
.custom-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pag-btn {
    min-width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-weight: 600;
    color: #4b5563;
    transition: all 0.2s ease;
}

    .pag-btn:hover {
        background: #f3f4f6;
    }

    .pag-btn.active {
        background: #0f172a;
        color: #fff;
        border-color: #0f172a;
        box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    }

.nav-btn {
    background: #f9fafb;
    font-size: 20px;
}

.pag-input {
    width: 70px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    text-align: center;
    font-weight: 600;
}

/* -----------------------------------seccion de nota-------------------------------------------*/

/* Fondo general */
.nota-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Breadcrumb */
.nota-breadcrumb .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.nota-breadcrumb .breadcrumb-item.active {
    color: #2a6f97;
    font-weight: 500;
}

/* Categoría */
.nota-categoria {
    color: #2a6f97;
    font-weight: 600;
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

/* Título */
.nota-titulo {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Fecha */
.nota-fecha {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

/* Descripción */
.nota-descripcion {
    margin-bottom: 30px;
    font-size: 16px;
}

/*.nota-descripcion a{
    display:block;
}*/

.nota-descripcion img{
    display:block;
}


/* Imagen */
.nota-img {
    border-radius: 18px!important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Línea divisoria */
.nota-divider {
    width: 2px;
    background-color: #dcdcdc;
    height: 100%;
}

/* Panel derecho */
.nota-adjuntos {
    padding-left: 20px;
}

.adjuntos-titulo {
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
    color: #5f7f95;
    margin-bottom: 30px;
}

/* Items adjuntos */
.adjunto-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start; 
}


.adjunto-icon {
    width: 40px;
    height: 40px;
    min-width: 40px; 
    min-height: 40px;
    border-radius: 50%!important;
    border: 2px solid #2a6f97;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a6f97;
    font-size: 18px;
    flex-shrink: 0; 
}


.adjunto-item a {
    color: #2a6f97;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

    .adjunto-item a:hover {
        text-decoration: underline;
    }

.adjunto-item span {
    font-size: 13px;
    color: #6c757d;
}

/* Contenedor autores */
.nota-autores {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

/* Item individual */
.autor-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Imagen circular */
.autor-img {
    width: 60px;
    height: 60px;
    border-radius: 50%!important;
    object-fit: cover;
}

/* Placeholder si no hay imagen */
.autor-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%!important;
    background-color: #dfe3e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 24px;
}

/* Nombre */
.autor-nombre {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

/* Email */
.autor-email {
    font-size: 14px;
    color: #2a6f97;
    text-decoration: none;
}

    .autor-email:hover {
        text-decoration: underline;
    }

.amda-agenda__title {
    font-weight: 800;
    letter-spacing: .04em;
    color: #0b3b2e; /* verde tipo AMDA */
}

.amda-agenda__divider {
    border: 0;
    border-top: 1px solid #e6e6e6;
    margin: 0;
}

.amda-agenda__talk {
    font-weight: 800;
    color: #111;
}

.amda-agenda__speaker {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111;
}

.amda-agenda__role {
    font-style: italic;
    color: #333;
    margin-top: .15rem;
    line-height: 1.35;
}

.amda-agenda__pdf {
    display: inline-block;
    margin-top: .65rem;
    color: #c00000; /* rojo como en la captura */
    text-decoration: none;
    font-weight: 600;
}

    .amda-agenda__pdf:hover {
        text-decoration: underline;
    }

.amda-agenda__video {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.amda-agenda__photoWrap {
    background: #0b3b2e;
    border-radius: 6px;
    padding: .4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.amda-agenda__photo {
    width: 100%;
    height: auto;
    max-width: 140px;
    display: block;
    border-radius: 4px;
    background: #0b3b2e;
}

.amda-agenda__heroImg {
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0,0,0,.10);
}

.text-justify-custom {
    text-align: justify;
}

.nota-complemento {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    font-size: 15px;
    color: #444;
}

@media (max-width: 768px) {

    #contenedorAnios {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

        #contenedorAnios a {
            width: 100% !important;
            height: 42px;
            font-size: 14px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            /* Botón activo */
            #contenedorAnios a.btn-dark {
                background-color: #0c1c3d !important;
                border-color: #0c1c3d !important;
            }

            /* Último botón (2020 y anteriores) ocupa 2 columnas */
           /* #contenedorAnios a:last-child {
                grid-column: span 2;
            }*/
}