:root {
    --gray-100: #eeeeee;
    --gray-200: #cccccc;
    --gray-300: #aaaaaa;
    --gray-400: #a1a1a1;
    --gray-500: #999999;
    --gray-600: #777777;
    --gray-700: #555555;
    --gray-800: #333333;
    --gray-900: #111111;
    --color-primary: #F29579;
    --color-primary-black: #e98466;
    --color-primary-white: #faac94;
    --color-primary-white-extra: #ffe0d7;
}
.txt-color-primary {
    color: var(--color-primary)
}
html, body {
  overflow-x:hidden 
} 
body {
    background-color: #fff;
    color: #000;
    overflow-x: hidden;
}
a {
    text-decoration: none;
}
main {
    margin: 0;
    padding: 0
}
.topbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    .imgLogo{
        background-color: #fff;
        margin-block: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2rem;
        font-weight: bold;
        font-family: 'Poppins';
        a {
            span {
                color:var(--color-primary);
                font-size: 2.3rem;
            }
            
        }
    }
    .first-child,
    .box-btn-search {
        padding-inline: 16px;
        background-color: #ffff;
        color:var(--color-primary);
        font-size: 32px;
    }
    .first-child {
        cursor: pointer;
    }
    .box-btn-search {
        font-size: 24px;
    }
}
.left-menu {
    width: 400px;
    height: 100vh;
    background-color: #fff;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: width .2s;
    overflow: hidden;
    padding: 8px 16px;
    h3 {
        margin-block: 16px;
        font-weight: bold;
    }
    .top-left-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        span {
            font-size: 24px;
            cursor: pointer;
        }
        a {
            color:var(--color-primary);
            font-size: 2rem;
            font-weight: bold;
            font-family: 'Poppins';
        }
    }
    .posts {
        gap: 16px;
        .post {
            width: auto;
        }
        h2 {
            font-size: 1.1rem;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 330px;
            overflow: hidden;
        }
        .fecha {
            font-size: 0.7rem;
        }
        .content {
            font-size: 0.8rem;
        }
    }
    .extra-links {
        display: flex;
        flex-direction: column;
    }
}
.left-menu.close {
    width: 0px;
    visibility:hidden;
}
.search-box {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
    input{
        flex: 1;
    }
}
.posts .post:not(.detalle-entrada) .content {
    /*
    display: -webkit-box;
    max-width: 100%;
    -webkit-line-clamp: 8;
    line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;*/
}
.posts {
    display: flex;
    flex-direction: column;
    row-gap: 48px;
    margin-block: 16px;
    align-items: center;
    .comentarios {
        width: 1000px;
    }
    .post {
        width: 1000px;
        display: flex;
        flex-direction: column;
        row-gap: 8px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        padding: 8px;
        margin: 0;
        border: 0;
        border-radius: 0;
        section {
            border: none;
            margin: 0;
            padding: 0;
        }
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            margin: 0;
            color: var(--color-primary);
            & a {
                margin: 0;
                color: var(--color-primary);
            }
        }
        .info-profesional {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: bold;
            font-size: 20px;
            .thumb-img {
                width: 100px;
                height: 100px;
                position: relative;
                .title-profesional {
                    position: absolute;
                    z-index: 1;
                    top: 30px;
                    right: 0;
                    text-align: right;
                    color: var(--color-primary);
                    width: 150px;
                    font-size: 14px;
                }
            }
        }
        
        .info,
        .date {
            margin: 0;
            font-size: 0.7rem;
            color: #868686;
        }
        .content {
            margin: 0 8px;
            .twitter-tweet {
                margin: 0 auto;
            }
            h5 {
                font-size: 1.1rem;
                margin: 0;
            }
            h6 {
                font-size: 0.9rem;
                margin: 0;
            }
        }
        .img {
            text-align: center;
        }
        p {
            margin: 0;
            color: #555555;
            margin-bottom: 16px;
            strong.title {
                color: var(--gray-900)
            }
        }
        strong {
            color: var(--color-primary);
        }
        ul {
            list-style: circle;
        }
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            justify-content: center;
            margin-top: 32px;
            .tag {
                background-color: var(--color-primary);
                color: #fff;
                border-radius: 8px;
                padding: 4px 8px;
                font-weight: bold;
                font-size: 0.8rem;
                text-transform:capitalize;
            }
        }
        .comment {
            display: flex;
            justify-content: center;
            margin-block: 16px;
        }
        .share-sn {
            display: flex;
            justify-content: center;
            column-gap: 8px;
            font-size: 36px;
            * {
                color: var(--color-primary);
            }
        }
        .redes-sociales {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            column-gap: 16px;
            padding: 8px 0;
            margin: 16px 0 0 0;
            font-size: 24px;
        }
    }
    .post.buenosdias .content {
        font-family: 'Delius', cursive;
        font-size: 1.8rem;
    }
}
@media only screen and (max-width: 1200px) {
    .posts {
        .post,
        .comentarios{
            max-width: 800px;
        }
    }
}
@media only screen and (max-width: 968px) {
    .posts {
        .post,
        .comentarios{
            width: 100%;
        }
    }
}
.posts,
.detalle-entrada {
    /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);*/
    h1 {
        margin: 0;
    }
    .eleccion {
        width: 100%;
/*
        .simulacion {
            
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            animation: mover 0.8s linear infinite alternate;
            z-index: 1;
            background: white;
            border-radius: 8px;
            padding: 8px 16px;
            text-align: center;
            box-shadow: 0px 0px 5px 3px rgba(184,184,184,0.75);
            span {
                font-weight: 600;
                white-space: nowrap;
            }
        }*/
    }
    .resumen-partido {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        .fase {
            display: flex;
            justify-content: center;
            width: 100%;
            font-size: 28px;
        }
        .fase-partido {

            display: flex;
            justify-content: center;
            width: 100%;
            font-size: 16px;
        }
        .partidos-totales {
            
            display: flex;
            justify-content: center;
            width: 100%;
            font-size: 28px;
        }
    }
    .opciones {
        position: relative;
        display: flex;
        width: 100%;
        aspect-ratio: 2/1;
        background-color: var(--color-primary-white);
        justify-content: center;
        .opcion {
            flex: 1;
            aspect-ratio: 1/1;
            background-repeat: no-repeat;
            background-position: center center;
            position: relative;
            /*background-color: var(--color-primary-white);*/
            background-size: 95%; /* zoom */
            transition: background-size 0.5s ease; /* animación suave */
            border: 2px solid var(--color-primary);
            cursor: pointer;
            .pie-fotografia {
                position: absolute;
                bottom: -30px;
                width: 100%;
                font-size: 0.8rem;
                color: #777777;
            }
            &.derecha .pie-fotografia {
                text-align: right;
            }
        }
        .opcion:first-child {
            background-color: var(--color-primary-black);
        }
        @media (hover: hover) and (pointer: fine) {
            .mi-boton:hover {
                background-color: red;
            }
            &:hover .opcion {
                filter: blur(5px);
            }
            .opcion:hover {
                filter: blur(0);
                background-size: 100%; /* zoom */
            }
        }
    }
    
