/* ============================================================================
 * FICHERO......: teselas.css
 * PROPÓSITO....: Maquetación centrada y estética de botones con estado activo
 *                para el generador visual Teselas.
 * ============================================================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
}

.escena-teselas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 20px;
    width: 100%;
    max-width: 1320px;
}

canvas {
    background-color: #000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    max-width: 100%;
    height: auto;
}

/* Columna centrada: título, reloj estampillado y botonera alineados al centro */
.BloquePie {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    min-width: 320px;
    max-width: 560px;
}

#legend {
    width: 100%;
    padding: 10px 24px;
    background: radial-gradient(circle, rgba(43, 87, 154, 0.14) 0%, rgba(0, 0, 0, 0.65) 100%);
    border-radius: 6px;
    font-family: 'Rye', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    letter-spacing: 6px;
    user-select: none;
    color: rgba(252, 240, 245, 0.95);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.9),
                 3px 3px 10px rgba(99, 209, 197, 0.5);
}

#reloj-estampillado {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1rem, 1.5vw, 1.45rem);
    color: rgba(252, 252, 252, 0.98);
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.99);
}

/* Contenedor centrado de botones */
.controles-teselas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
}

/* Aspecto de botón físico real */
.btn-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 240px;
    padding: 10px 18px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: bold;
    color: #111827;
    background: linear-gradient(180deg, #ffffff 0%, #dbeafe 100%);
    border: 1px solid #64748b;
    border-bottom: 3px solid #334155;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    user-select: none;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.btn-control:hover {
    background: linear-gradient(180deg, #f8fafc 0%, #bfdbfe 100%);
    border-color: #2563eb;
}

/* Sensación física al pulsar */
.btn-control:active {
    transform: translateY(2px);
    border-bottom-width: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Estado enclavado / activo (por ejemplo, ralentizado/pausa activado) */
.btn-control.btn-activo {
    color: #ffffff;
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
    border-color: #fde68a;
    border-bottom: 1px solid #78350f;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55), 0 0 10px rgba(245, 158, 11, 0.45);
    transform: translateY(1px);
}