* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #8b4aba;
    color: white;
    text-align: center;
    padding: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.camera-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #1c2833;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 1.2rem;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#camera-placeholder {
    color: #aab7b8;
    text-align: center;
    padding: 1rem;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: #c121c9;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
    margin-bottom: 1.5rem;
}

.btn-primary:hover {
    background-color: #2b2fa0;
}

.card {
    background: white;
    width: 100%;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 6px solid #bdc3c7;
    transition: all 0.3s ease;
}

.oculto {
    display: none;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    background-color: #ecf0f1;
    color: #7f8c8d;
}

.card.organica { border-top-color: #d435b1; }
.card.organica .badge { background-color: #d4efdf; color: #3e38f1; }

.card.reciclable { border-top-color: #2980b9; }
.card.reciclable .badge { background-color: #d6eaf8; color: #1f618d; }

.card.no-reciclable { border-top-color: #e67e22; }
.card.no-reciclable .badge { background-color: #fdebd0; color: #b9770e; }

#titulo-residuo {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

#instruccion-bote {
    color: #566573;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.confianza-container {
    border-top: 1px solid #eee;
    padding-top: 0.6rem;
    color: #95a5a6;
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.btn-secondary {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #1f6391;
}

.oculto {
    display: none !important;
}


body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    
    /* Imagen de fondo con filtro oscuro al 55% para que se lean bien las letras */
    background-image: linear-gradient(rgba(15, 15, 25, 0.55), rgba(15, 15, 25, 0.65)), url('Vice_City_27.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

header, footer {
    color: #ffffff;
    text-align: center;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.85);
}

/* Efecto cristal sutil en la tarjeta de resultados para que combine con el fondo nocturno */
.card {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}