@media only screen and (max-width: 720px) {
    .opciones,
    .eleccion {
        flex-direction: column;
        aspect-ratio: 14/24;
    }
}
    .miniatura {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
    }
    .progressbarContent {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
        .progressbar {
            width: 100%;
            height: 30px;
            color: #d1d1d1;
            text-align: center;
            background-color: var(--color-primary-white-extra);
            border-radius: 4px;
            .progress {
                border-radius: 4px;
                height: 30px;
                background-color: var(--color-primary);
            }
        }        
    }

}
.add-comentario {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    row-gap: 8px;
}
.total-comentarios {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-block: 16px;
    span {
        font-size: 0.8rem;
        color: var(--gray-500);
    }
}
.comentarios {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    .comentario {
        display: flex;
        flex-direction: column;
        row-gap: 8px;
        background-color: #f3f3f3;
        border-radius: 8px;
        padding: 16px;
        .nombre-usuario {
            font-weight: bold;
        }
        .fecha {
            font-size: 0.8rem;
        }
        p {
            margin: 0;
        }
    }
}

.paginate {
    margin-bottom: 48px;
    ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 8px;
        li {
            margin: 0;
            padding: 0;
            a{
                color: #3a3a3a;
                background: #f3f3f3;
                display: block;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                display: flex;
                justify-content: center;
                align-items: center;
                cursor: pointer;
                font-size: 0.99rem;
                &:hover {
                    background: #dadada;
                }
            }
            &.active a {
                color: #fff;
                background: var(--color-primary);

            }
            
        }
    }
}
.ball-32 {
    width: 32px;
    aspect-ratio: 1/1;
    border-radius:50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: #d1d1d1;

}
.footer {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-block: 16px;
    .redes-sociales {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 16px;
        font-size: 2rem;
        border-bottom: 1px solid #dadada;
        padding-bottom: 16px;
        margin-inline: 36px;
    }
    .bottom {
        font-size: 0.8rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 36px;
        margin-inline: 16px;
    }
}

