@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    background-image: url('https://www.transparenttextures.com/patterns/dark-mosaic.png');
    background-repeat: repeat;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

h1, h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.historia {
    border-left: 4px solid #2196f3;
    background: #2a2a2a;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.titulo {
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 6px;
}

.fecha {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.enviar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.enviar a {
    background: #2196f3;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.enviar a:hover {
    background: #1976d2;
}

a {
    color: #64b5f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

input[type="text"],
textarea {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px;
    width: 100%;
}

button {
    background: #2196f3;
    border: none;
    padding: 10px 16px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #1976d2;
}

/* Logo */
.logo-central {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.logo-central img {
    max-width: 260px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(33, 150, 243, 0.3));
}

/* Reacciones */
.reacciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.reaccion {
    background: #2c2c2c;
    color: #e0e0e0;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    position: relative;
}

.reaccion span {
    font-weight: bold;
}

.reaccion:hover {
    background: #2196f3;
    color: white;
}

/* Animación +1 */
.plus-one {
    position: absolute;
    font-size: 14px;
    animation: subirDesaparecer 0.8s ease-out forwards;
    transform: translateY(0);
    pointer-events: none;
    z-index: 100;
    top: -8px;
    right: -8px;
}

.plus-one.mehapasado {
    color: #00e676;
}

.plus-one.niveldios {
    color: #ff9800;
}

.plus-one.bughumano {
    color: #f06292;
}

@keyframes subirDesaparecer {
    0% {
        opacity: 1;
        transform: translateY(0px);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    h1 {
        font-size: 20px;
    }

    .titulo {
        font-size: 16px;
    }

    .logo-central img {
        max-width: 180px;
    }
}

.cookie-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #222;
    color: #ccc;
    padding: 15px;
    font-size: 14px;
    text-align: center;
    z-index: 999;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

.cookie-bar button {
    background: #2196f3;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.cookie-bar button:hover {
    background: #1976d2;
}

.top-historia {
    border-left: 4px solid gold;
    background-color: #303030;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
    position: relative;
}

.top-historia .titulo {
    color: gold;
}

.top-votos {
    margin-top: 8px;
    font-size: 13px;
    color: #ccc;
}

.boton-top {
    margin-left: 15px;
    background-color: #444;
    color: gold;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.boton-top:hover {
    background-color: #666;
}

.botones-superiores {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.boton {
    background-color: #444;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
}

.boton:hover {
    background-color: #666;
    transform: scale(1.03);
}

.frase-top {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ccc;
    font-weight: normal;
}
.boton-sorpresa {
    text-align: center;
    margin: 20px 0 40px;
}

.boton-sorpresa .boton {
    background-color: #2e7d32;
    color: white;
}

.boton-sorpresa .boton:hover {
    background-color: #1b5e20;
}

.meta-derecha {
    text-align: right;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.footer-amor {
    text-align: center;
    font-size: 13px;
    color: #666;
    padding: 20px 10px;
    margin-top: 40px;
    border-top: 1px solid #333;
    font-style: italic;
    opacity: 0.7;
}
.footer-amor span {
    display: block;
    margin-top: 5px;
    color: #999;
    font-weight: normal;
}

#boton-fijo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #444;
    color: white;
    text-decoration: none;
    font-size: 22px;
    padding: 8px 12px;
    border-radius: 50%;
    z-index: 999;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: background 0.2s;
}

#boton-fijo:hover {
    background-color: #666;
}


.sidebar-categorias {
    position: fixed;
    top: 120px;
    left: 20px;
    width: 200px;
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    font-size: 14px;
    z-index: 900;
}

.sidebar-categorias h3 {
    margin-top: 0;
    font-size: 16px;
    color: #ccc;
    text-align: center;
}

.sidebar-categorias ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categorias ul li {
    margin-bottom: 10px;
}

.sidebar-categorias ul li a {
    color: #ddd;
    text-decoration: none;
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.sidebar-categorias ul li a:hover {
    background-color: #444;
}
