:root {
    --bg: #121212;
    --card-bg: #1e1e1e;
    --primary: #4CAF50;
    --text-white: #ffffff;
    --text-dim: #b0b0b0;
    --radius: 20px;
}

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

body {
    font-family: -apple-system, system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text-white);
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding: 20px 15px;
    max-width: 600px;
    margin: 0 auto;
}

h1 { font-size: 26px; margin-bottom: 20px; text-align: center; }

#formEntrada {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

textarea#texto {
    width: 100%;
    min-height: 120px;
    background: #2c2c2c;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 15px;
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
    resize: none;
}

button {
    width: 100%;
    height: 55px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
}

.entrada {
    background: var(--card-bg);
    margin-bottom: 15px;
    padding: 18px;
    border-radius: var(--radius);
}

.entrada strong { color: var(--primary); font-size: 13px; display: block; margin-bottom: 5px; }
.entrada p { font-size: 17px; margin-bottom: 15px; line-height: 1.4; }

.entrada-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.entrada-images img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
}

/* --- MODAL DE IMAGEN --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000; /* Aumentado para estar por encima de todo */
    justify-content: center;
    align-items: center;
}

.modal.visible { display: flex; }

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 10px;
    object-fit: contain;
}

/* Botón cerrar mejorado para móvil */
.close-btn {
    position: absolute;
    top: -60px;
    right: 0;
    color: white;
    font-size: 45px;
    background: none;
    border: none;
    line-height: 1;
    cursor: pointer;
    padding: 10px;
}

@keyframes zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal.visible .modal-content { animation: zoom 0.2s ease-out; }

/* Estilo base para ambos: el label y el button */
.btn-fake, .btn-real, .btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px; /* Grande para móvil */
    border-radius: 15px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
    user-select: none;
}

/* Colores específicos */
.btn-fake {
    background-color: #333; /* Color oscuro */
    color: white;
}

.btn-real {
    background-color: var(--primary); /* Verde */
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #444;
    color: #bbb;
    margin-top: 15px;
    height: 50px;
}

/* Efecto de clic para ambos */
.btn-fake:active, .btn-real:active {
    transform: scale(0.97);
    filter: brightness(0.8);
}

/* Espaciado del grupo */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}