@media only screen and (max-width: 720px) {
    .bottom {
        flex-direction: column;
    }
}
.adv {
    position: relative;
    .publicidad-aviso {
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 9px;
        color: var(--gray-200);
        border: 1px solid var(--gray-200);
        padding: 2px 8px;
        border-radius: 4px;
    }
    a {
        color: var(--color-primary);
        text-decoration: underline;
    }
}

@media only screen and (min-width: 968px) {
    @keyframes mover {
        0% {
            left: 40%;
            top: 50%;
        }
        50%{
            
            top: 50%;
        }
        100% {
            left: 60%;
            top: 50%;
            transform: translateX(-100%) translateY(-50%);
        }
    }
}
@media only screen and (max-width: 968px) {
    @keyframes mover {
        0% {
            left: 20%;
            top: 50%;
        }
        50%{
            
            top: 50%;
        }
        100% {
            left: 80%;
            top: 50%;
            transform: translateX(-100%) translateY(-50%);
        }
    }
}



/*Pruebas*/

.elemento {
    animation: moverX 1s ease-in-out infinite alternate;
    padding: 8px ;
    border-radius: 10px;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    background: #ffffff80;
    border: 1px solid #00000080;
    transform: translate(-50%, -50%);
}

/* Animación de desplazamiento */
@keyframes moverX {
  0% { transform: translate(-50%, -50%) translateX(-100px) scale(1.5); }
  15% { transform: translate(-50%, -50%) translateX(-100px) scale(1); }
  85% { transform: translate(-50%, -50%) translateX(100px) scale(1); }
  100% { transform: translate(-50%, -50%) translateX(100px) scale(1.5); }
}

@keyframes moverY {
  0% { transform: translate(-50%, -50%) translateY(-100px) scale(1.2); }

  5% { transform: translate(-50%, -50%) translateY(-100px) scale(1); }
  10% { transform: translate(-50%, -50%) translateY(-100px) scale(1.2); }

  15% { transform: translate(-50%, -50%) translateY(-100px) scale(1); }




  85% { transform: translate(-50%, -50%) translateY(100px) scale(1); }

  90% { transform: translate(-50%, -50%) translateY(100px) scale(1.2); }
  95% { transform: translate(-50%, -50%) translateY(100px) scale(1); }

  100% { transform: translate(-50%, -50%) translateY(100px) scale(1.2); }
}

@media (max-width: 720px) {
  .elemento {
    animation: moverY 1s ease-in-out infinite alternate;
  }
    .opciones {
        aspect-ratio: 1;
    }
}