/* ===== HERO ===== */
.congresos-hero {
    position: relative;
    height: 45vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.congresos-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.congresos-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,52,113,.8), rgba(31,52,113,.6));
}

.congresos-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.congresos-hero-content span:first-child {
    letter-spacing: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    opacity: .9;
}

.congresos-hero-content h1 {
    font-size: 50px;
    font-weight: 800;
    margin: 14px 0;
}

.congresos-hero-content p {
    font-size: 17px;
    opacity: .9;
    margin: 0;
}

/* ===== SECCIONES ===== */
.congresos-section {
    padding: 70px 0 60px;
    background: #f8f9fc;
}

.congresos-proximos-section {
    background: #ffffff;
    padding-bottom: 30px;
}

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    color: #1F3471;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 10px;
}

.section-tag::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #1F3471;
    border-radius: 3px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #16213e;
    margin: 0 0 10px;
}

.section-header p {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
}

/* ===== TARJETA DE CONGRESO ===== */
.congreso-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #eef0f5;
    overflow: hidden;
    height: 100%;
    text-decoration: none;
    transition: all .4s ease;
}

.congreso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -20px rgba(31,52,113,.3);
    border-color: transparent;
}

.congreso-card.congreso-destacado {
    border: 1.5px solid #f5c451;
}

.congreso-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.congreso-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.congreso-card:hover .congreso-card-img img {
    transform: scale(1.08);
}

.congreso-tag-proximo,
.congreso-tag-galeria {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(31,52,113,.9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
}

.congreso-tag-galeria {
    background: rgba(0,0,0,.6);
}

.congreso-card-body {
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.congreso-card-body h3 {
    font-size: 18px;
    font-weight: 800;
    color: #16213e;
    margin: 0 0 14px;
    line-height: 1.3;
}

.congreso-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    flex: 1;
}

.congreso-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #6b7280;
}

.congreso-meta i { color: #1F3471; }

.congreso-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1F3471;
    font-weight: 700;
    font-size: 14px;
    transition: gap .3s ease;
}

.congreso-card:hover .congreso-ver-mas { gap: 12px; }

/* ===== ESTADO VACÍO ===== */
.empty-congresos {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px dashed #dde1ee;
}

.empty-congresos h4 { color: #16213e; font-weight: 700; margin-bottom: 10px; }
.empty-congresos p { color: #6b7280; margin: 0; }

/* ===== DETALLE ===== */
.congreso-detalle-hero {
    position: relative;
    padding: 60px 0 50px;
    overflow: hidden;
}

.congreso-detalle-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.congreso-detalle-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,52,113,.88), rgba(31,52,113,.75));
}

.congreso-detalle-hero .container {
    position: relative;
    z-index: 2;
    color: #fff;
}

.volver-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffffcc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 25px;
    transition: color .3s ease;
}

.volver-link:hover { color: #fff; }

.congreso-header-info h1 {
    font-size: 38px;
    font-weight: 800;
    margin: 14px 0 18px;
}

.congreso-meta-detalle {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.congreso-meta-detalle span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: .9;
}

.congreso-detalle-section {
    padding: 50px 0 100px;
    background: #f8f9fc;
}

/* ===== GALERÍA ===== */
.congreso-imagen-unica {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 25px 50px -25px rgba(31,52,113,.3);
}

.congreso-imagen-unica img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.congreso-galeria-swiper {
    margin-bottom: 20px;
}

.congresoGaleriaSwiper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -25px rgba(31,52,113,.3);
}

.congresoGaleriaSwiper .swiper-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.congresoGaleriaSwiper .swiper-button-prev,
.congresoGaleriaSwiper .swiper-button-next {
    color: #ffffff;
    background: rgba(31,52,113,.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.congresoGaleriaSwiper .swiper-button-prev::after,
.congresoGaleriaSwiper .swiper-button-next::after {
    font-size: 16px;
}

.congresoGaleriaSwiper .swiper-pagination-bullet-active {
    background: #ffffff;
}

/* ===== BLOQUE DESCRIPCIÓN ===== */
.congreso-bloque {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #eef0f5;
    padding: 32px;
}

.congreso-bloque h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    color: #16213e;
    margin-bottom: 16px;
}

.congreso-bloque h4 i { color: #1F3471; }

.congreso-bloque p {
    color: #4b5162;
    line-height: 1.8;
    margin: 0;
    white-space: pre-line;
}

/* ===== SIDEBAR ===== */
.congreso-sidebar {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #eef0f5;
    padding: 32px;
    text-align: center;
    margin-bottom: 20px;
}

.congreso-sidebar i {
    font-size: 34px;
    color: #1F3471;
    margin-bottom: 14px;
    display: inline-block;
}

.congreso-sidebar h4 {
    font-size: 20px;
    font-weight: 800;
    color: #16213e;
    margin-bottom: 10px;
}

.congreso-sidebar p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.congreso-sidebar-invitacion {
    background: linear-gradient(135deg, #1F3471, #3F5984);
    border: none;
}

.congreso-sidebar-invitacion i,
.congreso-sidebar-invitacion h4 {
    color: #fff;
}

.congreso-sidebar-invitacion p {
    color: #ffffffcc;
}

.congreso-datos-extra {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #eef0f5;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dato-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dato-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.dato-label i { color: #1F3471; }

.dato-valor {
    font-size: 13.5px;
    font-weight: 700;
    color: #16213e;
    text-align: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .congresos-hero-content h1 { font-size: 34px; }
    .congreso-header-info h1 { font-size: 28px; }
    .congresoGaleriaSwiper .swiper-slide img { height: 340px; }
}

@media (max-width: 767px) {
    .congresos-hero { height: 40vh; min-height: 320px; }
    .congresos-section { padding: 50px 0 40px; }
    .congreso-detalle-section { padding: 40px 0 70px; }
    .congreso-card-img { height: 170px; }
    .congreso-bloque, .congreso-sidebar, .congreso-datos-extra { padding: 22px; }
    .congresoGaleriaSwiper .swiper-slide img { height: 260px; }
}