* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-style: normal;
    font-display: swap;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@font-face {
    font-family: 'Prelo regular';
    src: url('https://nuevasnarrativasec.github.io/agenda-eventos-2026/fonts/Prelo-Medium.woff2') format('woff2'),
        url('https://nuevasnarrativasec.github.io/agenda-eventos-2026/fonts/Prelo-Medium.woff') format('woff');
    font-weight: 500;
}

@font-face {
    font-family: 'Prelo black';
    src: url('https://nuevasnarrativasec.github.io/agenda-eventos-2026/fonts/Prelo-Black.woff2') format('woff2'),
        url('https://nuevasnarrativasec.github.io/agenda-eventos-2026/fonts/Prelo-Black.woff') format('woff');
    font-weight: 900;
}

#social{
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 600;
        margin: 0;
    }
        #social ul{
            display: inline-block;
            margin: 0 auto;
            padding: 0;
            vertical-align: middle;
        }
            #social ul li{
                cursor: pointer;
                display: inline-block;
                margin: 0 3px;
                vertical-align: middle;
            }
                #social ul li a{
                    height: 36px;
                    width: 36px;
                }
                    #fb{
                        background: url(https://d1ts5g4ys243sh.cloudfront.net/proyectos_especiales_prod/especiales-multimedia/abuso-infantil/img/fb-icon-negro.png?v2) no-repeat 0 0;
                        background-size: 100% !important;
                        border: none;
                        display: inline-block;
                        height: 36px;
                        text-indent: -9999px;
                        width: 36px;
                    }
                    #wst{                
                        background: url(https://d1ts5g4ys243sh.cloudfront.net/proyectos_especiales_prod/especiales-multimedia/abuso-infantil/img/wsp-icon-negro.png?v2) no-repeat 0 0 !important;
                        background-size: 100% !important;
                        border: none;
                        display: none;
                        height: 36px;
                        text-indent: -9999px;
                        width: 36px;
                    }
                    #tw{            
                        background: url(https://d1ts5g4ys243sh.cloudfront.net/proyectos_especiales_prod/especiales-multimedia/abuso-infantil/img/tw-icon-negro.png?v2) no-repeat 0 0 !important;
                        background-size: 100% !important;
                        border: none;
                        display: inline-block;
                        height: 36px;
                        text-indent: -9999px;
                        width: 36px;
                    } 


        :root {
            --color-header: #9a8b5c;
            --color-accent-yellow: #e8a832;
            --color-accent-orange: #e07a4a;
            --color-text-dark: #1a1a1a;
            --color-text-light: #ffffff;
            --color-bg-light: #f5f5f5;
            --color-card-bg: #ffffff;
            --font-display: 'Playfair Display', Georgia, serif;
            --font-body: 'Source Sans 3', -apple-system, sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-body);
            background-color: var(--color-bg-light);
            color: var(--color-text-dark);
            line-height: 1.5;
        }

        /* Header */
        .header {
            background: url('https://nuevasnarrativasec.github.io/agenda-eventos-2026/img/bg-portada.jpg') no-repeat center bottom;
            background-size: cover;
            height: 90vh;
            padding: 3rem 1.5rem 4rem;
            text-align: center;
            position: relative;
        }

        .logo {
            font-family: 'Old Standard TT', var(--font-display);
            font-size: 1.5rem;
            color: var(--color-text-dark);
            letter-spacing: 0.05em;
            margin-bottom: 1rem;
            font-weight: 400;
            padding-top: 50px;
        }
            .logo img{
                display: block;
                margin: 10px auto;
                max-width: 120px;
            }

        .header-subtitle {
            font: 1.7rem/1.2 "Noto Serif KR", serif;
            font-weight: 800;
            color: var(--color-text-dark);
            margin: 0 auto;
            max-width: 250px;
        }

        .header-year {
            font: 6rem/1 "Noto Serif KR", serif;
            font-weight: 800;
            color: var(--color-text-dark);
            margin: 0 auto;
        }

        .header h2{
            font: 1.5rem/1.2 "Noto Serif KR", serif;
            font-weight: 600;
            margin: 10px auto 20px;
        }
            .header h2 span{
                display: block;
                margin: 0 auto;
                padding: 5px 10px;
                text-align: center;
                width: fit-content;
            }
            .header h2 span.crema{
                color: #fff;
                background-color: #9f945e;
            }
            .header h2 span.negro{
                color: #fff;
                background-color: #000;
            }

        .filter-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }

        .filter-label {
            font-size: 0.875rem;
            font-weight: 800;
            color: #000;
        }

        .filter-select-wrapper {
            position: relative;
            min-width: 180px;
        }

        .filter-select {
            appearance: none;
            background-color: var(--color-card-bg);
            border: none;
            padding: 0.75rem 2.5rem 0.75rem 1rem;
            font-family: var(--font-body);
            font-size: 1rem;
            cursor: pointer;
            width: 100%;
            border-radius: 2px;
        }

        .filter-select:focus {
            outline: 2px solid var(--color-accent-yellow);
            outline-offset: 2px;
        }

        .filter-select-wrapper::after {
            content: '';
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 6px solid var(--color-text-dark);
            pointer-events: none;
        }

        /* Main Content */
        main {
            max-width: 1124px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        /* Month Section */
        .month-section {
            padding: 3rem 0;
            scroll-margin-top: 20px;
            display: flex;
            gap: 0;
        }

        .month-sidebar {
            width: 20px;
            background-color: var(--color-accent-orange);
            flex-shrink: 0;
            margin-right: 1rem;
        }
            .month-febrero{
                background-color: #e9a832;
            }
            .month-marzo,
            #marzo .event-card--highlight-orange{
                background-color: #5990b8;
            }
            .month-abril,
            #abril .event-card--highlight-orange{
                background-color: #766fbd;
            }
            .month-mayo,
            #mayo .event-card--highlight-orange{
                background-color: #84bfa8;
            }
            .month-junio,
            #junio .event-card--highlight-orange{
                background-color: #bbda57;
            }
            .month-julio,
            #julio .event-card--highlight-orange{
                background-color: #adc7fb;
            }
            .month-agosto,
            #agosto .event-card--highlight-orange{
                background-color: #e05fca;
            }
            .month-setiembre,
            #septiembre .event-card--highlight-orange{
                background-color: #89f1db;
            }
            .month-octubre,
            #octubre .event-card--highlight-orange{
                background-color: #fae64c;
            }
            .month-noviembre,
            #noviembre .event-card--highlight-orange{
                background-color: #ec7e39;
            }
            .month-diciembre,
            #diciembre .event-card--highlight-orange{
                background-color: #c2e590;
            }
            

        .month-content {
            flex: 1;
            min-width: 0;
        }

        .month-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .month-title {
            font: 4rem/1.3 "Noto Serif KR", serif;
            font-weight: 800;
            color: var(--color-text-dark);
            flex-shrink: 0;
        }

        .month-line {
            flex-grow: 1;
            height: 1px;
            background-color: var(--color-text-dark);
            opacity: 0.3;
        }

        /* Cards Container */
        .cards-container {
            display: flex;
            gap: 1rem;
            overflow-x: auto;
            padding: 0.5rem;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: var(--color-header) transparent;
            cursor: grab;
            -webkit-user-select: none;
            /* Mejoras de rendimiento */
            will-change: scroll-position;
            overscroll-behavior-x: contain;
        }

        /* En móvil, permitir scroll nativo en ambas direcciones */
        @media (pointer: coarse) {
            .cards-container {
                touch-action: manipulation;
                cursor: auto;
            }
        }

        .cards-container:active {
            cursor: grabbing;
        }

        .cards-container.is-dragging {
            cursor: grabbing;
            scroll-snap-type: none;
        }

        .cards-container.is-dragging .event-card {
            pointer-events: none;
        }

        .cards-container::-webkit-scrollbar {
            height: 8px;
        }

        .cards-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .cards-container::-webkit-scrollbar-thumb {
            background-color: var(--color-header);
            border-radius: 4px;
        }

         /* Ocultar scrollbar en móvil para mejor UX táctil */
        @media (max-width: 768px) {
            .cards-container {
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            .cards-container::-webkit-scrollbar {
                display: none;
            }
        }

        @media (min-width: 769px) {
            .cards-container::-webkit-scrollbar {
                height: 8px;
            }

            .cards-container::-webkit-scrollbar-track {
                background: transparent;
            }

            .cards-container::-webkit-scrollbar-thumb {
                background-color: var(--color-header);
                border-radius: 4px;
            }
        }

        /* Event Card */
        .event-card {
            border-radius: 20px;
            flex: 0 0 auto;
            width: 23%;
            min-height: 220px;
            padding: 1.25rem;
            background-color: var(--color-card-bg);
            border: 1px solid rgba(0, 0, 0, 0.5);
            scroll-snap-align: start;
            display: flex;
            flex-direction: column;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            overflow: hidden;
            /* Prevenir selección durante drag */
            -webkit-touch-callout: none;
            /*touch-action: pan-x;*/
        }

        .event-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        }

        .event-card--highlight-orange {
            background-color: var(--color-accent-orange);
            color: #000;
            border: none;
        }

        .event-card--highlight-yellow {
            background-color: var(--color-accent-yellow);
            color: var(--color-text-dark);
            border: none;
        }

        .event-card--with-image {
            /*padding-bottom: 0;*/
        }

        .card-day {
            font: 2.6rem/1.1 'Prelo black';
            margin-bottom: 0.25rem;
            line-height: .9;
        }

        .card-title {
            font-size: 1.4rem;
            font-weight: 600;
            line-height: 1.3;
            margin-bottom: 0.75rem;
        }
        
        .title-black{
            font-family: 'Prelo black';
        }

        .card-events {
            font-size: 1rem;
            line-height: 1.6;
            flex-grow: 1;
        }

        .card-events li {
            margin-bottom: 0.6rem;
            line-height: 1.3;
            list-style: none;
            position: relative;
            padding-left: 0.75rem;
        }

        .card-events li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: inherit;
        }

        .card-image {
            width: calc(100% + 2.5rem);
            margin: auto -1.25rem 0;
            height: 120px;
            object-fit: cover;
        }

        .card-image-wrapper {
            width: calc(100% + 2.5rem);
            margin: auto -1.25rem 0;
            position: relative;
            overflow: hidden;
        }

        .card-image-wrapper img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            display: block;
        }

        /* Image frame effect */
        .image-frame {
            position: relative;
            display: inline-block;
            margin-top: auto;
        }

        .image-frame::before {
            content: '';
            position: absolute;
            top: 4px;
            left: 4px;
            right: -4px;
            bottom: -4px;
            border: 2px solid rgba(0, 0, 0, 0.1);
            z-index: -1;
        }

        .image-frame img {
            display: block;
            width: 100%;
            max-width: 140px;
            height: auto;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .header {
                padding: 2rem 1rem 3rem;
            }

            .event-card {               
                min-height: 200px;
            }

            .month-section {
                padding: 2rem 0;
            }
        }
       
        @media (max-width: 640px) {

            #wst{
                display: inline-block;
            }

            .month-title{
                font-size: 2rem;
            }
            .card-events{
                font-size: 1.1rem;
            }
            .event-card{
                width: 80%;
            }
            .header h2{
                padding: 0 20px;
            }

            .header {
                background: url('https://nuevasnarrativasec.github.io/agenda-eventos-2026/img/bg-portada-movil.jpg') no-repeat center bottom;
                background-size: cover;
                height: 100vh;
            }
            .logo{
                padding-top: 15px;
            }
            .card-title,
            .card-events li{
                font-size: 1.5rem !important;
            }

        }

        

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .month-section {
            animation: fadeInUp 0.6s ease-out;
        }

        /* Footer spacer */
        .footer-spacer {
            height: 4rem;
        }

