:root {
    --feed-bg: #f0f2f5;
    --feed-card: #ffffff;
    --feed-text: #1a1a2e;
    --feed-muted: #6b7280;
    --feed-border: #e5e7eb;
    --feed-radius: 18px;
    --feed-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --feed-shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--feed-bg);
    color: var(--feed-text);
    min-height: 100vh;
    overflow-x: hidden;
}
/* =============== LAYOUT PRINCIPAL =============== */
.feed-layout {
    display: flex;
    min-height: 100vh;
}
/* =============== SIDEBAR IZQUIERDA =============== */
.feed-sidebar {
    width: 300px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    background: var(--feed-card);
    border-right: 1px solid var(--feed-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    gap: 24px;
    z-index: 10;
    overflow: hidden;
}
/* --- Decoración sidebar estática --- */
.feed-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, var(--skin-c1) 0%, transparent 40%), repeating-linear-gradient(-45deg, transparent, transparent 12px, var(--skin-c1) 12px, var(--skin-c1) 13px);
    opacity: 0.04;
    pointer-events: none;
}
.feed-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--skin-grad);
    opacity: 0.25;
    pointer-events: none;
}
.sidebar-dot-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image: radial-gradient(circle at 1px 1px, var(--skin-c1) 1px, transparent 0);
    background-size: 24px 24px;
}
/* --- Logo --- */
.sidebar-logo-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 4px;
    background: var(--skin-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    position: relative;
    z-index: 2;
    animation: fadeSlideDown 0.6s ease-out both;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.sidebar-logo-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.20);
}
.sidebar-logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sidebar-logo-inner img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}
/* --- Nombre club --- */
.sidebar-club-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    text-align: center;
    line-height: 1.25;
    background: var(--skin-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    animation: fadeSlideDown 0.6s ease-out 0.1s both;
}
/* --- Divider --- */
.sidebar-divider {
    width: 50px;
    height: 3px;
    border-radius: 3px;
    background: var(--skin-grad);
    opacity: 0.4;
    animation: fadeSlideDown 0.6s ease-out 0.15s both;
}
/* --- Botones --- */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 2;
}
.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.sidebar-btn-primary {
    background: var(--skin-grad);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.sidebar-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    color: #fff;
}
.sidebar-btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.sidebar-btn-primary:hover::after {
    left: 100%;
}
.sidebar-btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.sidebar-btn-primary .sidebar-btn-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.sidebar-btn-anim:nth-child(1) { animation: fadeSlideDown 0.5s ease-out 0.2s both; }
.sidebar-btn-anim:nth-child(2) { animation: fadeSlideDown 0.5s ease-out 0.3s both; }
.sidebar-btn-anim:nth-child(3) { animation: fadeSlideDown 0.5s ease-out 0.4s both; }
.sidebar-btn-anim:nth-child(4) { animation: fadeSlideDown 0.5s ease-out 0.5s both; }
.sidebar-btn-anim:nth-child(5) { animation: fadeSlideDown 0.5s ease-out 0.6s both; }
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Footer sidebar --- */
.sidebar-logo-brio {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
}
.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}
.sidebar-footer-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--feed-muted);
    opacity: 0.7;
}
/* =============== MAIN =============== */
.feed-main {
    flex: 1;
    min-width: 0;
    padding: 36px 40px;
}
/* --- Sección títulos --- */
.feed-section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.feed-section-title i {
    background: var(--skin-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ===== EVENTOS CARROUSEL ===== */
.eventos-carousel-wrapper {
    overflow: hidden;
    position: relative;
    margin-bottom: 48px;
}
.eventos-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.evento-slide {
    min-width: 560px;
    max-width: 560px;
    flex-shrink: 0;
    border-radius: var(--feed-radius);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
    color: inherit;
}
.evento-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--feed-shadow-hover);
}
/* ===== 1 EVENTO + PUBLI LADO A LADO ===== */
.evento-pub-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 560px));
    justify-content: center;
    gap: 24px;
    align-items: start;
    margin-bottom: 48px;
}
.evento-pub-duo .evento-slide,
.evento-pub-duo .pub-slide {
    min-width: 0;
    max-width: none;
    width: 100%;
}
@media (max-width: 768px) {
    .evento-pub-duo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .evento-pub-duo .evento-slide,
    .evento-pub-duo .pub-slide {
        min-width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }
}
/* En layout-topbar se estira igual que el resto del contenido */
@media (min-width: 769px) {
    body.layout-topbar .evento-pub-duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }
}
/* ===== SLIDE PUBLICIDAD CARRUSEL ===== */
.pub-slide {
    min-width: 560px;
    max-width: 560px;
    flex-shrink: 0;
    border-radius: var(--feed-radius);
    overflow: hidden;
    box-shadow: var(--feed-shadow);
    position: relative;
}
.pub-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
@media (max-width: 768px) {
    .pub-slide { min-width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
}
/* ===== EFECTO BRILLO EN PUBLICIDADES ===== */
.pub-slide::after,
.publicidad-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 2;
    transition: left 0.6s ease;
}
.pub-slide:hover::after,
.publicidad-banner:hover::after {
    left: 125%;
}
.evento-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 560 / 230;
    overflow: hidden;
    background: var(--skin-grad);
}
.evento-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.evento-slide:hover .evento-cover img {
    transform: scale(1.06);
}
.evento-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--skin-grad);
    color: rgba(255,255,255,0.3);
}
.evento-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 18px 22px;
    gap: 14px;
}
.evento-fecha-badge {
    background: var(--skin-grad);
    color: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.evento-dia { font-size: 1.6rem; font-weight: 900; font-family: 'Outfit', sans-serif; }
.evento-mes { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1.5px; margin-top: 2px; }
.evento-info { flex: 1; min-width: 0; }
.evento-nombre {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.evento-detalles {
    display: flex;
    gap: 16px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}
.carousel-nav {
    display: flex;
    gap: 8px;
}
.btn-carousel {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid var(--feed-border);
    color: var(--feed-text);
    background: var(--feed-card);
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 0.85rem;
}
.btn-carousel:hover {
    background: var(--skin-grad);
    border-color: var(--skin-c1);
    color: #fff;
    transform: scale(1.08);
}
/* ===== EVENTO SOLO SOCIOS ===== */
.evento-socios-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}
.evento-slide.evento-solo-socios:hover .evento-socios-overlay {
    opacity: 1;
}
.evento-socios-badge {
    background: var(--feed-card);
    color: var(--feed-text);
    padding: 14px 28px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.evento-slide.evento-solo-socios:hover .evento-socios-badge {
    transform: scale(1);
}
.evento-socios-badge i {
    background: var(--skin-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
}
/* ===== TOP SECTION ===== */
.feed-top-section {
    margin-bottom: 48px;
}
/* ===== BUSCADOR + FILTROS ===== */
.feed-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.feed-buscador {
    position: relative;
    flex: 1;
    min-width: 240px;
}
.feed-buscador-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.9rem;
}
.feed-buscador-input {
    width: 100%;
    padding: 12px 18px 12px 46px;
    border: 2px solid var(--feed-border);
    border-radius: 14px;
    font-size: 0.92rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    background: var(--feed-card);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.feed-buscador-input:focus {
    border-color: var(--skin-c1);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
}
.feed-filtros {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-shrink: 0;
    max-width: 100%;
}
.feed-filtro-btn {
    border: 2px solid var(--feed-border);
    background: var(--feed-card);
    padding: 9px 22px;
    border-radius: 25px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--feed-muted);
}
.feed-filtro-btn:hover {
    border-color: var(--skin-c1);
    color: var(--skin-c1);
}
.feed-filtro-btn.active {
    background: var(--skin-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.noticia-card {
    border-radius: var(--feed-radius);
    overflow: hidden;
    background: var(--feed-card);
    box-shadow: var(--feed-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    animation: fadeCardIn 0.5s ease-out both;
}
.noticia-card:nth-child(1) { animation-delay: 0.05s; }
.noticia-card:nth-child(2) { animation-delay: 0.1s; }
.noticia-card:nth-child(3) { animation-delay: 0.15s; }
.noticia-card:nth-child(4) { animation-delay: 0.2s; }
.noticia-card:nth-child(5) { animation-delay: 0.25s; }
.noticia-card:nth-child(6) { animation-delay: 0.3s; }
@keyframes fadeCardIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--feed-shadow-hover);
}
.noticia-card.oculta { display: none; }
.noticia-card-img {
    position: relative;
    aspect-ratio: 560 / 230;
    overflow: hidden;
    background: var(--skin-grad);
}
.noticia-card-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.noticia-card:hover .noticia-card-img img {
    transform: scale(1.06);
}
.noticia-placeholder {
    width: 100%;
    aspect-ratio: 560 / 230;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--feed-bg);
    color: #ccc;
}
.noticia-badge-destacada {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--skin-grad);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.noticia-card-body { padding: 18px 22px; }
.noticia-meta-top { margin-bottom: 10px; }
.noticia-categoria {
    display: inline-block;
    background: var(--skin-grad);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}
.noticia-titulo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.35;
    margin-bottom: 8px;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.noticia-card:hover .noticia-titulo { color: var(--skin-c1); }
.noticia-resumen {
    color: var(--feed-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 14px;
}
.noticia-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--feed-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--feed-border);
    padding-top: 12px;
}
.noticia-fecha-pill {
    background: var(--skin-grad);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.76rem;
}
/* ===== EMPTY STATE ===== */
.feed-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--feed-muted);
}
.feed-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}
/* =============== RESPONSIVE =============== */
@media (max-width: 992px) {
    .feed-sidebar {
        width: 260px;
        padding: 24px 16px;
    }
    .sidebar-logo-wrap {
        width: 110px;
        height: 110px;
    }
    .feed-main {
        padding: 28px 24px;
    }
}
@media (max-width: 768px) {
    .feed-layout {
        flex-direction: column;
    }
    .feed-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 20px 24px;
        gap: 16px;
        justify-content: center;
    }
    .feed-sidebar::before,
    .feed-sidebar::after,
    .sidebar-dot-pattern { display: none; }
    .sidebar-logo-wrap {
        width: 70px;
        height: 70px;
    }
    .sidebar-club-name { font-size: 1.05rem; }
    .sidebar-divider { display: none; }
    .sidebar-actions {
        display: none !important;
    }
    .sidebar-footer { display: none; }
    .feed-main { padding: 20px 16px 80px; }
    .evento-slide { min-width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
    .feed-buscador { max-width: 100%; }
    .feed-section-title { font-size: 1.3rem; }
}
/* ===== MODAL NOTICIA ===== */
.noticia-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.4s ease;
}
.noticia-modal-overlay.active {
    background: rgba(0,0,0,0.6);
    pointer-events: all;
}
.noticia-modal-box {
    position: fixed;
    background: var(--feed-card);
    border-radius: var(--feed-radius);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    will-change: transform, width, height, top, left, border-radius;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.15, 1);
    z-index: 10000;
    opacity: 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.noticia-modal-box.expanding {
    opacity: 1;
}
.noticia-modal-box.expanded {
    opacity: 1;
    top: 5vh !important;
    left: 50% !important;
    width: 900px !important;
    max-width: 92vw !important;
    height: 90vh !important;
    transform: translateX(-50%) !important;
    border-radius: var(--feed-radius);
}
.noticia-modal-box.collapsing {
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.15, 1);
}
/* Header del modal */
.nm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--feed-border);
    flex-shrink: 0;
    background: var(--feed-card);
    position: sticky;
    top: 0;
    z-index: 5;
}
.nm-header-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--feed-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nm-header-title i {
    background: var(--skin-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nm-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--feed-border);
    background: var(--feed-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--feed-muted);
    transition: all 0.25s ease;
}
.nm-close:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fdf0ef;
    transform: rotate(90deg);
}
/* Scroll body */
.nm-body {
    overflow-y: auto;
    flex: 1;
    overscroll-behavior: contain;
}
/* Cover */
.nm-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 900 / 370;
    overflow: hidden;
    background: var(--skin-grad);
}
.nm-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.nm-cover-placeholder {
    width: 100%;
    aspect-ratio: 900 / 370;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--skin-grad);
    color: rgba(255,255,255,0.25);
    font-size: 4rem;
}
.nm-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 32px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.nm-cover-cat {
    display: inline-block;
    background: var(--skin-grad);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.nm-cover-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.25;
    margin: 0;
}
/* Meta */
.nm-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 32px;
    color: var(--feed-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--feed-border);
}
.nm-meta i { margin-right: 6px; }
/* Resumen */
.nm-resumen {
    margin: 24px 32px;
    padding: 16px 20px;
    border-left: 4px solid var(--skin-c1);
    background: var(--feed-bg);
    border-radius: 0 12px 12px 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
}
/* Contenido */
.nm-contenido {
    padding: 0 32px 32px;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--feed-text);
}
.nm-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}
/* Galería */
.nm-galeria {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 32px 28px;
}
.nm-galeria img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--feed-border);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nm-galeria img:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
    .noticia-modal-box.expanded {
        top: 0 !important;
        height: 100vh !important;
        border-radius: 0;
        max-width: 100vw !important;
        width: 100vw !important;
    }
    .nm-cover-title { font-size: 1.3rem; }
    .nm-cover-overlay, .nm-meta, .nm-resumen, .nm-contenido, .nm-galeria { padding-left: 20px; padding-right: 20px; }
    .nm-resumen { margin-left: 20px; margin-right: 20px; }
}
/* ===== NOTICIAS DESTACADAS ===== */
.feed-destacadas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 560px));
    justify-content: center;
    gap: 24px;
    align-items: start;
    margin-bottom: 48px;
}
.feed-destacadas-grid .noticia-card {
    width: 100%;
}
@media (max-width: 768px) {
    .feed-destacadas-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .feed-destacadas-grid .noticia-card {
        max-width: 560px;
        width: 100%;
    }
}
@media (min-width: 769px) {
    body.layout-topbar .feed-destacadas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }
}
/* ===== STREAM (noticias + publicidades intercaladas) ===== */
/* Desktop: grid de 2 columnas, par a par (noticia + publicidad en misma row) */
.feed-content-stream {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 560px));
    justify-content: center;
    gap: 24px;
    align-items: start;
}
.feed-content-stream .noticia-card {
    max-width: none;
    width: 100%;
}
/* ===== PUBLICIDAD BANNER ===== */
.publicidad-banner {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--feed-radius);
    overflow: hidden;
    box-shadow: var(--feed-shadow);
    background: var(--feed-card);
    animation: fadeCardIn 0.5s ease-out both;
    position: relative;
}
.publicidad-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
/* Banner publicidad cuando está dentro del stream: ocupa toda la celda del grid, sin card */
.feed-content-stream .publicidad-banner {
    max-width: none;
    margin: 0;
    align-self: start;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.feed-content-stream .publicidad-banner:hover {
    box-shadow: none;
}
.feed-content-stream .publicidad-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--feed-radius);
}
/* Margen extra para el banner top (entre eventos y noticias) */
.feed-main > .publicidad-banner {
    margin: 0 auto 48px auto;
}
/* ===== RESPONSIVE: mobile y tablets vuelven a columna única ===== */
@media (max-width: 768px) {
    .feed-content-stream {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .feed-content-stream .noticia-card {
        max-width: 560px;
        width: 100%;
    }
    .feed-content-stream .publicidad-banner {
        max-width: 560px;
        margin: 0 auto;
        align-self: auto;
    }
    .feed-content-stream .publicidad-banner img {
        height: auto;
        min-height: auto;
        max-height: none;
    }
    .feed-main > .publicidad-banner { margin-bottom: 32px; }
}
/* ===== BOTTOM BAR MOBILE ===== */
.feed-bottom-bar {
    display: none;
}
@media (max-width: 768px) {
    .feed-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--feed-card);
        border-top: 1px solid var(--feed-border);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) 4px;
        justify-content: space-around;
        z-index: 9998;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
        animation: slideUpBar 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    .bb-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        text-decoration: none;
        color: var(--feed-muted);
        font-size: 0.62rem;
        font-weight: 600;
        font-family: 'Plus Jakarta Sans', sans-serif;
        padding: 4px 2px;
        border-radius: 10px;
        transition: color 0.25s ease, transform 0.25s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .bb-item:active {
        transform: scale(0.88);
    }
    .bb-item-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    }
    .bb-item-primary .bb-item-icon {
        background: var(--skin-grad);
        color: #fff;
        box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    }
    .bb-item-primary {
        color: var(--skin-c1);
    }
    @keyframes slideUpBar {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}
