/* =========================================
   ESTILOS GRÁFICOS: PWA SEMÁFORO ACCESIBLE
   ========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #000000; 
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 15px;
}

/* Cabecera */
.app-header {
    text-align: center;
    margin-bottom: 20px;
}

.app-header h1 {
    font-size: 1.8rem;
    color: #38bdf8; 
    margin-bottom: 5px;
}

.app-header p {
    font-size: 0.95rem;
    color: #94a3b8; 
}

/* Contenedor Principal / Tarjeta de la Cámara */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.camera-card {
    position: relative;
    width: 100%;
    height: 60vh; 
    background-color: #1e293b;
    border: 2px solid #334155;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#camara-stream {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* Capa superpuesta de estado */
.overlay-espera {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(41, 78, 166, 0.85);
    backdrop-filter: blur(5px);
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #f8fafc;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botón Gigante Accesible */
.btn-gigante {
    width: 100%;
    padding: 20px;
    background-color: #10b981; 
    color: #f7f7f7;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-gigante:active {
    transform: scale(0.97);
    background-color: #059669;
}

.ayuda-peatonal {
    width: 102%;
    padding:30px; 
    background-color:rgba(63, 64, 65, 0.167) ;
    color: #79d1f6;
    border: 10px;
    border-radius: 15px; 
    font-weight: lighter;
    box-shadow: 0 1px 10px rgba(2, 145, 255, 0.994)
}