.event-card--highlight-orange{
    line-height: 1;
}
        
.relative{
    position: relative;
}
.bg-enero-1{
    bottom: 5px;
    max-width: 65px;
    position: absolute;
    right: 0;
}
.bg-enero-2{
    bottom: 0;
    max-width: 110px;
    position: absolute;
    right: 5px;
}
.bg-enero-3{
    bottom: 0;
    left: 14px;
    max-width: 200px;
    position: absolute;    
}
.bg-febrero-2{
    bottom: 5px;
    max-width: 120px;
    position: absolute;
    right: 10px;
}
.bg-marzo-1{
    bottom: 5px;
    max-width: 65px;
    position: absolute;
    right: 3px;
}
    .red{
        border-color: red;
    }
    .red .card-day,
    .red h3,
    .red ul li{
        color: red;
    }
.bg-abril-2{
    bottom: 10px;    
    max-width: 110px;
    position: absolute;  
    right: 14px;
}
.bg-abril-3{
    bottom: 0;    
    max-width: 160px;
    position: absolute;  
    right: 14px;
}
.bg-mayo-2{
    bottom: 10px;
    max-width: 85px;
    position: absolute;
    right: 10px;
}
.bg-junio-1{
    bottom: 10px;
    max-width: 95px;
    position: absolute;
    right: 10px;
}
.bg-junio-2{
    bottom: 0;
    left: 25%;
    max-width: 95px;
    position: absolute;    
}
.bg-julio-1{
    bottom: 10px;
    max-width: 65px;
    position: absolute;
    right: 10px;
}
.bg-agosto-1{
    bottom: 10px;
    max-width: 60px;
    position: absolute;
    right: 10px;
}
.bg-setiembre-1{
    margin: 5px auto;
    max-width: 150px;
}
.bg-setiembre-2{
    bottom: 10px;
    max-width: 90px;
    position: absolute;
    right: 10px;
}
.bg-octubre-2{
    bottom: 10px;
    margin: 5px auto;
    max-width: 80px;
    position: absolute;
    right: 10px;
}
.bg-diciembre-2{
    margin: 5px auto;
    max-width: 100px;
}

.main-footer{
    background-color: #000;
    padding: 20px 0;
}
    .main-footer img{
        display: block;
        margin: 10px auto 20px;
        max-width: 120px;
    }
    .main-footer p{
        color: #fff;
        margin-bottom: 20px;
        text-align: center;
    }
        .main-footer p span{
            display: block;
            font-weight: 600;
        }