/* ===== MODAL SEDES ===== */
.contacto-modal-box.sedes-modal-box.expanded {
    width: 1200px !important;
    max-width: 92vw !important;
    max-height: 88vh !important;
}
.sedes-body {
    padding: 24px 28px 28px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 16px;
    overscroll-behavior: contain;
}
.sede-item {
    flex: 0 1 calc(25% - 12px);
    min-width: 250px;
    border: 2px solid var(--feed-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
    position: relative;
}
.sede-item:hover {
    border-color: var(--skin-c1);
    box-shadow: 0 8px 26px rgba(0,0,0,0.10);
}
.sede-item-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    position: relative;
}
.sede-item-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--skin-grad);
}
.sede-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--skin-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.sede-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sede-item-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0;
    color: var(--feed-text);
    line-height: 1.25;
}
.sede-item-address {
    font-size: 0.78rem;
    color: var(--feed-muted);
    font-weight: 500;
    line-height: 1.35;
}
.sede-media-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 14px;
}
.sede-media-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--feed-muted);
    display: flex;
    align-items: center;
}
.sede-plano {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    border: 2px solid var(--feed-border);
}
.sede-item-map {
    line-height: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--feed-border);
}
.sede-item-map iframe {
    width: 100% !important;
    height: 170px !important;
    border: none !important;
    display: block;
}
.sede-item:only-child {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}
.sede-item:only-child .sede-plano {
    height: 240px;
}
.sede-item:only-child .sede-item-map iframe {
    height: 240px !important;
}
@media (max-width: 768px) {
    .contacto-modal-box.sedes-modal-box.expanded {
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        transform: none !important;
        border-radius: 0 !important;
    }
    .sedes-body {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 16px;
        padding: 16px 16px 28px;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .sede-item {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
    .sede-plano { height: 190px; }
    .sede-item-map iframe { height: 190px !important; }
}
/* ===== MODAL CONTACTO ===== */
.contacto-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.4s ease;
}
.contacto-modal-overlay.active {
    background: rgba(0,0,0,0.6);
    pointer-events: all;
}
.contacto-modal-box {
    position: fixed;
    background: var(--feed-card);
    border-radius: var(--feed-radius);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    will-change: transform, width, height, top, left, border-radius;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.15, 1);
    z-index: 10000;
    opacity: 0;
    display: flex;
    flex-direction: column;
}
.contacto-modal-box.expanding { opacity: 1; }
.contacto-modal-box.expanded {
    opacity: 1;
    top: 50% !important;
    left: 50% !important;
    width: 440px !important;
    height: auto !important;
    max-height: 80vh !important;
    transform: translate(-50%, -50%) !important;
    border-radius: var(--feed-radius);
}
.contacto-modal-box.collapsing {
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.15, 1);
}
.contacto-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.contacto-logo-wrap {
    margin-bottom: 8px;
}
.contacto-club-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    text-align: center;
    background: var(--skin-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contacto-divider {
    width: 50px;
    height: 3px;
    border-radius: 3px;
    background: var(--skin-grad);
    opacity: 0.4;
    margin: 12px 0 20px;
}
.contacto-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contacto-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid var(--feed-border);
    text-decoration: none;
    color: var(--feed-text);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.contacto-item:hover {
    border-color: var(--skin-c1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    color: var(--feed-text);
}
.contacto-item::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.02), transparent);
    transition: left 0.5s ease;
}
.contacto-item:hover::after { left: 100%; }
.contacto-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--skin-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.contacto-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.contacto-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--feed-muted);
}
.contacto-item-value {
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-all;
}
.contacto-item-arrow {
    color: var(--feed-muted);
    font-size: 0.8rem;
    transition: transform 0.25s ease, color 0.25s ease;
}
.contacto-item:hover .contacto-item-arrow {
    transform: translateX(3px);
    color: var(--skin-c1);
}
@media (max-width: 768px) {
    .contacto-modal-box.expanded {
        width: 92vw !important;
    }
}
/* --- Contacto empty state --- */
.contacto-empty {
    text-align: center;
    padding: 20px 16px;
    color: var(--feed-muted);
}
.contacto-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    background: var(--skin-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contacto-empty p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}
/* ===== FOOTER MOBILE  ===== */
.feed-footer-mobile {
    display: none;
}
@media (max-width: 768px) {
    .feed-footer-mobile {
        display: flex;
        justify-content: center;
        padding: 16px 16px;
        text-align: center;
    }
}
/* LAYOUTS DESKTOP (solo >768px). Mobile no se toca nunca. */
/* ---------- OPCIÓN 1: TOPBAR STICKY ---------- */
@media (min-width: 769px) {
    body.layout-topbar .feed-layout {
        flex-direction: column;
    }
    body.layout-topbar .feed-sidebar {
        width: 100%;
        min-height: 0;
        height: auto;
        position: sticky;
        top: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 32px;
        gap: 18px;
        border-right: none;
        border-bottom: 1px solid var(--feed-border);
        box-shadow: 0 2px 16px rgba(0,0,0,0.05);
        z-index: 100;
    }
    body.layout-topbar .feed-sidebar::before {
        background: linear-gradient(90deg, var(--skin-c1) 0%, transparent 45%);
    }
    body.layout-topbar .feed-sidebar::after {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 3px;
    }
    body.layout-topbar .sidebar-dot-pattern { background-size: 18px 18px; }

    body.layout-topbar .sidebar-logo-wrap {
        width: 54px;
        height: 54px;
        padding: 3px;
        flex-shrink: 0;
    }
    body.layout-topbar .sidebar-logo-wrap:hover { transform: none; }
    body.layout-topbar .sidebar-club-name {
        font-size: 1.05rem;
        text-align: left;
        white-space: nowrap;
        line-height: 1.2;
    }
    body.layout-topbar .sidebar-divider { display: none; }

    body.layout-topbar .sidebar-actions {
        flex-direction: row;
        width: auto;
        gap: 8px;
        margin-left: auto;
        align-items: center;
    }
    body.layout-topbar .sidebar-btn {
        width: auto;
        padding: 8px 14px;
        gap: 8px;
        font-size: 0.84rem;
        border-radius: 12px;
    }
    body.layout-topbar .sidebar-btn-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.8rem;
    }
    body.layout-topbar .sidebar-footer {
        margin-top: 0;
        margin-left: 8px;
        flex-shrink: 0;
    }
    body.layout-topbar .sidebar-logo-brio { width: 44px; height: 44px; margin-bottom: 0; }
    body.layout-topbar .sidebar-footer-text { display: none; }
    body.layout-topbar .feed-main {
        width: 100%;
        max-width: 1208px;
        margin: 0 auto;
        padding: 36px 32px 60px;
    }
    body.layout-topbar .eventos-carousel-wrapper {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
    body.layout-topbar .eventos-carousel { gap: 24px; }
    body.layout-topbar .eventos-carousel > .evento-slide {
        min-width: calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
    }
    body.layout-topbar .feed-content-stream {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 24px;
    }
}
/* ---------- OPCIÓN 2: SIDEBAR LATERAL ---------- */
@media (min-width: 769px) {
    body.layout-sidebar .eventos-carousel-wrapper {
        max-width: 1144px;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Button cambio de layout */
.btn-layout-toggle { display: none; }
@media (min-width: 769px) {
    .btn-layout-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border: 2px solid var(--feed-border);
        background: var(--feed-card);
        color: var(--feed-muted);
        cursor: pointer;
        font-size: 0.9rem;
        flex-shrink: 0;
        position: relative;
        z-index: 3;
        transition: all 0.25s ease;
    }
    .btn-layout-toggle:hover {
        border-color: var(--skin-c1);
        color: var(--skin-c1);
        transform: scale(1.06);
    }
    body.layout-sidebar .btn-layout-toggle { margin: 4px auto 0; }
}