    /* ======================================================
       EL BARRIO - ESTILOS UNIFICADOS
    ====================================================== */

    /* ---------- VARIABLES GLOBALES ---------- */
    :root {
        --color-primario: #2c3e50;
        --color-fondo: #f5f5f5;
        --color-texto: #1c1c1e;
        --color-texto-claro: #8e8e93;
        --color-borde: #e9e9ef;
        --color-urgente: #dc3545;
        --color-escuelas: #3498db;
        --color-servicios: #f39c12;
        --color-comercios: #27ae60;
        --color-eventos: #9b59b6;
        --color-gobierno: #1abc9c;
        --color-varios: #7f8c8d;
    }

    /* ---------- RESET Y BASE ---------- */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        background: var(--color-fondo);
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        padding-top: 90px;
    } 

    /* ---------- HERO BANNER ---------- */
    .hero-banner {
        width: 100%;
        height: auto;
        max-height: 65vh;
        object-fit: contain;
        display: block;
        background-color: #f0f0f0;
    }

    /* ---------- TARJETAS / AVISOS (BASE) ---------- */
    .aviso-card {
        cursor: pointer;
        position: relative;
        overflow: hidden;
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
        width: 100%;
        box-sizing: border-box;
        background: white;
        border-radius: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
        transition: transform 0.15s ease, box-shadow 0.2s ease;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Categoría badge */
    .categoria-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 4;
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-weight: 600;
        letter-spacing: 0.5px;
        backdrop-filter: blur(4px);
    }

    /* Botón WhatsApp flotante */
    .whatsapp-btn {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background-color: #25D366;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: flex;
        align-items: right;
        justify-content: center;
        text-decoration: none;
        transition: all 0.25s ease;
        z-index: 4;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/WhatsApp.svg/960px-WhatsApp.svg.png');
        background-size: 55%;
        background-position: center;
        background-repeat: no-repeat;
        border: none;
        cursor: pointer;
    }

    /* Toast */
    .toast-notification {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        background: rgba(0, 0, 0, 0.85);
        color: white;
        padding: 10px 24px;
        border-radius: 40px;
        font-size: 0.9rem;
        z-index: 1100;
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    .toast-notification.show {
        transform: translateX(-50%) translateY(0);
    }

    /* ======================================================
       MÓVIL (ancho < 768px) - EFECTO ENGRANE + FONDO COMPLETO
    ====================================================== */
    @media (max-width: 767px) {
        .scrollable-container {
            height: 100vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: y mandatory;
            scroll-snap-stop: always;
            scroll-behavior: smooth;
            padding-top: 70px; /*esta puedes comentarlo */
        }

        .scrollable-container::-webkit-scrollbar {
            display: none;
        }

        #avisos-container {
            display: block !important;
            scroll-snap-type: none !important;
            height: auto !important;
        }

        .aviso-card {
            scroll-snap-align: start;
            scroll-snap-stop: always;
            height: 77vh;
            min-height: 77vh;
            margin-bottom: 0 !important;
            border-radius: 20px !important;
            background: #000;
        }

        /* ✅ IMAGEN/VIDEO COMO FONDO */
        .aviso-imagen,
        .aviso-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100% !important;
            object-fit: cover;
            z-index: 1;
            border-radius: 20px !important;
            margin-bottom: 0;
        }

        /* ✅ VIDEO COMO FONDO */
        .aviso-video {
            position: absolute !important;
            background: #000;
            overflow: hidden;
        }

        .aviso-video video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
        }

        .aviso-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.85) 100%);
            z-index: 2;
            pointer-events: none;
        }

        .card-contenido-moderno {
            position: relative;
            z-index: 3;
            background: transparent !important;
            color: white !important;
            padding: 20px;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        .card-titulo-moderno,
        .card-preview-moderno,
        .card-fecha-moderna,
        .aviso-footer span {
            color: white !important;
        }

        .card-stats-moderno .stat-item {
            color: white !important;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            border-radius: 20px;
            padding: 4px 10px;
        }

        .whatsapp-btn {
            width: 44px;
            height: 44px;
            bottom: 16px;
            right: 16px;
            background-size: 60%;
        }
    }

    /* ======================================================
       DESKTOP (ancho ≥ 768px) - CUADRÍCULA NORMAL
    ====================================================== */
    @media (min-width: 768px) {
        .scrollable-container {
            height: auto;
            overflow-y: visible;
            scroll-snap-type: none;
            padding-top: 70px;
        } 

        #avisos-container {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            height: auto !important;
            overflow-y: visible !important;
            scroll-snap-type: none !important;
        }

        /* POSTS DESTACADOS: primeros 3 */
        #avisos-container .aviso-card:nth-child(1) {
            grid-column: span 2;
        }

        #avisos-container .aviso-card:nth-child(2),
        #avisos-container .aviso-card:nth-child(3) {
            grid-column: span 1;
        }

        /* Imagen más alta en los primeros 3 */
        #avisos-container .aviso-card:nth-child(-n+3) .aviso-imagen,
        #avisos-container .aviso-card:nth-child(-n+3) .aviso-video {
            height: 280px !important;
        }

        .aviso-card {
            min-height: auto !important;
            height: auto !important;
            margin-bottom: 0 !important;
            scroll-snap-align: none !important;
            border-radius: 20px !important;
            overflow: hidden;
            background: white;
            border-radius: 20px !important;
        }

        /* ✅ IMAGEN QUE ABARCA TODO EL ANCHO */
        .aviso-imagen,
        .aviso-video {
            width: 100% !important;
            height: 180px !important;
            object-fit: cover !important;
            border-radius: 20px 20px 0 0 !important;
            position: relative !important;
            display: block !important;
        }

        .card-contenido-moderno {
            position: relative !important;
            background: white !important;
            color: var(--color-texto) !important;
            text-shadow: none;
            padding: 16px;
            z-index: 1;
        }

        .card-titulo-moderno,
        .card-preview-moderno,
        .card-fecha-moderna,
        .aviso-footer span {
            color: var(--color-texto) !important;
        }

        .card-stats-moderno .stat-item {
            background: transparent !important;
            backdrop-filter: none;
            color: #5a5a5e !important;
            padding: 0;
        }

        .categoria-badge {
            background: rgba(0, 0, 0, 0.6) !important;
        }

        .aviso-card::after {
            display: none;
        }
    }

    /* Desktop mediano (≥ 1024px) - 3 columnas */
    @media (min-width: 1024px) {
        #avisos-container {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* Desktop grande (≥ 1280px) - 4 columnas */
    @media (min-width: 1280px) {
        #avisos-container {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    /* ======================================================
   POSTS DESTACADOS - BORDE ROJO + CANICA ANIMADA
   ====================================================== */

    /* Base del borde rojo */
    .aviso-card.aviso-destacado {
        border-left: 6px solid #dc3545 !important;
        border-radius: 20px !important;
        position: relative;
        overflow: hidden;
    }

    /* La canica nítida en el borde */
    .aviso-card.aviso-destacado::before {
        content: '●';
        position: absolute;
        top: 0;
        left: -4px;
        font-size: 18px;
        color: #ff3333;
        animation: canicaSubeYBaja 7s ease-in-out infinite alternate;
        pointer-events: none;
        z-index: 3;
        width: 6px;
        text-align: center;
        line-height: 1;
        font-weight: bold;
    }

    /* Delays diferentes para cada canica */
    .aviso-card.aviso-destacado:nth-child(6n+1)::before {
        animation-delay: 0s;
        animation-duration: 5s;
    }

    .aviso-card.aviso-destacado:nth-child(6n+2)::before {
        animation-delay: 0.6s;
        animation-duration: 6s;
    }

    .aviso-card.aviso-destacado:nth-child(6n+3)::before {
        animation-delay: 1.2s;
        animation-duration: 7s;
    }

    .aviso-card.aviso-destacado:nth-child(6n+4)::before {
        animation-delay: 1.8s;
        animation-duration: 5.5s;
    }

    .aviso-card.aviso-destacado:nth-child(6n+5)::before {
        animation-delay: 2.4s;
        animation-duration: 6.5s;
    }

    .aviso-card.aviso-destacado:nth-child(6n+6)::before {
        animation-delay: 3s;
        animation-duration: 8s;
    }

    @keyframes canicaSubeYBaja {
        0% {
            top: 2%;
            transform: scale(1);
        }

        100% {
            top: 94%;
            transform: scale(1.1);
        }
    }

    /* En dispositivos pequeños, canica más pequeña */
    @media (max-width: 768px) {
        .aviso-card.aviso-destacado::before {
            font-size: 12px;
            left: -3px;
        }
    }

    @media (max-width: 480px) {
        .aviso-card.aviso-destacado::before {
            font-size: 10px;
            left: -2px;
        }
    }

    /* ======================================================
       MODAL DE CATEGORÍAS
    ====================================================== */
    .modal-categorias {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 2000;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
    }

    .modal-contenido {
        background: white;
        max-width: 500px;
        width: 90%;
        margin: 20px auto;
        border-radius: 20px;
        overflow: hidden;
        animation: modalFadeIn 0.3s ease;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-header {
        background: linear-gradient(135deg, #1e4620, #2b7a2b);
        color: white;
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .modal-cerrar {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .modal-body {
        padding: 1rem;
        max-height: 60vh;
        overflow-y: auto;
    }

    .categoria-info {
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid #eee;
    }

    .categoria-info h4 {
        color: var(--color-primario);
        margin-bottom: 0.5rem;
    }

    .categoria-info p {
        font-size: 0.85rem;
        color: #444;
    }

    .modal-footer {
        padding: 1rem;
        border-top: 1px solid #eee;
        text-align: center;
    }

    /* ======================================================
       PANEL DE COMENTARIOS
    ====================================================== */
    .comments-panel {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 400px;
        background: white;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        max-height: 80vh;
    }

    .comments-panel.open {
        transform: translateY(0);
    }

    .comments-header {
        background: var(--color-primario);
        color: white;
        padding: 1rem;
        border-radius: 20px 20px 0 0;
        display: flex;
        justify-content: space-between;
    }

    .close-comments {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .comments-list {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
        max-height: 400px;
    }

    .comment-input-area {
        padding: 1rem;
        border-top: 1px solid var(--color-borde);
        display: flex;
        gap: 0.5rem;
    }

    /* Botón flotante sobre hero */
    .hero-button-wrapper {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 5;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-button-wrapper .btn-login {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        padding: 12px 24px;
        font-size: 1rem;
        animation: pulse 2s infinite;
        white-space: nowrap;
    }

    @media (max-width: 767px) {
        .hero-button-wrapper {
            top: 40%;
        }

        .hero-button-wrapper .btn-login {
            padding: 10px 20px;
            font-size: 0.85rem;
            white-space: normal;
        }
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.02);
        }

        100% {
            transform: scale(1);
        }
    }

    main {
        /* padding-top: 96px; */
        padding-top: 0.5rem;
    }

    /* ======================================================
   HEADER STICKY
====================================================== */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: white;
    }

    /* .header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    } */

    /* Estilo para el contenido del header */
    .header-contenido {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        min-height: 6rem;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    /* Logo */
    .header-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }

    .logo-texto h1 {
        font-size: 1.3rem;
        margin: 0;
        background: linear-gradient(135deg, #2b7a2b, #d4a043);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .header-slogan {
        font-size: 0.65rem;
        color: #6b7280;
        margin: 0;
    }

    /* Acciones del header */
    .header-acciones {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    /* Botones */
    .btn-login,
    .btn-logout {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 20px;
        border-radius: 40px;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
        white-space: nowrap;
        cursor: pointer;
        border: none;
    }

    .btn-login {
        background: linear-gradient(135deg, #f5b042, #ff8c42);
        color: white;
    }

    .btn-logout {
        border: 2px solid #d4a043;
        color: #d4a043;
        background: transparent;
    }

    .user-area {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .user-name {
        font-size: 0.85rem;
        color: #9ca3af;
        font-weight: 500;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .header-contenido {
            min-height: 4rem;
        }

        .logo-icon {
            width: 34px;
            height: 34px;
        }

        .logo-texto h1 {
            font-size: 0.85rem;
        }

        .header-slogan {
            font-size: 0.5rem;
        }

        .btn-login,
        .btn-logout {
            padding: 5px 12px;
            font-size: 0.75rem;
        }
    }




    /* ========== ESTILOS PREMIUM PARA EL INDEX ========== */

    /* Tarjetas cliqueables */
    .aviso-card {
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        overflow: hidden;
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
        width: 100%;
        box-sizing: border-box;
        background: white;
        border-radius: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
        transition: transform 0.15s ease, box-shadow 0.2s ease;
    }

    .aviso-card:active {
        transform: scale(0.99);
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .aviso-card:hover,
    #btnProbarNotificacion {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
        margin-bottom: 2rem;
    }

    .categoria-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 2;
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-weight: 600;
        letter-spacing: 0.5px;
        backdrop-filter: blur(4px);
    }

    .whatsapp-btn {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background-color: #25D366;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.25s ease;
        z-index: 3;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/WhatsApp.svg/960px-WhatsApp.svg.png');
        background-size: 55%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .whatsapp-btn:hover {
        transform: scale(1.12);
        background-color: #128C7E;
    }

    .aviso-imagen {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
        margin-bottom: 0.8rem;
        background: var(--color-fondo);
    }

    .filtros-buscador-wrapper {
        display: flex;
        gap: 1rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .buscador-container {
        flex: 1;
        min-width: 220px;
    }

    .buscador-input {
        width: 100%;
        padding: 0.6rem 1rem;
        border-radius: 40px;
        border: 1px solid var(--color-borde, #ddd);
        font-size: 0.9rem;
        transition: all 0.2s;
        background: white;
    }

    .buscador-input:focus {
        outline: none;
        border-color: var(--color-primario, #2c3e50);
        box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    }

    @media (min-width: 768px) and (max-width: 1199px) {
        .grid-avisos {
            grid-template-columns: repeat(4, 1fr);
        }

        .grid-avisos .aviso-card:nth-child(1),
        .grid-avisos .aviso-card:nth-child(2) {
            grid-column: span 2;
        }

        .grid-avisos .aviso-card:nth-child(-n+2) .aviso-imagen {
            height: 220px;
        }
    }

    @media (min-width: 1200px) {
        .grid-avisos {
            grid-template-columns: repeat(4, 1fr);
        }

        .grid-avisos .aviso-card:nth-child(1),
        .grid-avisos .aviso-card:nth-child(2) {
            grid-column: span 2;
        }

        .grid-avisos .aviso-card:nth-child(-n+2) .aviso-imagen {
            height: 240px;
        }
    }

    .loading-trigger {
        text-align: center;
        padding: 2rem;
        color: var(--color-texto-claro);
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        cursor: pointer;
        transition: all 0.2s;
        padding: 0.2rem 0.4rem;
        border-radius: 20px;
    }

    .stat-item.like-btn:hover {
        background: rgba(255, 71, 87, 0.1);
        transform: scale(1.05);
    }

    .stat-item.liked {
        color: #ff4757;
    }

    .stat-item.disliked {
        color: #7f8c8d;
    }

    .comments-panel {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 400px;
        background: white;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        max-height: 80vh;
    }

    .comments-panel.open {
        transform: translateY(0);
    }

    .comments-header {
        padding: 1rem;
        background: var(--color-primario);
        color: white;
        border-radius: 20px 20px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .comments-header h3 {
        margin: 0;
        font-size: 1rem;
    }

    .close-comments {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .comments-list {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
        max-height: 400px;
    }

    .comment-item {
        background: var(--color-fondo);
        border-radius: 12px;
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .comment-author {
        font-weight: 700;
        font-size: 0.8rem;
        color: var(--color-primario);
        margin-bottom: 0.3rem;
    }

    .comment-text {
        font-size: 0.85rem;
        color: var(--color-texto);
        line-height: 1.4;
    }

    .comment-date {
        font-size: 0.6rem;
        color: var(--color-texto-claro);
        margin-top: 0.3rem;
    }

    .comment-input-area {
        padding: 1rem;
        border-top: 1px solid var(--color-borde);
        display: flex;
        gap: 0.5rem;
    }

    .comment-input-area input {
        flex: 1;
        padding: 0.6rem;
        border: 1px solid var(--color-borde);
        border-radius: 20px;
        font-size: 0.85rem;
    }

    .comment-input-area button {
        background: var(--color-primario);
        color: white;
        border: none;
        padding: 0.6rem 1rem;
        border-radius: 20px;
        cursor: pointer;
    }

    .toast-notification {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        background: rgba(0, 0, 0, 0.85);
        color: white;
        padding: 10px 24px;
        border-radius: 40px;
        font-size: 0.9rem;
        z-index: 1100;
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    .toast-notification.show {
        transform: translateX(-50%) translateY(0);
    }

    .tarjeta-moderna {
        background: #ffffff;
        border-radius: 20px;
        margin-bottom: 20px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
    }

    .card-contenido-moderno {
        padding: 16px;
    }

    .card-header-moderno {
        margin-bottom: 12px;
    }

    .card-titulo-moderno {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 4px 0;
        color: #1c1c1e;
        line-height: 1.3;
    }

    .card-fecha-moderna {
        font-size: 0.7rem;
        color: #8e8e93;
        margin-top: 4px;
    }

    .card-preview-moderno {
        font-size: 0.85rem;
        color: #3a3a3c;
        line-height: 1.4;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-stats-moderno {
        display: flex;
        gap: 20px;
        padding-top: 12px;
        border-top: 0.5px solid #e9e9ef;
        margin-top: 4px;
    }

    .card-stats-moderno .stat-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.8rem;
        color: #5a5a5e;
        background: none;
        padding: 0;
    }

    .card-stats-moderno .stat-item.liked {
        color: #e74c3c;
    }

    .card-stats-moderno .stat-item.disliked {
        color: #7f8c8d;
    }

    .aviso-footer {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
        border-top: 1px solid var(--color-borde);
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.7rem;
        color: var(--color-texto-claro);
    }

    /* .hero-banner {
        width: 100%;
        height: auto;
        max-height: 65vh;
        object-fit: contain;
        display: block;
        background-color: #f0f0f0;
    } */

    @media (prefers-color-scheme: dark) {
        .hero-banner {
            opacity: 0.95;
        }
    }

    /* Estilos para videos en tarjetas */
    .aviso-video {
        width: 100%;
        height: 180px;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
        background: #000;
        position: relative;
    }

    .aviso-video video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #000;
    }

    /* Tarjetas destacadas con video más grande */
    .aviso-card.destacada .aviso-video {
        height: 240px;
    }

    @media (max-width: 768px) {
        .aviso-video {
            height: 160px;
        }

        .aviso-card.destacada .aviso-video {
            height: 200px;
        }
    }

    /* Modal de categorías */
    .modal-categorias {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 2000;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
    }

    .modal-contenido {
        background: white;
        max-width: 500px;
        width: 90%;
        margin: 20px auto;
        border-radius: 20px;
        overflow: hidden;
        animation: modalFadeIn 0.3s ease;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-header {
        background: linear-gradient(135deg, #1e4620, #2b7a2b);
        color: white;
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .modal-header h3 {
        margin: 0;
        font-size: 1.2rem;
    }

    .modal-cerrar {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .modal-body {
        padding: 1rem;
        max-height: 60vh;
        overflow-y: auto;
    }

    .categoria-info {
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid #eee;
    }

    .categoria-info h4 {
        margin: 0 0 0.5rem 0;
        color: var(--color-primario);
    }

    .categoria-info p {
        margin: 0.3rem 0;
        font-size: 0.85rem;
        color: #444;
        line-height: 1.4;
    }

    .categoria-info small {
        display: block;
        margin-top: 0.3rem;
        font-size: 0.7rem;
        color: #e74c3c;
    }

    .modal-footer {
        padding: 1rem;
        border-top: 1px solid #eee;
        text-align: center;
    }

    @media (max-width: 600px) {
        .modal-contenido {
            width: 95%;
            margin: 10px auto;
        }

        .categoria-info h4 {
            font-size: 0.95rem;
        }

        .categoria-info p {
            font-size: 0.8rem;
        }
    }

    /* Base del borde rojo */
    .aviso-card.aviso-destacado {
        border-left: 6px solid #D36D24 !important;
        border-radius: 20px !important;
        position: relative;
        overflow: hidden;
    }

    /* La canica nítida en el borde */
    .aviso-card.aviso-destacado::before {
        content: '●';
        position: absolute;
        top: 0;
        left: -4px;
        font-size: 18px;
        color: #D36D24;
        animation: canicaSubeYBaja 7s ease-in-out infinite alternate;
        pointer-events: none;
        z-index: 3;
        width: 6px;
        text-align: center;
        line-height: 1;
        font-weight: bold;
    }

    /* Delays diferentes para cada canica */
    .aviso-card.aviso-destacado:nth-child(6n+1)::before {
        animation-delay: 0s;
        animation-duration: 5s;
    }

    .aviso-card.aviso-destacado:nth-child(6n+2)::before {
        animation-delay: 0.6s;
        animation-duration: 6s;
    }

    .aviso-card.aviso-destacado:nth-child(6n+3)::before {
        animation-delay: 1.2s;
        animation-duration: 7s;
    }

    .aviso-card.aviso-destacado:nth-child(6n+4)::before {
        animation-delay: 1.8s;
        animation-duration: 5.5s;
    }

    .aviso-card.aviso-destacado:nth-child(6n+5)::before {
        animation-delay: 2.4s;
        animation-duration: 6.5s;
    }

    .aviso-card.aviso-destacado:nth-child(6n+6)::before {
        animation-delay: 3s;
        animation-duration: 8s;
    }

    @keyframes canicaSubeYBaja {
        0% {
            top: 2%;
            transform: scale(1);
        }

        100% {
            top: 94%;
            transform: scale(1.1);
        }
    }

    /* En dispositivos pequeños, canica más pequeña */
    @media (max-width: 768px) {
        .aviso-card.aviso-destacado::before {
            font-size: 12px;
            left: -3px;
        }
    }

    /* En dispositivos muy pequeños (celulares chicos) */
    @media (max-width: 480px) {
        .aviso-card.aviso-destacado::before {
            font-size: 10px;
            left: -2px;
        }
    }