/* Contenedor principal */
.detector-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
}

/* Título */
.detector-title {
    text-align: center;
    margin-bottom: 20px;
}

/* Alertas */
.alert-box {
    display: none; /* se muestran via JS si hay error o ok */
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid;
}

.alerta-error {
    background: #ffe6e6;
    border-color: #f00;
}

.alerta-ok {
    background: #e6ffe6;
    border-color: #0c0;
}

/* Cabecera interna de la alerta */
.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

/* Botón cerrar alertas */
.alert-close {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* Fila con icono + texto */
.row-item {
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #ccc;
    padding: 10px 0;
}

/* Contenedor de imágenes */
.img-wrapper {
    width: 60px;
    text-align: center;
}

/* Iconos de detección */
.detector-icon {
    display: none; /* se muestran via JS */
    width: 50px;
    height: 50px;
}

.detector-icon-off {
    cursor: pointer;
    opacity: 0.5;
}

/* Contenedor de texto a la derecha del icono */
.text-wrapper {
    flex: 1;
    margin-left: 10px;
}

/* Caja de información (oculta por defecto) */
.info-box {
    display: none;
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}

/* Contenedor del botón final */
.button-container {
    text-align: center;
    margin-top: 20px;
}

/* Botón "Volver al curso" */
.back-button {
    padding: 10px 20px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}